Trait PeripheralAccess

Source
pub trait PeripheralAccess {
    type RegisterBlock;

    const BASE_ADDRESS: u32;

    // Provided methods
    fn ptr() -> *const Self::RegisterBlock { ... }
    fn ptr_mut() -> *mut Self::RegisterBlock { ... }
}

Required Associated Constants§

Required Associated Types§

Provided Methods§

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 PeripheralAccess for NVIC

Source§

const BASE_ADDRESS: u32 = 3_758_153_984u32

Source§

type RegisterBlock = Nvic

Source§

impl PeripheralAccess for SCB

Source§

const BASE_ADDRESS: u32 = 3_758_157_056u32

Source§

type RegisterBlock = Scb

Source§

impl PeripheralAccess for SYSTICK

Source§

const BASE_ADDRESS: u32 = 3_758_153_744u32

Source§

type RegisterBlock = SysTick

Source§

impl PeripheralAccess for ADC1

Source§

impl PeripheralAccess for ADC2

Source§

impl PeripheralAccess for ADC3

Source§

impl PeripheralAccess for GPIOA

Source§

impl PeripheralAccess for GPIOB

Source§

impl PeripheralAccess for GPIOC

Source§

impl PeripheralAccess for GPIOD

Source§

impl PeripheralAccess for GPIOE

Source§

impl PeripheralAccess for I2C1

Source§

impl PeripheralAccess for I2C2

Source§

impl PeripheralAccess for I2C3

Source§

impl PeripheralAccess for RegisterBlock

Source§

impl PeripheralAccess for SPI1

Source§

impl PeripheralAccess for SPI2

Source§

impl PeripheralAccess for SPI3

Source§

impl PeripheralAccess for TIM2

Source§

impl PeripheralAccess for TIM3

Source§

impl PeripheralAccess for TIM4

Source§

impl PeripheralAccess for TIM5

Source§

impl PeripheralAccess for USART1

Source§

impl PeripheralAccess for USART2

Source§

impl PeripheralAccess for USART3