#[repr(transparent)]pub struct Hcsparams(pub u32);Expand description
Host Controller Structural Parameters
Tuple Fields§
§0: u32Implementations§
Source§impl Hcsparams
impl Hcsparams
Sourcepub const fn n_ports(&self) -> u8
pub const fn n_ports(&self) -> u8
This register specifies the number of physical downstream ports implemented on this host controller.
Sourcepub const fn set_n_ports(&mut self, val: u8)
pub const fn set_n_ports(&mut self, val: u8)
This register specifies the number of physical downstream ports implemented on this host controller.
Sourcepub const fn ppc(&self) -> bool
pub const fn ppc(&self) -> bool
This field indicates whether the host controller implementation includes port power control.
Sourcepub const fn set_ppc(&mut self, val: bool)
pub const fn set_ppc(&mut self, val: bool)
This field indicates whether the host controller implementation includes port power control.
Sourcepub const fn p_indicator(&self) -> bool
pub const fn p_indicator(&self) -> bool
This bit indicates whether the ports support port indicator control.
Sourcepub const fn set_p_indicator(&mut self, val: bool)
pub const fn set_p_indicator(&mut self, val: bool)
This bit indicates whether the ports support port indicator control.
Trait Implementations§
impl Copy for Hcsparams
impl Eq for Hcsparams
impl StructuralPartialEq for Hcsparams
Auto Trait Implementations§
impl Freeze for Hcsparams
impl RefUnwindSafe for Hcsparams
impl Send for Hcsparams
impl Sync for Hcsparams
impl Unpin for Hcsparams
impl UnwindSafe for Hcsparams
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