#[repr(transparent)]pub struct Ghwcfg4(pub u32);Expand description
User Hardware Configuration 4 Register
Tuple Fields§
§0: u32Implementations§
Source§impl Ghwcfg4
impl Ghwcfg4
Sourcepub const fn numdevperioeps(&self) -> Numdevperioeps
pub const fn numdevperioeps(&self) -> Numdevperioeps
Number of Device Mode Periodic IN Endpoints (NumDevPerioEps)
Sourcepub const fn set_numdevperioeps(&mut self, val: Numdevperioeps)
pub const fn set_numdevperioeps(&mut self, val: Numdevperioeps)
Number of Device Mode Periodic IN Endpoints (NumDevPerioEps)
Sourcepub const fn partialpwrdn(&self) -> bool
pub const fn partialpwrdn(&self) -> bool
Enable Partial Power Down (PartialPwrDn)
Sourcepub const fn set_partialpwrdn(&mut self, val: bool)
pub const fn set_partialpwrdn(&mut self, val: bool)
Enable Partial Power Down (PartialPwrDn)
Sourcepub const fn set_ahbfreq(&mut self, val: bool)
pub const fn set_ahbfreq(&mut self, val: bool)
Minimum AHB Frequency Less Than 60 MHz (AhbFreq)
Sourcepub const fn hibernation(&self) -> bool
pub const fn hibernation(&self) -> bool
Enable Hibernation (Hibernation)
Sourcepub const fn set_hibernation(&mut self, val: bool)
pub const fn set_hibernation(&mut self, val: bool)
Enable Hibernation (Hibernation)
Sourcepub const fn extendedhibernation(&self) -> bool
pub const fn extendedhibernation(&self) -> bool
Enable Hibernation
Sourcepub const fn set_extendedhibernation(&mut self, val: bool)
pub const fn set_extendedhibernation(&mut self, val: bool)
Enable Hibernation
Sourcepub const fn enhancedlpmsupt1(&self) -> bool
pub const fn enhancedlpmsupt1(&self) -> bool
Enhanced LPM Support1 (EnhancedLPMSupt1)
Sourcepub const fn set_enhancedlpmsupt1(&mut self, val: bool)
pub const fn set_enhancedlpmsupt1(&mut self, val: bool)
Enhanced LPM Support1 (EnhancedLPMSupt1)
Sourcepub const fn servintflow(&self) -> bool
pub const fn servintflow(&self) -> bool
Service Interval Flow
Sourcepub const fn set_servintflow(&mut self, val: bool)
pub const fn set_servintflow(&mut self, val: bool)
Service Interval Flow
Sourcepub const fn ipgisocsupt(&self) -> bool
pub const fn ipgisocsupt(&self) -> bool
Interpacket Gap ISOC OUT Worst-case Support (ipgisocSupt)
Sourcepub const fn set_ipgisocsupt(&mut self, val: bool)
pub const fn set_ipgisocsupt(&mut self, val: bool)
Interpacket Gap ISOC OUT Worst-case Support (ipgisocSupt)
Sourcepub const fn set_acgsupt(&mut self, val: bool)
pub const fn set_acgsupt(&mut self, val: bool)
Active Clock Gating Support
Sourcepub const fn enhancedlpmsupt(&self) -> bool
pub const fn enhancedlpmsupt(&self) -> bool
Enhanced LPM Support (EnhancedLPMSupt)
Sourcepub const fn set_enhancedlpmsupt(&mut self, val: bool)
pub const fn set_enhancedlpmsupt(&mut self, val: bool)
Enhanced LPM Support (EnhancedLPMSupt)
Sourcepub const fn phydatawidth(&self) -> Phydatawidth
pub const fn phydatawidth(&self) -> Phydatawidth
UTMI+ PHY/ULPI-to-Internal UTMI+ Wrapper Data Width
Sourcepub const fn set_phydatawidth(&mut self, val: Phydatawidth)
pub const fn set_phydatawidth(&mut self, val: Phydatawidth)
UTMI+ PHY/ULPI-to-Internal UTMI+ Wrapper Data Width
Sourcepub const fn numctleps(&self) -> Numctleps
pub const fn numctleps(&self) -> Numctleps
Number of Device Mode Control Endpoints in Addition to
Sourcepub const fn set_numctleps(&mut self, val: Numctleps)
pub const fn set_numctleps(&mut self, val: Numctleps)
Number of Device Mode Control Endpoints in Addition to
Sourcepub const fn set_iddgfltr(&mut self, val: bool)
pub const fn set_iddgfltr(&mut self, val: bool)
IDDIG Filter Enable (IddgFltr)
Sourcepub const fn vbusvalidfltr(&self) -> bool
pub const fn vbusvalidfltr(&self) -> bool
VBUS Valid Filter Enabled (VBusValidFltr)
Sourcepub const fn set_vbusvalidfltr(&mut self, val: bool)
pub const fn set_vbusvalidfltr(&mut self, val: bool)
VBUS Valid Filter Enabled (VBusValidFltr)
Sourcepub const fn avalidfltr(&self) -> bool
pub const fn avalidfltr(&self) -> bool
a_valid Filter Enabled (AValidFltr)
Sourcepub const fn set_avalidfltr(&mut self, val: bool)
pub const fn set_avalidfltr(&mut self, val: bool)
a_valid Filter Enabled (AValidFltr)
Sourcepub const fn bvalidfltr(&self) -> bool
pub const fn bvalidfltr(&self) -> bool
b_valid Filter Enabled (BValidFltr)
Sourcepub const fn set_bvalidfltr(&mut self, val: bool)
pub const fn set_bvalidfltr(&mut self, val: bool)
b_valid Filter Enabled (BValidFltr)
Sourcepub const fn sessendfltr(&self) -> bool
pub const fn sessendfltr(&self) -> bool
session_end Filter Enabled (SessEndFltr)
Sourcepub const fn set_sessendfltr(&mut self, val: bool)
pub const fn set_sessendfltr(&mut self, val: bool)
session_end Filter Enabled (SessEndFltr)
Sourcepub const fn dedfifomode(&self) -> bool
pub const fn dedfifomode(&self) -> bool
Enable Dedicated Transmit FIFO for device IN Endpoints
Sourcepub const fn set_dedfifomode(&mut self, val: bool)
pub const fn set_dedfifomode(&mut self, val: bool)
Enable Dedicated Transmit FIFO for device IN Endpoints
Sourcepub const fn ineps(&self) -> Ineps
pub const fn ineps(&self) -> Ineps
Number of Device Mode IN Endpoints Including Control Endpoints (INEps)
Sourcepub const fn set_ineps(&mut self, val: Ineps)
pub const fn set_ineps(&mut self, val: Ineps)
Number of Device Mode IN Endpoints Including Control Endpoints (INEps)
Sourcepub const fn descdmaenabled(&self) -> bool
pub const fn descdmaenabled(&self) -> bool
Scatter/Gather DMA configuration
Sourcepub const fn set_descdmaenabled(&mut self, val: bool)
pub const fn set_descdmaenabled(&mut self, val: bool)
Scatter/Gather DMA configuration
Sourcepub const fn set_descdma(&mut self, val: Descdma)
pub const fn set_descdma(&mut self, val: Descdma)
Scatter/Gather DMA configuration
Trait Implementations§
impl Copy for Ghwcfg4
impl Eq for Ghwcfg4
impl StructuralPartialEq for Ghwcfg4
Auto Trait Implementations§
impl Freeze for Ghwcfg4
impl RefUnwindSafe for Ghwcfg4
impl Send for Ghwcfg4
impl Sync for Ghwcfg4
impl Unpin for Ghwcfg4
impl UnwindSafe for Ghwcfg4
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)