#[repr(transparent)]pub struct Grstctl(pub u32);Expand description
Reset Register
Tuple Fields§
§0: u32Implementations§
Source§impl Grstctl
impl Grstctl
Sourcepub const fn set_csftrst(&mut self, val: bool)
pub const fn set_csftrst(&mut self, val: bool)
Mode: Host and Device. Core Soft Reset (CSftRst)
Sourcepub const fn piufssftrst(&self) -> Piufssftrst
pub const fn piufssftrst(&self) -> Piufssftrst
Mode: Host and Device. PIU FS Dedicated Controller Soft Reset (PIUFSSftRst)
Sourcepub const fn set_piufssftrst(&mut self, val: Piufssftrst)
pub const fn set_piufssftrst(&mut self, val: Piufssftrst)
Mode: Host and Device. PIU FS Dedicated Controller Soft Reset (PIUFSSftRst)
Sourcepub const fn frmcntrrst(&self) -> bool
pub const fn frmcntrrst(&self) -> bool
Mode: Host only. Host Frame Counter Reset (FrmCntrRst)
Sourcepub const fn set_frmcntrrst(&mut self, val: bool)
pub const fn set_frmcntrrst(&mut self, val: bool)
Mode: Host only. Host Frame Counter Reset (FrmCntrRst)
Sourcepub const fn set_rxfflsh(&mut self, val: bool)
pub const fn set_rxfflsh(&mut self, val: bool)
Mode: Host and Device. RxFIFO Flush (RxFFlsh)
Sourcepub const fn set_txfflsh(&mut self, val: bool)
pub const fn set_txfflsh(&mut self, val: bool)
Mode: Host and Device. TxFIFO Flush (TxFFlsh)
Sourcepub const fn txfnum(&self) -> GrstctlTxfnum
pub const fn txfnum(&self) -> GrstctlTxfnum
Mode: Host and Device. TxFIFO Number (TxFNum)
Sourcepub const fn set_txfnum(&mut self, val: GrstctlTxfnum)
pub const fn set_txfnum(&mut self, val: GrstctlTxfnum)
Mode: Host and Device. TxFIFO Number (TxFNum)
Sourcepub const fn csftrstdone(&self) -> bool
pub const fn csftrstdone(&self) -> bool
Mode: Host and Device. Core Soft Reset Done (CSftRstDone)
Sourcepub const fn set_csftrstdone(&mut self, val: bool)
pub const fn set_csftrstdone(&mut self, val: bool)
Mode: Host and Device. Core Soft Reset Done (CSftRstDone)
Sourcepub const fn set_dmareq(&mut self, val: bool)
pub const fn set_dmareq(&mut self, val: bool)
Mode: Host and Device. DMA Request Signal (DMAReq)
Sourcepub const fn set_ahbidle(&mut self, val: bool)
pub const fn set_ahbidle(&mut self, val: bool)
Mode: Host and Device. AHB Master Idle (AHBIdle)
Trait Implementations§
impl Copy for Grstctl
impl Eq for Grstctl
impl StructuralPartialEq for Grstctl
Auto Trait Implementations§
impl Freeze for Grstctl
impl RefUnwindSafe for Grstctl
impl Send for Grstctl
impl Sync for Grstctl
impl Unpin for Grstctl
impl UnwindSafe for Grstctl
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)