Type Alias OUT2EN_W

Source
pub type OUT2EN_W<'a, REG> = BitWriter<'a, REG, OUT2EN>;
Expand description

Field OUT2EN writer - RTC_OUT2 output enable Setting this bit allows to remap the RTC outputs on RTC_OUT2 as follows: OUT2EN = 0: RTC output 2 disable If OSEL different 00 or TAMPOE = 1: TAMPALRM is output on RTC_OUT1 If OSEL = 00 and TAMPOE = 0 and COE = 1: CALIB is output on RTC_OUT1 OUT2EN = 1: RTC output 2 enable If (OSEL different 00 or TAMPOE = 1) and COE = 0: TAMPALRM is output on RTC_OUT2 If OSEL = 00 and TAMPOE = 0 and COE = 1: CALIB is output on RTC_OUT2 If (OSEL different 00 or TAMPOE = 1) and COE = 1: CALIB is output on RTC_OUT2 and TAMPALRM is output on RTC_OUT1.

Aliased Type§

struct OUT2EN_W<'a, REG> { /* private fields */ }

Implementations§

Source§

impl<'a, REG> OUT2EN_W<'a, REG>
where REG: Writable + RegisterSpec,

Source

pub fn disabled(self) -> &'a mut W<REG>

RTC output 2 disable

Source

pub fn enabled(self) -> &'a mut W<REG>

RTC output 2 enable