[][src]Trait msp430fr2x5x_hal::capture::CapturePin

pub trait CapturePin {
    type Capture;
    type Error;
    pub fn capture(&mut self) -> Result<Self::Capture, Self::Error>;
}

Single input capture pin

Associated Types

type Capture[src]

Type of value returned by capture

type Error[src]

Enumeration of Capture errors

Possible errors:

  • overcapture, the previous capture value was overwritten because it was not read in a timely manner
Loading content...

Required methods

pub fn capture(&mut self) -> Result<Self::Capture, Self::Error>[src]

"Waits" for a transition in the capture channel and returns the value of counter at that instant

Loading content...

Implementors

impl<T: CapCmp<C>, C> CapturePin for Capture<T, C>[src]

type Capture = u16

type Error = OverCapture

Loading content...