Enum imxrt_hal::srtc::EnabledState[][src]

pub enum EnabledState {
    AlreadyCounting {
        srtc: SRTC,
        seconds: u32,
        ticks: u16,
    },
    SetTime(SRTC),
}
Expand description

Indicates the result of the try_enable method

Variants

AlreadyCounting

Fields

srtc: SRTC
seconds: u32

The current whole-second time on the SRTC

ticks: u16

The current 32768Hz ticks of the SRTC

The SRTC was already enabled, and it’s currently counting from seconds

SetTime(SRTC)

Tuple Fields

0: SRTC

The SRTC was not previously enabled, and it’s now counting from the seconds and ticks supplied to try_enable

Trait Implementations

Formats the value using the given formatter. Read more

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

Performs the conversion.

Performs the conversion.

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.