#[repr(transparent)]pub struct Hcrhdescriptora(pub u32);Expand description
First of the two registers which describes the characteristics of the root hub
Tuple Fields§
§0: u32Implementations§
Source§impl Hcrhdescriptora
impl Hcrhdescriptora
Sourcepub const fn ndp(&self) -> u8
pub const fn ndp(&self) -> u8
NumberDownstreamPorts These bits specify the number of downstream ports supported by the root hub.
Sourcepub const fn set_ndp(&mut self, val: u8)
pub const fn set_ndp(&mut self, val: u8)
NumberDownstreamPorts These bits specify the number of downstream ports supported by the root hub.
Sourcepub const fn psm(&self) -> bool
pub const fn psm(&self) -> bool
PowerSwitchingMode This bit is used to specify how the power switching of the root hub ports is controlled.
Sourcepub const fn set_psm(&mut self, val: bool)
pub const fn set_psm(&mut self, val: bool)
PowerSwitchingMode This bit is used to specify how the power switching of the root hub ports is controlled.
Sourcepub const fn nps(&self) -> bool
pub const fn nps(&self) -> bool
NoPowerSwitching These bits are used to specify whether power switching is supported or port are always powered.
Sourcepub const fn set_nps(&mut self, val: bool)
pub const fn set_nps(&mut self, val: bool)
NoPowerSwitching These bits are used to specify whether power switching is supported or port are always powered.
Sourcepub const fn dt(&self) -> bool
pub const fn dt(&self) -> bool
DeviceType This bit specifies that the root hub is not a compound device.
Sourcepub const fn set_dt(&mut self, val: bool)
pub const fn set_dt(&mut self, val: bool)
DeviceType This bit specifies that the root hub is not a compound device.
Sourcepub const fn ocpm(&self) -> bool
pub const fn ocpm(&self) -> bool
OverCurrentProtectionMode This bit describes how the overcurrent status for the root hub ports are reported.
Sourcepub const fn set_ocpm(&mut self, val: bool)
pub const fn set_ocpm(&mut self, val: bool)
OverCurrentProtectionMode This bit describes how the overcurrent status for the root hub ports are reported.
Sourcepub const fn nocp(&self) -> bool
pub const fn nocp(&self) -> bool
NoOverCurrentProtection This bit describes how the overcurrent status for the root hub ports are reported.
Sourcepub const fn set_nocp(&mut self, val: bool)
pub const fn set_nocp(&mut self, val: bool)
NoOverCurrentProtection This bit describes how the overcurrent status for the root hub ports are reported.
Sourcepub const fn potpgt(&self) -> u8
pub const fn potpgt(&self) -> u8
PowerOnToPowerGoodTime This byte specifies the duration the HCD has to wait before accessing a powered-on port of the root hub.
Sourcepub const fn set_potpgt(&mut self, val: u8)
pub const fn set_potpgt(&mut self, val: u8)
PowerOnToPowerGoodTime This byte specifies the duration the HCD has to wait before accessing a powered-on port of the root hub.
Trait Implementations§
Source§impl Clone for Hcrhdescriptora
impl Clone for Hcrhdescriptora
Source§fn clone(&self) -> Hcrhdescriptora
fn clone(&self) -> Hcrhdescriptora
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more