Struct xhci::registers::operational::PortStatusAndControlRegister [−][src]
Port Status and Control Register
Implementations
impl PortStatusAndControlRegister
[src]
#[must_use]pub fn current_connect_status(self) -> bool
[src]
Returns the value of the Current Connect Status bit.
#[must_use]pub fn port_enabled_disabled(self) -> bool
[src]
Returns the value of the Port Enabled/Disabled bit.
pub fn disable_port(&mut self)
[src]
Disable this port by writing 1
to the Port Enabled/Disabled bit.
#[must_use]pub fn over_current_active(self) -> bool
[src]
Returns the value of the Over-current Active bit.
#[must_use]pub fn port_reset(self) -> bool
[src]
Returns the value of the Port Reset bit.
pub fn set_port_reset(&mut self, b: bool)
[src]
Sets the value of the Port Reset bit.
#[must_use]pub fn port_link_state(self) -> u8
[src]
Returns the value of the Port Link State field.
pub fn set_port_link_state(&mut self, state: u8)
[src]
Sets the value of the Port Link State field.
#[must_use]pub fn port_power(self) -> bool
[src]
Returns the value of the Port Power bit.
pub fn set_port_power(&mut self, b: bool)
[src]
Sets the value of the Port Power bit.
#[must_use]pub fn port_speed(self) -> u8
[src]
Returns the value of the Port Speed field.
#[must_use]pub fn port_indicator_control(self) -> PortIndicator
[src]
Returns the value of the Port Indicator Control field.
pub fn set_port_indicator_control(&mut self, i: PortIndicator)
[src]
Sets the value of the Port Indicator Control field.
#[must_use]pub fn port_link_state_write_strobe(self) -> bool
[src]
Returns the value of the Port Link State Write Strobe bit.
pub fn set_port_link_state_write_strobe(&mut self, b: bool)
[src]
Sets the value of the Port Link State Write Strobe bit.
#[must_use]pub fn connect_status_change(self) -> bool
[src]
Returns the value of the Connect Status Change bit.
pub fn clear_connect_status_change(&mut self)
[src]
Clears the Connect Status Change bit.
#[must_use]pub fn port_enabled_disabled_change(self) -> bool
[src]
Returns the value of the Port Enabled/Disabled Change bit.
pub fn clear_port_enabled_disabled_change(&mut self)
[src]
Clears the Port Enabled/Disabled Change bit.
#[must_use]pub fn warm_port_reset_change(self) -> bool
[src]
Returns the value of the Warm Port Reset Change bit.
pub fn clear_warm_port_reset_change(&mut self)
[src]
Clears the Warm Port Reset Change bit.
#[must_use]pub fn over_current_change(self) -> bool
[src]
Returns the value of the Over-current Change bit.
pub fn clear_over_current_change(&mut self)
[src]
Clears the Over-current Change bit.
#[must_use]pub fn port_reset_changed(self) -> bool
[src]
Returns the value of the Port Reset Changed bit.
pub fn clear_reset_changed(&mut self)
[src]
Clears the value of the Port Reset Changed bit.
#[must_use]pub fn port_link_state_change(self) -> bool
[src]
Returns the value of the Port Link State Change bit.
pub fn clear_link_state_change(&mut self)
[src]
Clears the value of the Port Link State Change bit.
#[must_use]pub fn port_config_error_change(self) -> bool
[src]
Returns the value of the Port Config Error Change bit.
pub fn clear_port_config_error_change(&mut self)
[src]
Clears the value of the Port Config Error Change bit.
#[must_use]pub fn cold_attach_status(self) -> bool
[src]
Returns the value of the Cold Attach Status bit.
#[must_use]pub fn wake_on_connect_enable(self) -> bool
[src]
Returns the value of the Wake on Connect Enable bit.
pub fn set_wake_on_connect_enable(&mut self, b: bool)
[src]
Sets the value of the Wake on Connect Enable bit.
#[must_use]pub fn wake_on_disconnect_enable(self) -> bool
[src]
Returns the value of the Wake on Disconnect Enable bit.
pub fn set_wake_on_disconnect_enable(&mut self, b: bool)
[src]
Sets the value of the Wake on Disconnect Enable bit.
#[must_use]pub fn wake_on_over_current_enable(self) -> bool
[src]
Returns the value of the Wake on Over-current Enable bit.
pub fn set_wake_on_over_current_enable(&mut self, b: bool)
[src]
Sets the value of the Wake on Over-current Enable bit.
#[must_use]pub fn device_removable(self) -> bool
[src]
Returns the value of the Device Removable field.
pub fn set_warm_port_rest(&mut self)
[src]
Sets the value of the Warm Port Reset field.
This bit is RW1S.
Trait Implementations
impl Clone for PortStatusAndControlRegister
[src]
fn clone(&self) -> PortStatusAndControlRegister
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for PortStatusAndControlRegister
[src]
impl Debug for PortStatusAndControlRegister
[src]
Auto Trait Implementations
impl Send for PortStatusAndControlRegister
impl Sync for PortStatusAndControlRegister
impl Unpin for PortStatusAndControlRegister
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>,