nxp-pac

Crates

git

Versions

mimxrt1064

Flavors

Portsc1

Struct Portsc1 

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

Port Status & Control

Tuple Fields§

§0: u32

Implementations§

Source§

impl Portsc1

Source

pub const fn ccs(&self) -> bool

Current Connect Status-Read Only

Source

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

Current Connect Status-Read Only

Source

pub const fn csc(&self) -> bool

Connect Status Change-R/WC

Source

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

Connect Status Change-R/WC

Source

pub const fn pe(&self) -> bool

Port Enabled/Disabled-Read/Write

Source

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

Port Enabled/Disabled-Read/Write

Source

pub const fn pec(&self) -> bool

Port Enable/Disable Change-R/WC

Source

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

Port Enable/Disable Change-R/WC

Source

pub const fn oca(&self) -> Oca

Over-current Active-Read Only

Source

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

Over-current Active-Read Only

Source

pub const fn occ(&self) -> bool

Over-current Change-R/WC

Source

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

Over-current Change-R/WC

Source

pub const fn fpr(&self) -> bool

Force Port Resume -Read/Write

Source

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

Force Port Resume -Read/Write

Source

pub const fn susp(&self) -> bool

Suspend - Read/Write or Read Only

Source

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

Suspend - Read/Write or Read Only

Source

pub const fn pr(&self) -> bool

Port Reset - Read/Write or Read Only

Source

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

Port Reset - Read/Write or Read Only

Source

pub const fn hsp(&self) -> bool

High-Speed Port - Read Only

Source

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

High-Speed Port - Read Only

Source

pub const fn ls(&self) -> Ls

Line Status-Read Only

Source

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

Line Status-Read Only

Source

pub const fn pp(&self) -> bool

Port Power (PP)-Read/Write or Read Only

Source

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

Port Power (PP)-Read/Write or Read Only

Source

pub const fn po(&self) -> bool

Port Owner-Read/Write

Source

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

Port Owner-Read/Write

Source

pub const fn pic(&self) -> Pic

Port Indicator Control - Read/Write

Source

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

Port Indicator Control - Read/Write

Source

pub const fn ptc(&self) -> Ptc

Port Test Control - Read/Write

Source

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

Port Test Control - Read/Write

Source

pub const fn wkcn(&self) -> bool

Wake on Connect Enable (WKCNNT_E) - Read/Write

Source

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

Wake on Connect Enable (WKCNNT_E) - Read/Write

Source

pub const fn wkdc(&self) -> bool

Wake on Disconnect Enable (WKDSCNNT_E) - Read/Write

Source

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

Wake on Disconnect Enable (WKDSCNNT_E) - Read/Write

Source

pub const fn wkoc(&self) -> bool

Wake on Over-current Enable (WKOC_E) - Read/Write

Source

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

Wake on Over-current Enable (WKOC_E) - Read/Write

Source

pub const fn phcd(&self) -> Phcd

PHY Low Power Suspend - Clock Disable (PLPSCD) - Read/Write

Source

pub const fn set_phcd(&mut self, val: Phcd)

PHY Low Power Suspend - Clock Disable (PLPSCD) - Read/Write

Source

pub const fn pfsc(&self) -> Pfsc

Port Force Full Speed Connect - Read/Write

Source

pub const fn set_pfsc(&mut self, val: Pfsc)

Port Force Full Speed Connect - Read/Write

Source

pub const fn pts_2(&self) -> bool

See description at bits 31-30

Source

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

See description at bits 31-30

Source

pub const fn pspd(&self) -> Pspd

Port Speed - Read Only. This register field indicates the speed at which the port is operating.

Source

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

Port Speed - Read Only. This register field indicates the speed at which the port is operating.

Source

pub const fn ptw(&self) -> Ptw

Parallel Transceiver Width This bit has no effect if serial interface engine is used

Source

pub const fn set_ptw(&mut self, val: Ptw)

Parallel Transceiver Width This bit has no effect if serial interface engine is used

Source

pub const fn sts(&self) -> bool

Serial Transceiver Select 1 Serial Interface Engine is selected 0 Parallel Interface signals is selected Serial Interface Engine can be used in combination with UTMI+/ULPI physical interface to provide FS/LS signaling instead of the parallel interface signals

Source

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

Serial Transceiver Select 1 Serial Interface Engine is selected 0 Parallel Interface signals is selected Serial Interface Engine can be used in combination with UTMI+/ULPI physical interface to provide FS/LS signaling instead of the parallel interface signals

Source

pub const fn pts_1(&self) -> u8

All USB port interface modes are listed in this field description, but not all are supported

Source

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

All USB port interface modes are listed in this field description, but not all are supported

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.