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

Port Power Management Status and Control Register.

Implementations§

source§

impl PortPowerManagementStatusAndControlRegister

These methods are only valid for USB3.

source

pub fn u1_timeout(self) -> u8

Returns the value of the U1 Timeout field.

source

pub fn set_u1_timeout(&mut self, value: u8) -> &mut Self

Sets the value of the U1 Timeout field.

source

pub fn u2_timeout(self) -> u8

Returns the value of the U2 Timeout field.

source

pub fn set_u2_timeout(&mut self, value: u8) -> &mut Self

Sets the value of the U2 Timeout field.

Returns the Force Link PM Accept bit.

Sets the Force Link PM Accept bit.

Clears the Force Link PM Accept bit.

source§

impl PortPowerManagementStatusAndControlRegister

These methods are only valid for USB2.

source

pub fn l1_status(self) -> Option<L1Status>

Returns the value of the L1 Status field.

This field returns None if the value means Reserved.

source

pub fn remote_wake_enable(self) -> bool

Returns the Remote Wake Enable bit.

source

pub fn set_remote_wake_enable(&mut self) -> &mut Self

Sets the Remote Wake Enable bit.

source

pub fn clear_remote_wake_enable(&mut self) -> &mut Self

Clears the Remote Wake Enable bit.

source

pub fn best_effort_service_latency(self) -> u8

Returns the value of the Best Effort Service Latency field.

source

pub fn set_best_effort_service_latency(&mut self, value: u8) -> &mut Self

Sets the value of the Best Effort Service Latency field.

source

pub fn l1_device_slot(self) -> u8

Returns the value of the L1 Device Slot field.

source

pub fn set_l1_device_slot(&mut self, value: u8) -> &mut Self

Sets the value of the L1 Device Slot field.

source

pub fn hardware_lpm_enable(self) -> bool

Returns the Hardware LPM Enable bit.

source

pub fn set_hardware_lpm_enable(&mut self) -> &mut Self

Sets the Hardware LPM Enable bit.

source

pub fn clear_hardware_lpm_enable(&mut self) -> &mut Self

Clears the Hardware LPM Enable bit.

source

pub fn port_test_control(self) -> Option<TestMode>

Returns the value of the Port Test Control field.

This field returns None if the value means Reserved.

source

pub fn set_port_test_control(&mut self, m: TestMode) -> &mut Self

Sets the value of the Port Test Control field.

Trait Implementations§

source§

impl Clone for PortPowerManagementStatusAndControlRegister

source§

fn clone(&self) -> PortPowerManagementStatusAndControlRegister

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for PortPowerManagementStatusAndControlRegister

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Copy for PortPowerManagementStatusAndControlRegister

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.