nxp-pac

Crates

git

Versions

mcxa577

Flavors

Otgsc

Struct Otgsc 

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

On-The-Go Status and Control. F70RM 44.6.1.33 (text line 115583). Mixed controls/read-only inputs and W1C interrupt status bits 22:16. Known reset mask 0xffdfc1ff, known value 0x20; bits 21 and 13:9 are unknown. Generated reset_value is a construction default only. HADP is a write command; do not replay commands or W1C flags with an unmasked read-modify-write.

Tuple Fields§

§0: u32

Implementations§

Source§

impl Otgsc

Source

pub const fn vd(&self) -> bool

VBUS Discharge.

Source

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

VBUS Discharge.

Source

pub const fn vc(&self) -> bool

VBUS Charge.

Source

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

VBUS Charge.

Source

pub const fn haar(&self) -> bool

Hardware Assist Auto Reset. Raw encoding: 0b - Disables; 1b - Enables.

Source

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

Hardware Assist Auto Reset. Raw encoding: 0b - Disables; 1b - Enables.

Source

pub const fn ot(&self) -> bool

OTG Termination.

Source

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

OTG Termination.

Source

pub const fn dp(&self) -> bool

Data Pulsing.

Source

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

Data Pulsing.

Source

pub const fn idpu(&self) -> bool

ID Pullup.

Source

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

ID Pullup.

Source

pub const fn hadp(&self) -> bool

Hardware Assist Data Pulse. Write-only command. Raw encoding: 0b - Disables; 1b - Enables.

Source

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

Hardware Assist Data Pulse. Write-only command. Raw encoding: 0b - Disables; 1b - Enables.

Source

pub const fn haba(&self) -> bool

Hardware Assist B-Disconnect to A-connect. Raw encoding: 0b - Disables; 1b - Enables.

Source

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

Hardware Assist B-Disconnect to A-connect. Raw encoding: 0b - Disables; 1b - Enables.

Source

pub const fn id(&self) -> bool

USB ID. Read-only status/value; writes do not configure this field. Raw encoding: 0b - A device; 1b - B device.

Source

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

USB ID. Read-only status/value; writes do not configure this field. Raw encoding: 0b - A device; 1b - B device.

Source

pub const fn avv(&self) -> bool

A VBUS Valid. Read-only status/value; writes do not configure this field.

Source

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

A VBUS Valid. Read-only status/value; writes do not configure this field.

Source

pub const fn asv(&self) -> bool

A Session Valid. Read-only status/value; writes do not configure this field.

Source

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

A Session Valid. Read-only status/value; writes do not configure this field.

Source

pub const fn bsv(&self) -> bool

B Session Valid. Read-only status/value; writes do not configure this field.

Source

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

B Session Valid. Read-only status/value; writes do not configure this field.

Source

pub const fn bse(&self) -> bool

B Session End. Read-only status/value; writes do not configure this field.

Source

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

B Session End. Read-only status/value; writes do not configure this field.

Source

pub const fn tog_1ms(&self) -> bool

1 Millisecond Timer Toggle. Read-only status/value; writes do not configure this field.

Source

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

1 Millisecond Timer Toggle. Read-only status/value; writes do not configure this field.

Source

pub const fn dps(&self) -> bool

Data Bus Pulsing Status. Read-only status/value; writes do not configure this field.

Source

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

Data Bus Pulsing Status. Read-only status/value; writes do not configure this field.

Source

pub const fn idis(&self) -> bool

USB ID Interrupt Status.

Source

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

USB ID Interrupt Status.

Source

pub const fn avvis(&self) -> bool

A VBUS Valid Interrupt Status.

Source

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

A VBUS Valid Interrupt Status.

Source

pub const fn asvis(&self) -> bool

A Session Valid Interrupt Status.

Source

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

A Session Valid Interrupt Status.

Source

pub const fn bsvis(&self) -> bool

B Session Valid Interrupt Status.

Source

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

B Session Valid Interrupt Status.

Source

pub const fn bseis(&self) -> bool

B Session End Interrupt Status.

Source

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

B Session End Interrupt Status.

Source

pub const fn status_1ms(&self) -> bool

1 Millisecond Timer Interrupt Status.

Source

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

1 Millisecond Timer Interrupt Status.

Source

pub const fn dpis(&self) -> bool

Data Pulse Interrupt Status.

Source

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

Data Pulse Interrupt Status.

Source

pub const fn idie(&self) -> bool

USB ID Interrupt Enable.

Source

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

USB ID Interrupt Enable.

Source

pub const fn avvie(&self) -> bool

A VBUS Valid Interrupt Enable.

Source

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

A VBUS Valid Interrupt Enable.

Source

pub const fn asvie(&self) -> bool

A Session Valid Interrupt Enable.

Source

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

A Session Valid Interrupt Enable.

Source

pub const fn bsvie(&self) -> bool

B Session Valid Interrupt Enable.

Source

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

B Session Valid Interrupt Enable.

Source

pub const fn bseie(&self) -> bool

B Session End Interrupt Enable.

Source

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

B Session End Interrupt Enable.

Source

pub const fn en_1ms(&self) -> bool

1 Millisecond Timer Interrupt Enable.

Source

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

1 Millisecond Timer Interrupt Enable.

Source

pub const fn dpie(&self) -> bool

Data Pulse Interrupt Enable.

Source

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

Data Pulse Interrupt Enable.

Trait Implementations§

Source§

impl Clone for Otgsc

Source§

fn clone(&self) -> Otgsc

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 Otgsc

Source§

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

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

impl Default for Otgsc

Source§

fn default() -> Otgsc

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

impl PartialEq for Otgsc

Source§

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

Source§

impl Eq for Otgsc

Source§

impl StructuralPartialEq for Otgsc

Auto Trait Implementations§

§

impl Freeze for Otgsc

§

impl RefUnwindSafe for Otgsc

§

impl Send for Otgsc

§

impl Sync for Otgsc

§

impl Unpin for Otgsc

§

impl UnwindSafe for Otgsc

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.