Struct xhci::registers::operational::PortStatusAndControlRegister[][src]

#[repr(transparent)]pub struct PortStatusAndControlRegister(_);

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.

Returns the value of the Port Link State field.

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.

Returns the value of the Port Link State Write Strobe bit.

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.

Returns the value of the Port Link State Change bit.

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]

impl Copy for PortStatusAndControlRegister[src]

impl Debug for PortStatusAndControlRegister[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.