#[repr(transparent)]pub struct PortPowerManagementStatusAndControlRegister(_);
Expand description
Port Power Management Status and Control Register.
Implementations§
source§impl PortPowerManagementStatusAndControlRegister
impl PortPowerManagementStatusAndControlRegister
These methods are only valid for USB3.
sourcepub fn u1_timeout(self) -> u8
pub fn u1_timeout(self) -> u8
Returns the value of the U1 Timeout field.
sourcepub fn set_u1_timeout(&mut self, value: u8) -> &mut Self
pub fn set_u1_timeout(&mut self, value: u8) -> &mut Self
Sets the value of the U1 Timeout field.
sourcepub fn u2_timeout(self) -> u8
pub fn u2_timeout(self) -> u8
Returns the value of the U2 Timeout field.
sourcepub fn set_u2_timeout(&mut self, value: u8) -> &mut Self
pub fn set_u2_timeout(&mut self, value: u8) -> &mut Self
Sets the value of the U2 Timeout field.
sourcepub fn force_link_pm_accept(self) -> bool
pub fn force_link_pm_accept(self) -> bool
Returns the Force Link PM Accept bit.
sourcepub fn set_force_link_pm_accept(&mut self) -> &mut Self
pub fn set_force_link_pm_accept(&mut self) -> &mut Self
Sets the Force Link PM Accept bit.
sourcepub fn clear_force_link_pm_accept(&mut self) -> &mut Self
pub fn clear_force_link_pm_accept(&mut self) -> &mut Self
Clears the Force Link PM Accept bit.
source§impl PortPowerManagementStatusAndControlRegister
impl PortPowerManagementStatusAndControlRegister
These methods are only valid for USB2.
sourcepub fn l1_status(self) -> Option<L1Status>
pub fn l1_status(self) -> Option<L1Status>
Returns the value of the L1 Status field.
This field returns None
if the value means Reserved
.
sourcepub fn remote_wake_enable(self) -> bool
pub fn remote_wake_enable(self) -> bool
Returns the Remote Wake Enable bit.
sourcepub fn set_remote_wake_enable(&mut self) -> &mut Self
pub fn set_remote_wake_enable(&mut self) -> &mut Self
Sets the Remote Wake Enable bit.
sourcepub fn clear_remote_wake_enable(&mut self) -> &mut Self
pub fn clear_remote_wake_enable(&mut self) -> &mut Self
Clears the Remote Wake Enable bit.
sourcepub fn best_effort_service_latency(self) -> u8
pub fn best_effort_service_latency(self) -> u8
Returns the value of the Best Effort Service Latency field.
sourcepub fn set_best_effort_service_latency(&mut self, value: u8) -> &mut Self
pub fn set_best_effort_service_latency(&mut self, value: u8) -> &mut Self
Sets the value of the Best Effort Service Latency field.
sourcepub fn l1_device_slot(self) -> u8
pub fn l1_device_slot(self) -> u8
Returns the value of the L1 Device Slot field.
sourcepub fn set_l1_device_slot(&mut self, value: u8) -> &mut Self
pub fn set_l1_device_slot(&mut self, value: u8) -> &mut Self
Sets the value of the L1 Device Slot field.
sourcepub fn hardware_lpm_enable(self) -> bool
pub fn hardware_lpm_enable(self) -> bool
Returns the Hardware LPM Enable bit.
sourcepub fn set_hardware_lpm_enable(&mut self) -> &mut Self
pub fn set_hardware_lpm_enable(&mut self) -> &mut Self
Sets the Hardware LPM Enable bit.
sourcepub fn clear_hardware_lpm_enable(&mut self) -> &mut Self
pub fn clear_hardware_lpm_enable(&mut self) -> &mut Self
Clears the Hardware LPM Enable bit.
sourcepub fn port_test_control(self) -> Option<TestMode>
pub fn port_test_control(self) -> Option<TestMode>
Returns the value of the Port Test Control field.
This field returns None
if the value means Reserved
.
sourcepub fn set_port_test_control(&mut self, m: TestMode) -> &mut Self
pub fn set_port_test_control(&mut self, m: TestMode) -> &mut Self
Sets the value of the Port Test Control field.
Trait Implementations§
source§impl Clone for PortPowerManagementStatusAndControlRegister
impl Clone for PortPowerManagementStatusAndControlRegister
source§fn clone(&self) -> PortPowerManagementStatusAndControlRegister
fn clone(&self) -> PortPowerManagementStatusAndControlRegister
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more