pub struct R(/* private fields */);
Expand description

Register hc_rh_descriptor_a reader

Implementations§

source§

impl R

source

pub fn number_downstream_ports(&self) -> NUMBER_DOWNSTREAM_PORTS_R

Bits 0:7 - NumberDownstreamPorts

These bits specify the number of downstream ports supported by the Root Hub. It is implementation-specific. The minimum number of ports is 1. The maximum number of ports supported.

source

pub fn no_power_swithcing(&self) -> NO_POWER_SWITHCING_R

Bit 8 - NoPowerSwithcing

These bits are used to specify whether power switching is supported or ports are always powered. It is implementation- specific. When this bit is cleared, the PowerSwitchingMode specifies global or per-port switching.

source

pub fn power_switching_mode(&self) -> POWER_SWITCHING_MODE_R

Bit 9 - PowerSwitchingMode

This bit is used to specify how the power switching of the Root Hub ports is controlled. It is implementation-specific. This field is only valid if the NoPowerSwitching field is cleared.

source

pub fn device(&self) -> DEVICE_R

Bit 10 - Device Type This bit specifies that the Root Hub is not a compound device. The Root Hub is not permitted to be a compound device. This field should always read/write 0.

source

pub fn over_current_protection_mode(&self) -> OVER_CURRENT_PROTECTION_MODE_R

Bit 11 - OverCurrentProtectionMode

This bit describes how the overcurrent status for the Root Hub ports are reported. At reset, these fields should reflect the same mode as PowerSwitchingMode. This field is valid only if the NoOverCurrentProtection field is cleared. 0 Over-current status is reported collectively for all downstream ports. 1 Over-current status is reported on per-port basis.

source

pub fn no_over_current_protection(&self) -> NO_OVER_CURRENT_PROTECTION_R

Bit 12 - NoOverCurrentProtection

This bit describes how the overcurrent status for the Root Hub ports are reported. When this bit is cleared, the OverCurrentProtectionMode field specifies global or per-port reporting.

source

pub fn power_on_to_power_good_time(&self) -> POWER_ON_TO_POWER_GOOD_TIME_R

Bits 24:31 - PowerOnToPowerGoodTime[POTPGT]

This byte specifies the duration HCD has to wait before accessing a powered-on port of the Root Hub. It is implementation-specific. The unit of time is 2 ms. The duration is calculated as POTPGT * 2ms.

Methods from Deref<Target = R<HC_RH_DESCRIPTOR_A_SPEC>>§

source

pub fn bits(&self) -> REG::Ux

Reads raw bits from register.

Trait Implementations§

source§

impl Deref for R

§

type Target = R<HC_RH_DESCRIPTOR_A_SPEC>

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl From<R<HC_RH_DESCRIPTOR_A_SPEC>> for R

source§

fn from(reader: R<HC_RH_DESCRIPTOR_A_SPEC>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl Freeze for R

§

impl RefUnwindSafe for R

§

impl Send for R

§

impl Sync for R

§

impl Unpin for R

§

impl UnwindSafe for R

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where 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 T
where 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 T
where 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 T
where 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.