Struct rp2040_pac2::rtc::Rtc[][src]

pub struct Rtc(pub *mut u8);

Register block to control RTC

Implementations

impl Rtc[src]

pub fn clkdiv_m1(self) -> Reg<ClkdivM1, RW>[src]

Divider minus 1 for the 1 second counter. Safe to change the value when RTC is not enabled.

pub fn setup_0(self) -> Reg<Setup0, RW>[src]

RTC setup register 0

pub fn setup_1(self) -> Reg<Setup1, RW>[src]

RTC setup register 1

pub fn ctrl(self) -> Reg<Ctrl, RW>[src]

RTC Control and status

pub fn irq_setup_0(self) -> Reg<IrqSetup0, RW>[src]

Interrupt setup register 0

pub fn irq_setup_1(self) -> Reg<IrqSetup1, RW>[src]

Interrupt setup register 1

pub fn rtc_1(self) -> Reg<Rtc1, RW>[src]

RTC register 1.

pub fn rtc_0(self) -> Reg<Rtc0, RW>[src]

RTC register 0 Read this before RTC 1!

pub fn intr(self) -> Reg<Int, RW>[src]

Raw Interrupts

pub fn inte(self) -> Reg<Int, RW>[src]

Interrupt Enable

pub fn intf(self) -> Reg<Int, RW>[src]

Interrupt Force

pub fn ints(self) -> Reg<Int, RW>[src]

Interrupt status after masking & forcing

Trait Implementations

impl Clone for Rtc[src]

impl Copy for Rtc[src]

impl Send for Rtc[src]

impl Sync for Rtc[src]

Auto Trait Implementations

impl Unpin for Rtc

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.