pub type SETIF_W<'a, const O: u8> = FieldWriter<'a, u32, CH3_INTERACT_SPEC, u8, SETIF_A, 3, O>;
Expand description

Field SETIF writer - Enable Interrupt Generation

Implementations§

source§

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

source

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

No interrupt is generated

source

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

Set interrupt flag if the sensor triggers.

source

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

Set interrupt flag on positive edge of the sensor state

source

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

Set interrupt flag on negative edge of the sensor state

source

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

Set interrupt flag on both edges of the sensor state