pub struct RtcOsc<I: RtcSourceId> { /* private fields */ }
Expand description

Oscillator for the Rtc

The RtcOsc represents proof that a clock source for the Rtc has been selected and configured. It also guarantees that the clock source for the RTC will not be modified or disabled while it is in use.

See the module-level documentation for an example of creating the RtcOsc.

Implementations

Consume the RtcOscToken and return the RtcOsc

Enabling the RtcOsc will Increment the consumer count of its Enabled clock Source.

Consume the RtcOsc and return the RtcOscToken

Disabling the RtcOsc will Decrement the consumer count of its Enabled clock Source.

Return the RtcOsc frequency, which can either be 1 kHz or 32 kHz

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.