#[repr(transparent)]pub struct MainCtrl(pub u32);
Expand description
Main control register
Tuple Fields§
§0: u32
Implementations§
source§impl MainCtrl
impl MainCtrl
sourcepub const fn controller_en(&self) -> bool
pub const fn controller_en(&self) -> bool
Enable controller
sourcepub fn set_controller_en(&mut self, val: bool)
pub fn set_controller_en(&mut self, val: bool)
Enable controller
sourcepub const fn host_ndevice(&self) -> bool
pub const fn host_ndevice(&self) -> bool
Device mode = 0, Host mode = 1
sourcepub fn set_host_ndevice(&mut self, val: bool)
pub fn set_host_ndevice(&mut self, val: bool)
Device mode = 0, Host mode = 1
sourcepub const fn sim_timing(&self) -> bool
pub const fn sim_timing(&self) -> bool
Reduced timings for simulation
sourcepub fn set_sim_timing(&mut self, val: bool)
pub fn set_sim_timing(&mut self, val: bool)
Reduced timings for simulation
Trait Implementations§
impl Copy for MainCtrl
impl Eq for MainCtrl
impl StructuralPartialEq for MainCtrl
Auto Trait Implementations§
impl Freeze for MainCtrl
impl RefUnwindSafe for MainCtrl
impl Send for MainCtrl
impl Sync for MainCtrl
impl Unpin for MainCtrl
impl UnwindSafe for MainCtrl
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)