Struct xhci::extended_capabilities::hci_extended_power_management::PowerManagementControlStatusRegister
source · #[repr(transparent)]pub struct PowerManagementControlStatusRegister(_);
Expand description
Power Management Control/Status Register.
Implementations§
source§impl PowerManagementControlStatusRegister
impl PowerManagementControlStatusRegister
sourcepub fn pme_status(self) -> bool
pub fn pme_status(self) -> bool
Returns the PME_Status bit.
sourcepub fn clear_pme_status(&mut self) -> &mut Self
pub fn clear_pme_status(&mut self) -> &mut Self
Clears the PME_Status bit.
sourcepub fn set_0_pme_status(&mut self) -> &mut Self
pub fn set_0_pme_status(&mut self) -> &mut Self
Set the PME_Status bit to 0, preventing the bit from being cleared on write.
sourcepub fn data_scale(self) -> u8
pub fn data_scale(self) -> u8
Returns the value of the Data_Scale field.
sourcepub fn data_select(self) -> u8
pub fn data_select(self) -> u8
Returns the value of the Data_Select field.
sourcepub fn set_data_select(&mut self, value: u8) -> &mut Self
pub fn set_data_select(&mut self, value: u8) -> &mut Self
Sets the value of the Data_Select field.
sourcepub fn set_pme_en(&mut self) -> &mut Self
pub fn set_pme_en(&mut self) -> &mut Self
Sets the PME_En bit.
sourcepub fn clear_pme_en(&mut self) -> &mut Self
pub fn clear_pme_en(&mut self) -> &mut Self
Clears the PME_En bit.
sourcepub fn power_state(self) -> u8
pub fn power_state(self) -> u8
Returns the value of the PowerState field.
sourcepub fn set_power_state(&mut self, value: u8) -> &mut Self
pub fn set_power_state(&mut self, value: u8) -> &mut Self
Sets the value of the PowerState field.
Trait Implementations§
source§impl Clone for PowerManagementControlStatusRegister
impl Clone for PowerManagementControlStatusRegister
source§fn clone(&self) -> PowerManagementControlStatusRegister
fn clone(&self) -> PowerManagementControlStatusRegister
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for PowerManagementControlStatusRegister
Auto Trait Implementations§
impl RefUnwindSafe for PowerManagementControlStatusRegister
impl Send for PowerManagementControlStatusRegister
impl Sync for PowerManagementControlStatusRegister
impl Unpin for PowerManagementControlStatusRegister
impl UnwindSafe for PowerManagementControlStatusRegister
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