[−][src]Struct msp430fr2x5x_hal::capture::CaptureConfig3
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]
T: Send,
impl<T> Sync for CaptureConfig3<T> where
T: Sync,
[src]
T: Sync,
impl<T> Unpin for CaptureConfig3<T> where
T: Unpin,
[src]
T: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,