[−][src]Struct lpc55_pac::rtc::ctrl::RTC_SUBSEC_ENA_W
Write proxy for field RTC_SUBSEC_ENA
Implementations
impl<'a> RTC_SUBSEC_ENA_W<'a>
[src][−]
pub fn variant(self, variant: RTC_SUBSEC_ENA_A) -> &'a mut W
[src][−]
Writes variant
to the field
pub fn power_up(self) -> &'a mut W
[src][−]
The sub-second counter (if implemented) is disabled. This bit is cleared by a system-level POR or BOD reset as well as a by the RTC_ENA bit (bit 7 in this register). On modules not equipped with a sub-second counter, this bit will always read-back as a '0'.
pub fn powered_down(self) -> &'a mut W
[src][−]
The 32 KHz sub-second counter is enabled (if implemented). Counting commences on the start of the first one-second interval after this bit is set. Note: This bit can only be set after the RTC_ENA bit (bit 7) is set by a previous write operation. Note: The RTC sub-second counter must be re-enabled whenever the chip exits deep power-down mode.
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
Auto Trait Implementations
impl<'a> Send for RTC_SUBSEC_ENA_W<'a>
impl<'a> !Sync for RTC_SUBSEC_ENA_W<'a>
impl<'a> Unpin for RTC_SUBSEC_ENA_W<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,