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§