Type Alias atsame70n21b::afec0::emr::CMPMODE_W

source ·
pub type CMPMODE_W<'a, const O: u8> = FieldWriterSafe<'a, EMR_SPEC, 2, O, CMPMODESELECT_A>;
Expand description

Field CMPMODE writer - Comparison Mode

Aliased Type§

struct CMPMODE_W<'a, const O: u8> { /* private fields */ }

Implementations§

source§

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

source

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

Generates an event when the converted data is lower than the low threshold of the window.

source

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

Generates an event when the converted data is higher than the high threshold of the window.

source

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

Generates an event when the converted data is in the comparison window.

source

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

Generates an event when the converted data is out of the comparison window.