nxp-pac

Crates

git

Versions

lpc55s69_cm33_core1

Flavors

Portsc1

Struct Portsc1 

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

Port Status and Control register

Tuple Fields§

§0: u32

Implementations§

Source§

impl Portsc1

Source

pub const fn ccs(&self) -> bool

Current Connect Status: Logic 1 indicates a device is present on the port.

Source

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

Current Connect Status: Logic 1 indicates a device is present on the port.

Source

pub const fn csc(&self) -> bool

Connect Status Change: Logic 1 means that the value of CCS has changed.

Source

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

Connect Status Change: Logic 1 means that the value of CCS has changed.

Source

pub const fn ped(&self) -> bool

Port Enabled/Disabled.

Source

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

Port Enabled/Disabled.

Source

pub const fn pedc(&self) -> bool

Port Enabled/Disabled Change: Logic 1 means that the value of PED has changed.

Source

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

Port Enabled/Disabled Change: Logic 1 means that the value of PED has changed.

Source

pub const fn oca(&self) -> bool

Over-current active: Logic 1 means that this port has an over-current condition.

Source

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

Over-current active: Logic 1 means that this port has an over-current condition.

Source

pub const fn occ(&self) -> bool

Over-current change: Logic 1 means that the value of OCA has changed.

Source

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

Over-current change: Logic 1 means that the value of OCA has changed.

Source

pub const fn fpr(&self) -> bool

Force Port Resume: Logic 1 means resume (K-state) detected or driven on the port.

Source

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

Force Port Resume: Logic 1 means resume (K-state) detected or driven on the port.

Source

pub const fn susp(&self) -> bool

Suspend: Logic 1 means port is in the suspend state.

Source

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

Suspend: Logic 1 means port is in the suspend state.

Source

pub const fn pr(&self) -> bool

Port Reset: Logic 1 means the port is in the reset state.

Source

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

Port Reset: Logic 1 means the port is in the reset state.

Source

pub const fn ls(&self) -> u8

Line Status: This field reflects the current logical levels of the DP (bit 11) and DM (bit 10) signal lines.

Source

pub const fn set_ls(&mut self, val: u8)

Line Status: This field reflects the current logical levels of the DP (bit 11) and DM (bit 10) signal lines.

Source

pub const fn pp(&self) -> bool

Port Power: The function of this bit depends on the value of the Port Power Control (PPC) bit in the HCSPARAMS register.

Source

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

Port Power: The function of this bit depends on the value of the Port Power Control (PPC) bit in the HCSPARAMS register.

Source

pub const fn pic(&self) -> u8

Port Indicator Control : Writing to this field has no effect if the P_INDICATOR bit in the HCSPARAMS register is logic 0.

Source

pub const fn set_pic(&mut self, val: u8)

Port Indicator Control : Writing to this field has no effect if the P_INDICATOR bit in the HCSPARAMS register is logic 0.

Source

pub const fn ptc(&self) -> u8

Port Test Control: A non-zero value indicates that the port is operating in the test mode as indicated by the value.

Source

pub const fn set_ptc(&mut self, val: u8)

Port Test Control: A non-zero value indicates that the port is operating in the test mode as indicated by the value.

Source

pub const fn pspd(&self) -> u8

Port Speed: 00b: Low-speed 01b: Full-speed 10b: High-speed 11b: Reserved.

Source

pub const fn set_pspd(&mut self, val: u8)

Port Speed: 00b: Low-speed 01b: Full-speed 10b: High-speed 11b: Reserved.

Source

pub const fn woo(&self) -> bool

Wake on overcurrent enable: Writing this bit to a one enables the port to be sensitive to overcurrent conditions as wake-up events.

Source

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

Wake on overcurrent enable: Writing this bit to a one enables the port to be sensitive to overcurrent conditions as wake-up events.

Trait Implementations§

Source§

impl Clone for Portsc1

Source§

fn clone(&self) -> Portsc1

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 Portsc1

Source§

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

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

impl Default for Portsc1

Source§

fn default() -> Portsc1

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

impl PartialEq for Portsc1

Source§

fn eq(&self, other: &Portsc1) -> 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 Portsc1

Source§

impl Eq for Portsc1

Source§

impl StructuralPartialEq for Portsc1

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.