#[repr(C, 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: RegionAddressThe first byte address of the Region.
rcfg: RegionConfigurationConfiguration Structure Member.
rctrl: RegionControlControl Structure Member.
rnext: RegionNextNext Address Structure Member.
Implementations§
Source§impl 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
Source§impl<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§
Source§impl<N: RegionNum> RegionDesc for MainRegionDesc<N>
 
impl<N: RegionNum> RegionDesc for MainRegionDesc<N>
Source§fn set_region_address<T>(&mut self, addr: *const T)
 
fn set_region_address<T>(&mut self, addr: *const T)
Set RegionAddress
Source§fn set_region_configuration(&mut self, cfg: RegionConfiguration)
 
fn set_region_configuration(&mut self, cfg: RegionConfiguration)
Source§fn reset_region_configuration_to_default(&mut self)
 
fn reset_region_configuration_to_default(&mut self)
Reset RegionConfiguration to default values
Source§fn set_region_next(&mut self, next: RegionNext)
 
fn set_region_next(&mut self, next: RegionNext)
Set RegionNext
Auto Trait Implementations§
impl<N> Freeze for MainRegionDesc<N>
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§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more