Struct xhci::registers::operational::PortPowerManagementStatusAndControlRegister [−][src]
Port Power Management Status and Control Register.
Implementations
impl PortPowerManagementStatusAndControlRegister
[src]
#[must_use]pub fn u1_timeout(self) -> u8
[src]
Returns the value of the U1 Timeout field.
This field is USB3 only.
pub fn set_u1_timeout(&mut self, timeout: u8)
[src]
Sets the value of the U1 Timeout field.
This field is USB3 only.
#[must_use]pub fn u2_timeout(self) -> u8
[src]
Returns the value of the U2 Timeout field.
This field is USB3 only.
pub fn set_u2_timeout(&mut self, timeout: u8)
[src]
Sets the value of the U2 Timeout field.
This field is USB3 only.
#[must_use]pub fn force_link_pm_accept(self) -> bool
[src]
Returns the value of the Force Link PM Accept bit.
This field is USB3 only.
pub fn set_force_link_pm_accept(&mut self, b: bool)
[src]
Sets the value of the Force Link PM Accept bit.
This field is USB3 only.
#[must_use]pub fn l1_status(self) -> Option<L1Status>
[src]
Returns the value of the L1 Status field.
This field returns None
if the value means Reserved
.
This field is USB2 only.
#[must_use]pub fn remote_wake_enable(self) -> bool
[src]
Returns the value of the Remote Wake Enable field.
This field is USB2 only.
pub fn set_remote_wake_enable(&mut self, b: bool)
[src]
Sets the value of the Remote Wake Enable field.
This field is USB2 only.
#[must_use]pub fn best_effort_service_latency(self) -> u8
[src]
Returns the value of the Best Effort Service Latency field.
This field is USB2 only.
pub fn set_best_effort_service_latency(&mut self, l: u8)
[src]
Sets the value of the Best Effort Service Latency field.
This field is USB2 only.
#[must_use]pub fn l1_device_slot(self) -> u8
[src]
Returns the value of the L1 Device Slot field.
This field is USB2 only.
pub fn set_l1_device_slot(&mut self, slot: u8)
[src]
Sets the value of the L1 Device Slot field.
This field is USB2 only.
#[must_use]pub fn hardware_lpm_enable(self) -> bool
[src]
Returns the value of the Hardware LPM Enable field.
This field is USB2 only.
pub fn set_hardware_lpm_enable(&mut self, b: bool)
[src]
Sets the value of the Hardware LPM Enable field.
This field is USB2 only.
#[must_use]pub fn port_test_control(self) -> Option<TestMode>
[src]
Returns the value of the Port Test Control field.
This field returns None
if the value means Reserved
.
This field is USB2 only.
pub fn set_port_test_control(&mut self, m: TestMode)
[src]
Sets the value of the Port Test Control field.
This field is USB2 only.
Trait Implementations
impl Clone for PortPowerManagementStatusAndControlRegister
[src]
fn clone(&self) -> PortPowerManagementStatusAndControlRegister
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for PortPowerManagementStatusAndControlRegister
[src]
impl Debug for PortPowerManagementStatusAndControlRegister
[src]
Auto Trait Implementations
impl Send for PortPowerManagementStatusAndControlRegister
impl Sync for PortPowerManagementStatusAndControlRegister
impl Unpin for PortPowerManagementStatusAndControlRegister
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,