Struct atsamd_hal::icm::MainRegionDesc
source · [−]#[repr(C)]#[repr(align(16))]pub struct MainRegionDesc<N: RegionNum> {
pub raddr: RegionAddress,
pub rcfg: RegionConfiguration,
pub rctrl: RegionControl,
pub rnext: RegionNext,
/* private fields */
}
Expand description
Structure ICM Region Descriptor area.
Follows C-structure conventions and is 16-byte aligned,
being a part of the 64-bytes making up Region
Fields
raddr: RegionAddress
The first byte address of the Region.
rcfg: RegionConfiguration
Configuration Structure Member.
rctrl: RegionControl
Control Structure Member.
rnext: RegionNext
Next Address Structure Member.
Implementations
sourceimpl MainRegionDesc<Region0>
impl MainRegionDesc<Region0>
sourcepub fn set_dscr_addr(&self, icm: &Icm)
pub fn set_dscr_addr(&self, icm: &Icm)
Helper for setting the DSCR addr to a the first MainRegionDesc
See Icm::set_dscr_addr()
for the regular workflow
HW expects a raw pointer to the memory address of the beginning of the
MainRegionDesc
but expressed as a multiple of 64
sourceimpl<N: RegionNum> MainRegionDesc<N>
impl<N: RegionNum> MainRegionDesc<N>
sourcepub fn set_rctrl(self, ctrl: RegionControl)
pub fn set_rctrl(self, ctrl: RegionControl)
The length of data for the ICM engine to transfer,
expressed as number of blocks - 1
.
Trait Implementations
sourceimpl<N: RegionNum> RegionDesc for MainRegionDesc<N>
impl<N: RegionNum> RegionDesc for MainRegionDesc<N>
sourcefn set_region_address<T>(&mut self, addr: *const T)
fn set_region_address<T>(&mut self, addr: *const T)
Set RegionAddress
sourcefn set_region_configuration(&mut self, cfg: RegionConfiguration)
fn set_region_configuration(&mut self, cfg: RegionConfiguration)
sourcefn reset_region_configuration_to_default(&mut self)
fn reset_region_configuration_to_default(&mut self)
Reset RegionConfiguration
to default values
sourcefn set_region_next(&mut self, next: RegionNext)
fn set_region_next(&mut self, next: RegionNext)
Set RegionNext
Auto Trait Implementations
impl<N> RefUnwindSafe for MainRegionDesc<N>where
N: RefUnwindSafe,
impl<N> Send for MainRegionDesc<N>where
N: Send,
impl<N> Sync for MainRegionDesc<N>where
N: Sync,
impl<N> Unpin for MainRegionDesc<N>where
N: Unpin,
impl<N> UnwindSafe for MainRegionDesc<N>where
N: UnwindSafe,
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