[][src]Struct tm4c123x_hal::hib::Hib

pub struct Hib { /* fields omitted */ }

A wrapper around the HIB (Hibernation) peripheral

Implementations

impl Hib[src]

pub fn hib(hib: HIB, source: Source, _pc: &PowerControl) -> Self[src]

Initialize the HIB peripheral, using a clock from source

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

Get the current time, in units of (seconds, subseconds), where a subsecond is 1/32768 seconds

pub fn get_millis(&self) -> u64[src]

Get the current time in milliseconds

Auto Trait Implementations

impl Send for Hib

impl !Sync for Hib

impl Unpin for Hib

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.