Struct xhci::extended_capabilities::debug::PortStatusAndControl
source · #[repr(transparent)]pub struct PortStatusAndControl(_);
Expand description
Debug Capability Port Status and Control Register.
Implementations§
source§impl PortStatusAndControl
impl PortStatusAndControl
sourcepub fn current_connect_status(self) -> bool
pub fn current_connect_status(self) -> bool
Returns the Current Connect Status bit.
sourcepub fn port_enabled_disabled(self) -> bool
pub fn port_enabled_disabled(self) -> bool
Returns the Port Enabled/Disabled bit.
sourcepub fn set_port_enabled_disabled(&mut self) -> &mut Self
pub fn set_port_enabled_disabled(&mut self) -> &mut Self
Sets the Port Enabled/Disabled bit.
sourcepub fn clear_port_enabled_disabled(&mut self) -> &mut Self
pub fn clear_port_enabled_disabled(&mut self) -> &mut Self
Clears the Port Enabled/Disabled bit.
sourcepub fn port_reset(self) -> bool
pub fn port_reset(self) -> bool
Returns the Port Reset bit.
sourcepub fn port_link_state(self) -> u8
pub fn port_link_state(self) -> u8
Returns the value of the Port Link State field.
sourcepub fn port_speed(self) -> u8
pub fn port_speed(self) -> u8
Returns the value of the Port Speed field.
sourcepub fn connect_status_change(self) -> bool
pub fn connect_status_change(self) -> bool
Returns the Connect Status Change bit.
sourcepub fn clear_connect_status_change(&mut self) -> &mut Self
pub fn clear_connect_status_change(&mut self) -> &mut Self
Clears the Connect Status Change bit.
sourcepub fn set_0_connect_status_change(&mut self) -> &mut Self
pub fn set_0_connect_status_change(&mut self) -> &mut Self
Set the Connect Status Change bit to 0, preventing the bit from being cleared on write.
sourcepub fn port_reset_change(self) -> bool
pub fn port_reset_change(self) -> bool
Returns the Port Reset Change bit.
sourcepub fn clear_port_reset_change(&mut self) -> &mut Self
pub fn clear_port_reset_change(&mut self) -> &mut Self
Clears the Port Reset Change bit.
sourcepub fn set_0_port_reset_change(&mut self) -> &mut Self
pub fn set_0_port_reset_change(&mut self) -> &mut Self
Set the Port Reset Change bit to 0, preventing the bit from being cleared on write.
sourcepub fn port_link_status_change(self) -> bool
pub fn port_link_status_change(self) -> bool
Returns the Port Link Status Change bit.
sourcepub fn clear_port_link_status_change(&mut self) -> &mut Self
pub fn clear_port_link_status_change(&mut self) -> &mut Self
Clears the Port Link Status Change bit.
sourcepub fn set_0_port_link_status_change(&mut self) -> &mut Self
pub fn set_0_port_link_status_change(&mut self) -> &mut Self
Set the Port Link Status Change bit to 0, preventing the bit from being cleared on write.
sourcepub fn port_config_error_change(self) -> bool
pub fn port_config_error_change(self) -> bool
Returns the Port Config Error Change bit.
sourcepub fn clear_port_config_error_change(&mut self) -> &mut Self
pub fn clear_port_config_error_change(&mut self) -> &mut Self
Clears the Port Config Error Change bit.
sourcepub fn set_0_port_config_error_change(&mut self) -> &mut Self
pub fn set_0_port_config_error_change(&mut self) -> &mut Self
Set the Port Config Error Change bit to 0, preventing the bit from being cleared on write.
Trait Implementations§
source§impl Clone for PortStatusAndControl
impl Clone for PortStatusAndControl
source§fn clone(&self) -> PortStatusAndControl
fn clone(&self) -> PortStatusAndControl
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more