PeripheralClockSelector

Trait PeripheralClockSelector 

Source
pub trait PeripheralClockSelector {
    const REGISTER_NUM: usize;
}
Expand description

Internal trait used for defining the fclksel index for a peripheral

This trait is an internal implementation detail and should neither be implemented nor used outside of LPC8xx HAL. Any changes to this trait won’t be considered breaking changes.

Required Associated Constants§

Source

const REGISTER_NUM: usize

The index of the FCLKSEL register

This is not relevant on LPC82x.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl PeripheralClockSelector for I2C0

Source§

const REGISTER_NUM: usize = 5usize

Source§

impl PeripheralClockSelector for I2C1

Source§

const REGISTER_NUM: usize = 6usize

Source§

impl PeripheralClockSelector for I2C2

Source§

const REGISTER_NUM: usize = 7usize

Source§

impl PeripheralClockSelector for I2C3

Source§

const REGISTER_NUM: usize = 8usize

Source§

impl PeripheralClockSelector for SPI0

Source§

const REGISTER_NUM: usize = 9usize

Source§

impl PeripheralClockSelector for SPI1

Source§

const REGISTER_NUM: usize = 10usize

Source§

impl PeripheralClockSelector for USART0

Source§

const REGISTER_NUM: usize = 0usize

Source§

impl PeripheralClockSelector for USART1

Source§

const REGISTER_NUM: usize = 1usize

Source§

impl PeripheralClockSelector for USART2

Source§

const REGISTER_NUM: usize = 2usize

Source§

impl PeripheralClockSelector for USART3

Source§

const REGISTER_NUM: usize = 3usize

Source§

impl PeripheralClockSelector for USART4

Source§

const REGISTER_NUM: usize = 4usize

Implementors§