Struct xhci::registers::operational::PortStatusAndControlRegister
source · #[repr(transparent)]pub struct PortStatusAndControlRegister(_);
Expand description
Port Status and Control Register
Implementations§
source§impl PortStatusAndControlRegister
impl PortStatusAndControlRegister
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 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 set_0_port_enabled_disabled(&mut self) -> &mut Self
pub fn set_0_port_enabled_disabled(&mut self) -> &mut Self
Set the Port Enabled/Disabled bit to 0, preventing the bit from being cleared on write.
sourcepub fn over_current_active(self) -> bool
pub fn over_current_active(self) -> bool
Returns the Over-current Active bit.
sourcepub fn port_reset(self) -> bool
pub fn port_reset(self) -> bool
Returns the Port Reset bit.
sourcepub fn set_port_reset(&mut self) -> &mut Self
pub fn set_port_reset(&mut self) -> &mut Self
Sets 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 set_port_link_state(&mut self, value: u8) -> &mut Self
pub fn set_port_link_state(&mut self, value: u8) -> &mut Self
Sets the value of the Port Link State field.
sourcepub fn port_power(self) -> bool
pub fn port_power(self) -> bool
Returns the Port Power bit.
sourcepub fn set_port_power(&mut self) -> &mut Self
pub fn set_port_power(&mut self) -> &mut Self
Sets the Port Power bit.
sourcepub fn clear_port_power(&mut self) -> &mut Self
pub fn clear_port_power(&mut self) -> &mut Self
Clears the Port Power bit.
sourcepub fn port_speed(self) -> u8
pub fn port_speed(self) -> u8
Returns the value of the Port Speed field.
sourcepub fn port_indicator_control(self) -> PortIndicator
pub fn port_indicator_control(self) -> PortIndicator
Returns the value of the Port Indicator Control field.
sourcepub fn set_port_indicator_control(&mut self, value: PortIndicator) -> &mut Self
pub fn set_port_indicator_control(&mut self, value: PortIndicator) -> &mut Self
Sets the value of the Port Indicator Control field.
sourcepub fn port_link_state_write_strobe(self) -> bool
pub fn port_link_state_write_strobe(self) -> bool
Returns the Port Link State Write Strobe bit.
sourcepub fn set_port_link_state_write_strobe(&mut self) -> &mut Self
pub fn set_port_link_state_write_strobe(&mut self) -> &mut Self
Sets the Port Link State Write Strobe bit.
sourcepub fn clear_port_link_state_write_strobe(&mut self) -> &mut Self
pub fn clear_port_link_state_write_strobe(&mut self) -> &mut Self
Clears the Port Link State Write Strobe bit.
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_enabled_disabled_change(self) -> bool
pub fn port_enabled_disabled_change(self) -> bool
Returns the Port Enabled/Disabled Change bit.
sourcepub fn clear_port_enabled_disabled_change(&mut self) -> &mut Self
pub fn clear_port_enabled_disabled_change(&mut self) -> &mut Self
Clears the Port Enabled/Disabled Change bit.
sourcepub fn set_0_port_enabled_disabled_change(&mut self) -> &mut Self
pub fn set_0_port_enabled_disabled_change(&mut self) -> &mut Self
Set the Port Enabled/Disabled Change bit to 0, preventing the bit from being cleared on write.
sourcepub fn warm_port_reset_change(self) -> bool
pub fn warm_port_reset_change(self) -> bool
Returns the Warm Port Reset Change bit.
sourcepub fn clear_warm_port_reset_change(&mut self) -> &mut Self
pub fn clear_warm_port_reset_change(&mut self) -> &mut Self
Clears the Warm Port Reset Change bit.
sourcepub fn set_0_warm_port_reset_change(&mut self) -> &mut Self
pub fn set_0_warm_port_reset_change(&mut self) -> &mut Self
Set the Warm Port Reset Change bit to 0, preventing the bit from being cleared on write.
sourcepub fn over_current_change(self) -> bool
pub fn over_current_change(self) -> bool
Returns the Over-Current Change bit.
sourcepub fn clear_over_current_change(&mut self) -> &mut Self
pub fn clear_over_current_change(&mut self) -> &mut Self
Clears the Over-Current Change bit.
sourcepub fn set_0_over_current_change(&mut self) -> &mut Self
pub fn set_0_over_current_change(&mut self) -> &mut Self
Set the Over-Current 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_state_change(self) -> bool
pub fn port_link_state_change(self) -> bool
Returns the Port Link State Change bit.
sourcepub fn clear_port_link_state_change(&mut self) -> &mut Self
pub fn clear_port_link_state_change(&mut self) -> &mut Self
Clears the Port Link State Change bit.
sourcepub fn set_0_port_link_state_change(&mut self) -> &mut Self
pub fn set_0_port_link_state_change(&mut self) -> &mut Self
Set the Port Link State 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.
sourcepub fn cold_attach_status(self) -> bool
pub fn cold_attach_status(self) -> bool
Returns the Cold Attach Status bit.
sourcepub fn wake_on_connect_enable(self) -> bool
pub fn wake_on_connect_enable(self) -> bool
Returns the Wake on Connect Enable bit.
sourcepub fn set_wake_on_connect_enable(&mut self) -> &mut Self
pub fn set_wake_on_connect_enable(&mut self) -> &mut Self
Sets the Wake on Connect Enable bit.
sourcepub fn clear_wake_on_connect_enable(&mut self) -> &mut Self
pub fn clear_wake_on_connect_enable(&mut self) -> &mut Self
Clears the Wake on Connect Enable bit.
sourcepub fn wake_on_disconnect_enable(self) -> bool
pub fn wake_on_disconnect_enable(self) -> bool
Returns the Wake on Disconnect Enable bit.
sourcepub fn set_wake_on_disconnect_enable(&mut self) -> &mut Self
pub fn set_wake_on_disconnect_enable(&mut self) -> &mut Self
Sets the Wake on Disconnect Enable bit.
sourcepub fn clear_wake_on_disconnect_enable(&mut self) -> &mut Self
pub fn clear_wake_on_disconnect_enable(&mut self) -> &mut Self
Clears the Wake on Disconnect Enable bit.
sourcepub fn wake_on_over_current_enable(self) -> bool
pub fn wake_on_over_current_enable(self) -> bool
Returns the Wake on Over-Current Enable bit.
sourcepub fn set_wake_on_over_current_enable(&mut self) -> &mut Self
pub fn set_wake_on_over_current_enable(&mut self) -> &mut Self
Sets the Wake on Over-Current Enable bit.
sourcepub fn clear_wake_on_over_current_enable(&mut self) -> &mut Self
pub fn clear_wake_on_over_current_enable(&mut self) -> &mut Self
Clears the Wake on Over-Current Enable bit.
sourcepub fn device_removable(self) -> bool
pub fn device_removable(self) -> bool
Returns the Device Removable bit.
sourcepub fn warm_port_reset(self) -> bool
pub fn warm_port_reset(self) -> bool
Returns the Warm Port Reset bit.
sourcepub fn set_warm_port_reset(&mut self) -> &mut Self
pub fn set_warm_port_reset(&mut self) -> &mut Self
Sets the Warm Port Reset bit.
Trait Implementations§
source§impl Clone for PortStatusAndControlRegister
impl Clone for PortStatusAndControlRegister
source§fn clone(&self) -> PortStatusAndControlRegister
fn clone(&self) -> PortStatusAndControlRegister
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more