#[repr(transparent)]pub struct Ghwcfg2(pub u32);Expand description
User Hardware Configuration 2 Register
Tuple Fields§
§0: u32Implementations§
Source§impl Ghwcfg2
impl Ghwcfg2
Sourcepub const fn set_otgmode(&mut self, val: Otgmode)
pub const fn set_otgmode(&mut self, val: Otgmode)
Mode of Operation (OtgMode)
Sourcepub const fn set_otgarch(&mut self, val: Otgarch)
pub const fn set_otgarch(&mut self, val: Otgarch)
Architecture (OtgArch)
Sourcepub const fn set_singpnt(&mut self, val: Singpnt)
pub const fn set_singpnt(&mut self, val: Singpnt)
Point-to-Point (SingPnt)
Sourcepub const fn set_hsphytype(&mut self, val: Hsphytype)
pub const fn set_hsphytype(&mut self, val: Hsphytype)
High-Speed PHY Interface Type (HSPhyType)
Sourcepub const fn set_fsphytype(&mut self, val: Fsphytype)
pub const fn set_fsphytype(&mut self, val: Fsphytype)
Full-Speed PHY Interface Type (FSPhyType)
Sourcepub const fn set_numdeveps(&mut self, val: Numdeveps)
pub const fn set_numdeveps(&mut self, val: Numdeveps)
Number of Device Endpoints (NumDevEps)
Sourcepub const fn numhstchnl(&self) -> Numhstchnl
pub const fn numhstchnl(&self) -> Numhstchnl
Number of Host Channels (NumHstChnl)
Sourcepub const fn set_numhstchnl(&mut self, val: Numhstchnl)
pub const fn set_numhstchnl(&mut self, val: Numhstchnl)
Number of Host Channels (NumHstChnl)
Sourcepub const fn periosupport(&self) -> bool
pub const fn periosupport(&self) -> bool
Periodic OUT Channels Supported in Host Mode (PerioSupport)
Sourcepub const fn set_periosupport(&mut self, val: bool)
pub const fn set_periosupport(&mut self, val: bool)
Periodic OUT Channels Supported in Host Mode (PerioSupport)
Sourcepub const fn dynfifosizing(&self) -> bool
pub const fn dynfifosizing(&self) -> bool
Dynamic FIFO Sizing Enabled (DynFifoSizing)
Sourcepub const fn set_dynfifosizing(&mut self, val: bool)
pub const fn set_dynfifosizing(&mut self, val: bool)
Dynamic FIFO Sizing Enabled (DynFifoSizing)
Sourcepub const fn multiprocintrpt(&self) -> bool
pub const fn multiprocintrpt(&self) -> bool
Multi Processor Interrupt Enabled (MultiProcIntrpt)
Sourcepub const fn set_multiprocintrpt(&mut self, val: bool)
pub const fn set_multiprocintrpt(&mut self, val: bool)
Multi Processor Interrupt Enabled (MultiProcIntrpt)
Sourcepub const fn nptxqdepth(&self) -> Nptxqdepth
pub const fn nptxqdepth(&self) -> Nptxqdepth
Non-periodic Request Queue Depth (NPTxQDepth)
Sourcepub const fn set_nptxqdepth(&mut self, val: Nptxqdepth)
pub const fn set_nptxqdepth(&mut self, val: Nptxqdepth)
Non-periodic Request Queue Depth (NPTxQDepth)
Sourcepub const fn set_ptxqdepth(&mut self, val: Ptxqdepth)
pub const fn set_ptxqdepth(&mut self, val: Ptxqdepth)
Host Mode Periodic Request Queue Depth (PTxQDepth)
Sourcepub const fn tknqdepth(&self) -> u8
pub const fn tknqdepth(&self) -> u8
Device Mode IN Token Sequence Learning Queue Depth (TknQDepth)
Sourcepub const fn set_tknqdepth(&mut self, val: u8)
pub const fn set_tknqdepth(&mut self, val: u8)
Device Mode IN Token Sequence Learning Queue Depth (TknQDepth)
Trait Implementations§
impl Copy for Ghwcfg2
impl Eq for Ghwcfg2
impl StructuralPartialEq for Ghwcfg2
Auto Trait Implementations§
impl Freeze for Ghwcfg2
impl RefUnwindSafe for Ghwcfg2
impl Send for Ghwcfg2
impl Sync for Ghwcfg2
impl Unpin for Ghwcfg2
impl UnwindSafe for Ghwcfg2
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
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)
clone_to_uninit)