[][src]Struct msp430fr2x5x_hal::clock::Smclk

pub struct Smclk(_);

SMCLK clock object

Trait Implementations

impl Clock for Smclk[src]

type Freq = u32

Type of the returned frequency value

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

Returning a 32-bit frequency may seem suspect, since we're on a 16-bit system, but it is required as SMCLK can go up to 24 MHz. Clock frequencies are usually for initialization tasks such as computing baud rates, which should be optimized away, avoiding the extra cost of 32-bit computations.

Auto Trait Implementations

impl Send for Smclk[src]

impl Sync for Smclk[src]

impl Unpin for Smclk[src]

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.