[−][src]Struct msp430fr2x5x_hal::clock::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
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,