pub trait AccessRegisterBlock {
// Required method
fn register_block() -> *const RegisterBlock;
}Expand description
Blanket implementation trait that provides convenience method for recasting
the pointer type to specific RegisterBlock type.
This is necessary, as mcan_core::CanId and mcan_core itself does not
know the concrete low-level access type definition.
Required Methods§
Sourcefn register_block() -> *const RegisterBlock
fn register_block() -> *const RegisterBlock
Returns a raw pointer to the peripheral registers
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".