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

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

Port Power Management Status and Control Register.

Implementations

impl PortPowerManagementStatusAndControlRegister[src]

#[must_use]pub fn u1_timeout(self) -> u8[src]

Returns the value of the U1 Timeout field.

This field is USB3 only.

pub fn set_u1_timeout(&mut self, timeout: u8)[src]

Sets the value of the U1 Timeout field.

This field is USB3 only.

#[must_use]pub fn u2_timeout(self) -> u8[src]

Returns the value of the U2 Timeout field.

This field is USB3 only.

pub fn set_u2_timeout(&mut self, timeout: u8)[src]

Sets the value of the U2 Timeout field.

This field is USB3 only.

Returns the value of the Force Link PM Accept bit.

This field is USB3 only.

Sets the value of the Force Link PM Accept bit.

This field is USB3 only.

#[must_use]pub fn l1_status(self) -> Option<L1Status>[src]

Returns the value of the L1 Status field.

This field returns None if the value means Reserved.

This field is USB2 only.

#[must_use]pub fn remote_wake_enable(self) -> bool[src]

Returns the value of the Remote Wake Enable field.

This field is USB2 only.

pub fn set_remote_wake_enable(&mut self, b: bool)[src]

Sets the value of the Remote Wake Enable field.

This field is USB2 only.

#[must_use]pub fn best_effort_service_latency(self) -> u8[src]

Returns the value of the Best Effort Service Latency field.

This field is USB2 only.

pub fn set_best_effort_service_latency(&mut self, l: u8)[src]

Sets the value of the Best Effort Service Latency field.

This field is USB2 only.

#[must_use]pub fn l1_device_slot(self) -> u8[src]

Returns the value of the L1 Device Slot field.

This field is USB2 only.

pub fn set_l1_device_slot(&mut self, slot: u8)[src]

Sets the value of the L1 Device Slot field.

This field is USB2 only.

#[must_use]pub fn hardware_lpm_enable(self) -> bool[src]

Returns the value of the Hardware LPM Enable field.

This field is USB2 only.

pub fn set_hardware_lpm_enable(&mut self, b: bool)[src]

Sets the value of the Hardware LPM Enable field.

This field is USB2 only.

#[must_use]pub fn port_test_control(self) -> Option<TestMode>[src]

Returns the value of the Port Test Control field.

This field returns None if the value means Reserved.

This field is USB2 only.

pub fn set_port_test_control(&mut self, m: TestMode)[src]

Sets the value of the Port Test Control field.

This field is USB2 only.

Trait Implementations

impl Clone for PortPowerManagementStatusAndControlRegister[src]

impl Copy for PortPowerManagementStatusAndControlRegister[src]

impl Debug for PortPowerManagementStatusAndControlRegister[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.