Struct lpc55_pac::rtc::ctrl::RTC_EN_W [−][src]
pub struct RTC_EN_W<'a> { /* fields omitted */ }
Field RTC_EN
writer - RTC enable.
Implementations
impl<'a> RTC_EN_W<'a>
[src]
impl<'a> RTC_EN_W<'a>
[src]pub fn variant(self, variant: RTC_EN_A) -> &'a mut W
[src]
Writes variant
to the field
pub fn disable(self) -> &'a mut W
[src]
Disable. The RTC 1 Hz and 1 kHz clocks are shut down and the RTC operation is disabled. This bit should be 0 when writing to load a value in the RTC counter register.
pub fn enable(self) -> &'a mut W
[src]
Enable. The 1 Hz RTC clock is running and RTC operation is enabled. This bit must be set to initiate operation of the RTC. The first clock to the RTC counter occurs 1 s after this bit is set. To also enable the high-resolution, 1 kHz clock, set bit 6 in this register.
pub fn set_bit(self) -> &'a mut W
[src]
Sets the field bit
pub fn clear_bit(self) -> &'a mut W
[src]
Clears the field bit
pub fn bit(self, value: bool) -> &'a mut W
[src]
Writes raw bits to the field