#[repr(u8)]pub enum RTCSEL {
NoClock = 0,
Lse = 1,
Lsi = 2,
Hse = 3,
}
Expand description
RTC clock source selection Set by software to select the clock source for the RTC. Once the RTC clock source has been selected, it cannot be changed anymore unless the RTC domain is reset, or unless a failure is detected on LSE (LSECSSD is set). The BDRST bit can be used to reset them.
Value on reset: 0
Variants§
NoClock = 0
0: No clock
Lse = 1
1: LSE oscillator clock used as RTC clock
Lsi = 2
2: LSI oscillator clock used as RTC clock
Hse = 3
3: HSE oscillator clock divided by a prescaler used as RTC clock
Trait Implementations§
impl Copy for RTCSEL
impl Eq for RTCSEL
impl IsEnum for RTCSEL
impl StructuralPartialEq for RTCSEL
Auto Trait Implementations§
impl Freeze for RTCSEL
impl RefUnwindSafe for RTCSEL
impl Send for RTCSEL
impl Sync for RTCSEL
impl Unpin for RTCSEL
impl UnwindSafe for RTCSEL
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more