pub type ICEVCTRL_W<'a, const O: u8> = FieldWriterSafe<'a, u32, CC2_CTRL_SPEC, u8, ICEVCTRL_A, 2, O>;
Expand description

Field ICEVCTRL writer - Input Capture Event Control

Implementations§

source§

impl<'a, const O: u8> ICEVCTRL_W<'a, O>

source

pub fn everyedge(self) -> &'a mut W

PRS output pulse and interrupt flag set on every capture

source

pub fn everysecondedge(self) -> &'a mut W

PRS output pulse and interrupt flag set on every second capture

source

pub fn rising(self) -> &'a mut W

PRS output pulse and interrupt flag set on rising edge only (if ICEDGE = BOTH)

source

pub fn falling(self) -> &'a mut W

PRS output pulse and interrupt flag set on falling edge only (if ICEDGE = BOTH)