embassy-stm32

Crates

git

Versions

stm32h523ze

Flavors

Skip to main content

CsrStorage

Trait CsrStorage 

Source
pub trait CsrStorage: Clone + Debug {
    // Required methods
    fn new() -> Self;
    fn get(&self, index: usize) -> u32;
    fn set(&mut self, index: usize, value: u32);
}

Required Methods§

Source

fn new() -> Self

Source

fn get(&self, index: usize) -> u32

Source

fn set(&mut self, index: usize, value: u32)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<const N: usize> CsrStorage for [u32; N]

Source§

fn new() -> Self

Source§

fn get(&self, index: usize) -> u32

Source§

fn set(&mut self, index: usize, value: u32)

Implementors§