Struct nrf52840_hal::Rtc [−][src]
pub struct Rtc<T> { /* fields omitted */ }
Expand description
An opaque high level interface to an RTC peripheral.
Implementations
Creates a new RTC peripheral instance with a 12 bits prescaler.
fRTC = 32_768 / (prescaler
+ 1 )
Enable/start the Real Time Counter.
Disable/stop the Real Time Counter.
Enable the generation of a hardware interrupt from a given stimulus.
If access to the NVIC is not provided, the interrupt must ALSO be enabled
there outside of this function (e.g. manually call nvic.enable
, or through
the use of RTIC).
Disable the generation of a hardware interrupt from a given stimulus.
If access to the NVIC is not provided, the interrupt must ALSO be disabled
there outside of this function (e.g. manually call nvic.disable
, or through
the use of RTIC).
Enable the generation of a hardware event from a given stimulus.
Disables the generation of a hardware event from a given stimulus.
Checks if the given event has been triggered.
Resets the given event.
Set the compare value of a given register. The compare registers have a width of 24 bits.
Obtain the current value of the Real Time Counter, 24 bits of range.
Clear the Real Time Counter.
Sets the Real Time Counter value to 0xFFFFF0, to allow tests of the overflow condition. The overflow event occurs when the Real Time Counter overflows from 0xFFFFFF to 0.
Auto Trait Implementations
impl<T> RefUnwindSafe for Rtc<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Rtc<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Casts the value.
Casts the value.
Performs the conversion.
Performs the conversion.
Casts the value.
OverflowingCasts the value.
Casts the value.
Casts the value.
Casts the value.
UnwrappedCasts the value.
Casts the value.
WrappingCasts the value.