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