Struct imxrt_hal::srtc::SRTC[][src]

pub struct SRTC { /* fields omitted */ }

The Secure Real-Time Clock, enabled.

Implementations

impl SRTC[src]

pub fn get(&self) -> u32[src]

Get the current time as a count of seconds since some point in the past.

pub fn get_with_ticks(&self) -> (u32, u16)[src]

Gets the current time as a tuple containing the count of seconds since some point in the past and the sub-second time as 32768Hz ticks.

pub fn get_with_micros(&self) -> (u32, u32)[src]

Gets the current time as a tuple containing the count of seconds since some point in the past and the sub-second time as microseconds.

pub fn set(&mut self, time: u32, ticks: u16)[src]

Set the current time as a count of seconds since some point in the past and the sub-second time as 32768Hz ticks.

Trait Implementations

impl Debug for SRTC[src]

Auto Trait Implementations

impl Send for SRTC

impl !Sync for SRTC

impl Unpin for SRTC

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> Same<T> for T

type Output = T

Should always be Self

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.