[][src]Struct msp430fr2x5x_hal::capture::CaptureConfig3

pub struct CaptureConfig3<T: CapturePeriph> where
    T: CapCmpTimer3
{ /* fields omitted */ }

Builder object for configuring capture ports derived from timer peripherals with 3 capture-compare registers

Each pin has a input source, which determines the signal that controls the capture, and a capture trigger event, which determines the input transitions that actually trigger the capture. By default, all pins use GND as their input source and trigger a capture on a rising edge.

Implementations

impl<T: CapturePeriph + CapCmpTimer3> CaptureConfig3<T>[src]

pub fn config_cap0_input_A(self) -> Self[src]

Configure the capture input select of the capture pin as capture input A

pub fn config_cap0_input_B(self) -> Self[src]

Configure the capture input select of the capture pin as capture input B

pub fn config_cap0_trigger(self, trigger: CapTrigger) -> Self[src]

Configure the capture trigger event of the capture pin

pub fn config_cap1_input_A(self, _gpio: T::Gpio1) -> Self[src]

Configure the capture input select of the capture pin as capture input A, which requires a correctly configured GPIO pin.

pub fn config_cap1_input_B(self) -> Self[src]

Configure the capture input select of the capture pin as capture input B

pub fn config_cap1_trigger(self, trigger: CapTrigger) -> Self[src]

Configure the capture trigger event of the capture pin

pub fn config_cap2_input_A(self, _gpio: T::Gpio2) -> Self[src]

Configure the capture input select of the capture pin as capture input A, which requires a correctly configured GPIO pin.

pub fn config_cap2_input_B(self) -> Self[src]

Configure the capture input select of the capture pin as capture input B

pub fn config_cap2_trigger(self, trigger: CapTrigger) -> Self[src]

Configure the capture trigger event of the capture pin

pub fn commit(self) -> CaptureParts3<T>[src]

Writes all previously configured timer and capture settings into peripheral registers

Auto Trait Implementations

impl<T> Send for CaptureConfig3<T> where
    T: Send
[src]

impl<T> Sync for CaptureConfig3<T> where
    T: Sync
[src]

impl<T> Unpin for CaptureConfig3<T> where
    T: Unpin
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.