nxp-pac

Crates

git

Versions

mcxn236

Flavors

UsbhsAlphaFieldsetNovemberAlpha

Struct UsbhsAlphaFieldsetNovemberAlpha 

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

Port Status & Control.

Tuple Fields§

§0: u32

Implementations§

Source§

impl UsbhsAlphaFieldsetNovemberAlpha

Source

pub const fn ccs(&self) -> bool

Current Connect Status. Raw bit values: false (0) = Disable: In Host mode: No device is present. In Device mode: Not attached.; true (1) = Enable: In Host mode: Device is present on port. In Device mode: Attached.

Source

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

Current Connect Status. Raw bit values: false (0) = Disable: In Host mode: No device is present. In Device mode: Not attached.; true (1) = Enable: In Host mode: Device is present on port. In Device mode: Attached.

Source

pub const fn csc(&self) -> bool

Connect Status Change. Raw bit values: false (0) = Disable: No change.; true (1) = Enable: Change in current connect status.

Source

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

Connect Status Change. Raw bit values: false (0) = Disable: No change.; true (1) = Enable: Change in current connect status.

Source

pub const fn pe(&self) -> bool

Port Enabled/Disabled. Raw bit values: false (0) = Disable: Disable.; true (1) = Enable: Enable.

Source

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

Port Enabled/Disabled. Raw bit values: false (0) = Disable: Disable.; true (1) = Enable: Enable.

Source

pub const fn pec(&self) -> bool

Port Enable/Disable Change. Raw bit values: false (0) = Disable: No change.; true (1) = Enable: Port enabled/disabled status has changed.

Source

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

Port Enable/Disable Change. Raw bit values: false (0) = Disable: No change.; true (1) = Enable: Port enabled/disabled status has changed.

Source

pub const fn oca(&self) -> bool

Over-Current Active. Raw bit values: false (0) = NoOvercurrent: This port does not have an over-current condition.; true (1) = Overcurrent: This port currently has an over-current condition.

Source

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

Over-Current Active. Raw bit values: false (0) = NoOvercurrent: This port does not have an over-current condition.; true (1) = Overcurrent: This port currently has an over-current condition.

Source

pub const fn occ(&self) -> bool

Over-current Change.

Source

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

Over-current Change.

Source

pub const fn fpr(&self) -> bool

Force Port Resume. Raw bit values: false (0) = Disable: No resume (K-state) detected/driven on port.; true (1) = Enable: Resume detected/driven on port.

Source

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

Force Port Resume. Raw bit values: false (0) = Disable: No resume (K-state) detected/driven on port.; true (1) = Enable: Resume detected/driven on port.

Source

pub const fn susp(&self) -> bool

Suspend. Raw bit values: false (0) = Disable: Port not in suspend state.; true (1) = Enable: Port in suspend state.

Source

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

Suspend. Raw bit values: false (0) = Disable: Port not in suspend state.; true (1) = Enable: Port in suspend state.

Source

pub const fn pr(&self) -> bool

Port Reset. Raw bit values: false (0) = Disable: Port is not in reset.; true (1) = Enable: Port is in reset.

Source

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

Port Reset. Raw bit values: false (0) = Disable: Port is not in reset.; true (1) = Enable: Port is in 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) -> UsbhsAlphaEnumGolfDelta

Line Status.

Source

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

Line Status.

Source

pub const fn pp(&self) -> bool

Port Power.

Source

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

Port Power.

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) -> UsbhsAlphaEnumPapaDelta

Port Indicator Control.

Source

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

Port Indicator Control.

Source

pub const fn ptc(&self) -> UsbhsAlphaEnumTangoDelta

Port Test Control.

Source

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

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 Over-current Enable (WKOC_E).

Source

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

Wake on Over-current Enable (WKOC_E).

Source

pub const fn phcd(&self) -> bool

PHY Low Power Suspend - Clock Disable (PLPSCD). Raw bit values: false (0) = PhyClkEn: Enable PHY clock.; true (1) = PhyClkDis: Disable PHY clock.

Source

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

PHY Low Power Suspend - Clock Disable (PLPSCD). Raw bit values: false (0) = PhyClkEn: Enable PHY clock.; true (1) = PhyClkDis: Disable PHY clock.

Source

pub const fn pfsc(&self) -> bool

Port Force Full Speed Connect. Raw bit values: false (0) = Normal: Normal operation.; true (1) = FullSpeed: Forced to full speed.

Source

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

Port Force Full Speed Connect. Raw bit values: false (0) = Normal: Normal operation.; true (1) = FullSpeed: Forced to full speed.

Source

pub const fn pts_2(&self) -> bool

Parallel Transceiver Select.

Source

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

Parallel Transceiver Select.

Source

pub const fn pspd(&self) -> UsbhsAlphaEnumSierraDelta

Port Speed.

Source

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

Port Speed.

Source

pub const fn ptw(&self) -> bool

Parallel Transceiver Width - Read/Write. Raw bit values: false (0) = Utmi8: Select the 8-bit UTMI interface [60 MHz].; true (1) = Utmi16: Select the 16-bit UTMI interface [30 MHz].

Source

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

Parallel Transceiver Width - Read/Write. Raw bit values: false (0) = Utmi8: Select the 8-bit UTMI interface [60 MHz].; true (1) = Utmi16: Select the 16-bit UTMI interface [30 MHz].

Source

pub const fn sts(&self) -> bool

Serial Transceiver Select. Raw bit values: false (0) = Disable: Parallel Interface signals is selected.; true (1) = Enable: Serial Interface Engine is selected.

Source

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

Serial Transceiver Select. Raw bit values: false (0) = Disable: Parallel Interface signals is selected.; true (1) = Enable: Serial Interface Engine is selected.

Source

pub const fn pts_1(&self) -> u8

Parallel Transceiver Select.

Source

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

Parallel Transceiver Select.

Trait Implementations§

Source§

impl Clone for UsbhsAlphaFieldsetNovemberAlpha

Source§

fn clone(&self) -> UsbhsAlphaFieldsetNovemberAlpha

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 Default for UsbhsAlphaFieldsetNovemberAlpha

Source§

fn default() -> UsbhsAlphaFieldsetNovemberAlpha

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

impl PartialEq for UsbhsAlphaFieldsetNovemberAlpha

Source§

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

Source§

impl Eq for UsbhsAlphaFieldsetNovemberAlpha

Source§

impl StructuralPartialEq for UsbhsAlphaFieldsetNovemberAlpha

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.