Struct atsamd_hal::icm::Regions
source · [−]#[repr(C)]#[repr(align(64))]pub struct Regions {
pub region0: MainRegionDesc<Region0>,
pub region1: MainRegionDesc<Region1>,
pub region2: MainRegionDesc<Region2>,
pub region3: MainRegionDesc<Region3>,
}
Expand description
Helper for creating the Region Descriptor structure
It is also possible to construct the Region manually,
but then care has to be taken to point rnext
to the appropriate
place in memory, here the hardware assumption of 0x10
offset to the next descriptor is ensured.
Follows C-structure conventions and is 64-byte aligned
Important
ICM engine will read wherever this is instantiated in memory, based on the
Icm::set_dscr_addr()
so the user must ensure that this variable lives long enough or is static
Fields
region0: MainRegionDesc<Region0>
MainRegionDesc0
region1: MainRegionDesc<Region1>
MainRegionDesc1
region2: MainRegionDesc<Region2>
MainRegionDesc2
region3: MainRegionDesc<Region3>
MainRegionDesc3
Implementations
Auto Trait Implementations
impl RefUnwindSafe for Regions
impl Send for Regions
impl Sync for Regions
impl Unpin for Regions
impl UnwindSafe for Regions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more