Type Definition atsam4s2a_pac::adc::emr::CMPMODE_W

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

Field CMPMODE writer - Comparison Mode

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.