[−][src]Trait lpc8xx_hal::clock::Frequency
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
.