[][src]Trait lpc8xx_hal::clock::Frequency

pub trait Frequency {
    fn hz(&self) -> u32;
}

Implemented by clocks that can return a frequency

Implementations of this trait might be very simple, for clocks that run at one specific frequency. Or they might be more complex, for clocks whose frequency can be configured.

Some clocks might not have an implementation of this trait at all. An example of this might be a type that represents an external clock that is fed into the microcontroller via a pin.

Required methods

fn hz(&self) -> u32

The frequency of the clock in Hz

This method must never return 0.

Loading content...

Implementors

impl<State> Frequency for LowPowerClock<State>[src]

impl<State> Frequency for IoscDerivedClock<State>[src]

Loading content...