Trait HrtimPrescaler

Source
pub unsafe trait HrtimPrescaler: Default {
    const BITS: u8;
    const VALUE: u8;
    const MIN_CR: u16;
    const MAX_CR: u16;
}
Expand description

§Safety

Only implement for valid prescalers with correct values

Required Associated Constants§

Source

const BITS: u8

Source

const VALUE: u8

Source

const MIN_CR: u16

Minimum allowed value for compare registers used with the timer with this prescaler

NOTE: That for CR1 and CR3, 0 is also allowed

Source

const MAX_CR: u16

Maximum allowed value for compare registers used with the timer with this prescaler

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.

Implementors§

Source§

impl HrtimPrescaler for Pscl1

Source§

const BITS: u8 = 0u8

Source§

const VALUE: u8 = 1u8

Source§

const MIN_CR: u16 = 96u16

Source§

const MAX_CR: u16 = 65_503u16

Source§

impl HrtimPrescaler for Pscl2

Source§

const BITS: u8 = 1u8

Source§

const VALUE: u8 = 2u8

Source§

const MIN_CR: u16 = 48u16

Source§

const MAX_CR: u16 = 65_519u16

Source§

impl HrtimPrescaler for Pscl4

Source§

const BITS: u8 = 2u8

Source§

const VALUE: u8 = 4u8

Source§

const MIN_CR: u16 = 24u16

Source§

const MAX_CR: u16 = 65_527u16

Source§

impl HrtimPrescaler for Pscl8

Source§

const BITS: u8 = 3u8

Source§

const VALUE: u8 = 8u8

Source§

const MIN_CR: u16 = 12u16

Source§

const MAX_CR: u16 = 65_531u16

Source§

impl HrtimPrescaler for Pscl16

Source§

const BITS: u8 = 4u8

Source§

const VALUE: u8 = 16u8

Source§

const MIN_CR: u16 = 6u16

Source§

const MAX_CR: u16 = 65_533u16

Source§

impl HrtimPrescaler for Pscl32

Source§

const BITS: u8 = 5u8

Source§

const VALUE: u8 = 32u8

Source§

const MIN_CR: u16 = 3u16

Source§

const MAX_CR: u16 = 65_533u16

Source§

impl HrtimPrescaler for Pscl64

Source§

const BITS: u8 = 6u8

Source§

const VALUE: u8 = 64u8

Source§

const MIN_CR: u16 = 3u16

Source§

const MAX_CR: u16 = 65_533u16

Source§

impl HrtimPrescaler for Pscl128

Source§

const BITS: u8 = 7u8

Source§

const VALUE: u8 = 128u8

Source§

const MIN_CR: u16 = 3u16

Source§

const MAX_CR: u16 = 65_533u16