nxp-pac

Crates

git

Versions

mcxn947_cm33_core1

Flavors

Otgsc

Struct Otgsc 

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

On-The-Go Status & Control

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 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 id(&self) -> bool

USB ID

Source

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

USB ID

Source

pub const fn avv(&self) -> bool

A VBus Valid

Source

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

A VBus Valid

Source

pub const fn asv(&self) -> bool

A Session Valid

Source

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

A Session Valid

Source

pub const fn bsv(&self) -> bool

B Session Valid

Source

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

B Session Valid

Source

pub const fn bse(&self) -> bool

B Session End

Source

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

B Session End

Source

pub const fn tog_1ms(&self) -> bool

1 Millisecond Timer Toggle

Source

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

1 Millisecond Timer Toggle

Source

pub const fn dps(&self) -> bool

Data Bus Pulsing Status

Source

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

Data Bus Pulsing Status

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.