nxp-pac

Crates

git

Versions

mcxa577

Flavors

Portsc1

Struct Portsc1 

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

Port Status and Control

Tuple Fields§

§0: u32

Implementations§

Source§

impl Portsc1

Source

pub const fn ccs(&self) -> Ccs

Current Connect Status

Source

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

Current Connect Status

Source

pub const fn csc(&self) -> bool

Connect Status Change Flag

Source

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

Connect Status Change Flag

Source

pub const fn pe(&self) -> bool

Port Enable and Disable

Source

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

Port Enable and Disable

Source

pub const fn pec(&self) -> bool

Port Enable and Disable Change Flag

Source

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

Port Enable and Disable Change Flag

Source

pub const fn oca(&self) -> bool

Overcurrent Active

Source

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

Overcurrent Active

Source

pub const fn occ(&self) -> bool

Overcurrent Change Flag

Source

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

Overcurrent Change Flag

Source

pub const fn fpr(&self) -> bool

Force Port Resume

Source

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

Force Port Resume

Source

pub const fn susp(&self) -> bool

Suspend

Source

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

Suspend

Source

pub const fn pr(&self) -> bool

Port Reset

Source

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

Port Reset

Source

pub const fn hsp(&self) -> bool

High-Speed Port

Source

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

High-Speed Port

Source

pub const fn ls(&self) -> Ls

Line Status

Source

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

Line Status

Source

pub const fn pp(&self) -> bool

Port Power (PP)

Source

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

Port Power (PP)

Source

pub const fn po(&self) -> bool

Port Owner

Source

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

Port Owner

Source

pub const fn pic(&self) -> Pic

Port Indicator Control

Source

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

Port Indicator Control

Source

pub const fn ptc(&self) -> Ptc

Port Test Control

Source

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

Port Test Control

Source

pub const fn wkcn(&self) -> bool

Wake on Connect Enable (WKCNNT_E)

Source

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

Wake on Connect Enable (WKCNNT_E)

Source

pub const fn wkdc(&self) -> bool

Wake on Disconnect Enable (WKDSCNNT_E)

Source

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

Wake on Disconnect Enable (WKDSCNNT_E)

Source

pub const fn wkoc(&self) -> bool

Wake on Overcurrent Enable (WKOC)

Source

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

Wake on Overcurrent Enable (WKOC)

Source

pub const fn phcd(&self) -> Phcd

PHY Low-Power Suspend - Clock Disable (PLPSCD)

Source

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

PHY Low-Power Suspend - Clock Disable (PLPSCD)

Source

pub const fn pfsc(&self) -> Pfsc

Port Force Full Speed Connect

Source

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

Port Force Full Speed Connect

Source

pub const fn pts_2(&self) -> bool

Parallel Transceiver Select 2

Source

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

Parallel Transceiver Select 2

Source

pub const fn pspd(&self) -> Pspd

Port Speed

Source

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

Port Speed

Source

pub const fn ptw(&self) -> Ptw

Parallel Transceiver Width

Source

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

Parallel Transceiver Width

Source

pub const fn sts(&self) -> bool

Serial Transceiver Select

Source

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

Serial Transceiver Select

Source

pub const fn pts_1(&self) -> u8

Parallel Transceiver Select 1

Source

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

Parallel Transceiver Select 1

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.