atsamd_hal::icm

Trait RegionNum

Source
pub trait RegionNum: Sealed {
    const NUM: usize;
    const OFFSET: u32;
}
Expand description

Trait providing numerical identifier and offset for each ICM Region

ICM supports 4 memory regions

Required Associated Constants§

Source

const NUM: usize

Numerical ID of the memory region

Source

const OFFSET: u32

Memory offset

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 RegionNum for Region0

Source§

const NUM: usize = 0usize

Source§

const OFFSET: u32 = 0u32

Source§

impl RegionNum for Region1

Source§

const NUM: usize = 1usize

Source§

const OFFSET: u32 = 16u32

Source§

impl RegionNum for Region2

Source§

const NUM: usize = 2usize

Source§

const OFFSET: u32 = 32u32

Source§

impl RegionNum for Region3

Source§

const NUM: usize = 3usize

Source§

const OFFSET: u32 = 48u32