nxp-pac

Crates

git

Versions

lpc55s69_cm33_core1

Flavors

Hcrhportstatus

Struct Hcrhportstatus 

Source
#[repr(transparent)]
pub struct Hcrhportstatus(pub u32);
Expand description

Controls and reports the port events on a per-port basis

Tuple Fields§

§0: u32

Implementations§

Source§

impl Hcrhportstatus

Source

pub const fn ccs(&self) -> bool

(read) CurrentConnectStatus This bit reflects the current state of the downstream port.

Source

pub const fn set_ccs(&mut self, val: bool)

(read) CurrentConnectStatus This bit reflects the current state of the downstream port.

Source

pub const fn pes(&self) -> bool

(read) PortEnableStatus This bit indicates whether the port is enabled or disabled.

Source

pub const fn set_pes(&mut self, val: bool)

(read) PortEnableStatus This bit indicates whether the port is enabled or disabled.

Source

pub const fn pss(&self) -> bool

(read) PortSuspendStatus This bit indicates the port is suspended or in the resume sequence.

Source

pub const fn set_pss(&mut self, val: bool)

(read) PortSuspendStatus This bit indicates the port is suspended or in the resume sequence.

Source

pub const fn poci(&self) -> bool

(read) PortOverCurrentIndicator This bit is only valid when the Root Hub is configured in such a way that overcurrent conditions are reported on a per-port basis.

Source

pub const fn set_poci(&mut self, val: bool)

(read) PortOverCurrentIndicator This bit is only valid when the Root Hub is configured in such a way that overcurrent conditions are reported on a per-port basis.

Source

pub const fn prs(&self) -> bool

(read) PortResetStatus When this bit is set by a write to SetPortReset, port reset signaling is asserted.

Source

pub const fn set_prs(&mut self, val: bool)

(read) PortResetStatus When this bit is set by a write to SetPortReset, port reset signaling is asserted.

Source

pub const fn pps(&self) -> bool

(read) PortPowerStatus This bit reflects the porta’s power status, regardless of the type of power switching implemented.

Source

pub const fn set_pps(&mut self, val: bool)

(read) PortPowerStatus This bit reflects the porta’s power status, regardless of the type of power switching implemented.

Source

pub const fn lsda(&self) -> bool

(read) LowSpeedDeviceAttached This bit indicates the speed of the device attached to this port.

Source

pub const fn set_lsda(&mut self, val: bool)

(read) LowSpeedDeviceAttached This bit indicates the speed of the device attached to this port.

Source

pub const fn csc(&self) -> bool

ConnectStatusChange This bit is set whenever a connect or disconnect event occurs.

Source

pub const fn set_csc(&mut self, val: bool)

ConnectStatusChange This bit is set whenever a connect or disconnect event occurs.

Source

pub const fn pesc(&self) -> bool

PortEnableStatusChange This bit is set when hardware events cause the PortEnableStatus bit to be cleared.

Source

pub const fn set_pesc(&mut self, val: bool)

PortEnableStatusChange This bit is set when hardware events cause the PortEnableStatus bit to be cleared.

Source

pub const fn pssc(&self) -> bool

PortSuspendStatusChange This bit is set when the full resume sequence is completed.

Source

pub const fn set_pssc(&mut self, val: bool)

PortSuspendStatusChange This bit is set when the full resume sequence is completed.

Source

pub const fn ocic(&self) -> bool

PortOverCurrentIndicatorChange This bit is valid only if overcurrent conditions are reported on a per-port basis.

Source

pub const fn set_ocic(&mut self, val: bool)

PortOverCurrentIndicatorChange This bit is valid only if overcurrent conditions are reported on a per-port basis.

Source

pub const fn prsc(&self) -> bool

PortResetStatusChange This bit is set at the end of the 10 ms port reset signal.

Source

pub const fn set_prsc(&mut self, val: bool)

PortResetStatusChange This bit is set at the end of the 10 ms port reset signal.

Trait Implementations§

Source§

impl Clone for Hcrhportstatus

Source§

fn clone(&self) -> Hcrhportstatus

Returns a duplicate 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 Hcrhportstatus

Source§

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

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

impl Default for Hcrhportstatus

Source§

fn default() -> Hcrhportstatus

Returns the “default value” for a type. Read more
Source§

impl PartialEq for Hcrhportstatus

Source§

fn eq(&self, other: &Hcrhportstatus) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for Hcrhportstatus

Source§

impl Eq for Hcrhportstatus

Source§

impl StructuralPartialEq for Hcrhportstatus

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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>,

Source§

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>,

Source§

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.