Type Alias nrf52840_pac::lpcomp::anadetect::ANADETECT_W

source ·
pub type ANADETECT_W<'a, const O: u8> = FieldWriter<'a, u32, ANADETECT_SPEC, u8, ANADETECT_A, 2, O>;
Expand description

Field ANADETECT writer - Analog detect configuration

Aliased Type§

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

Implementations§

source§

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

source

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

Generate ANADETECT on crossing, both upward crossing and downward crossing

source

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

Generate ANADETECT on upward crossing only

source

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

Generate ANADETECT on downward crossing only