nrf-pac

Crates

git

Versions

nrf54lm20a-flpr

Flavors

nrf_pac::usbhscore::regs

Struct Gusbcfg

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

USB Configuration Register

Tuple Fields§

§0: u32

Implementations§

Source§

impl Gusbcfg

Source

pub const fn toutcal(&self) -> Toutcal

Mode: Host and Device. HS/FS Timeout Calibration (TOutCal)

Source

pub const fn set_toutcal(&mut self, val: Toutcal)

Mode: Host and Device. HS/FS Timeout Calibration (TOutCal)

Source

pub const fn phyif(&self) -> Phyif

Mode: Host and Device. PHY Interface (PHYIf)

Source

pub const fn set_phyif(&mut self, val: Phyif)

Mode: Host and Device. PHY Interface (PHYIf)

Source

pub const fn ulpiutmisel(&self) -> Ulpiutmisel

Mode: Host and Device. ULPI or UTMI+ Select (ULPI_UTMI_Sel)

Source

pub const fn set_ulpiutmisel(&mut self, val: Ulpiutmisel)

Mode: Host and Device. ULPI or UTMI+ Select (ULPI_UTMI_Sel)

Source

pub const fn fsintf(&self) -> Fsintf

Mode: Host and Device. Full-Speed Serial Interface Select (FSIntf)

Source

pub const fn set_fsintf(&mut self, val: Fsintf)

Mode: Host and Device. Full-Speed Serial Interface Select (FSIntf)

Source

pub const fn physel(&self) -> Physel

PHYSel

Source

pub const fn set_physel(&mut self, val: Physel)

PHYSel

Source

pub const fn usbtrdtim(&self) -> Usbtrdtim

Mode: Device only. USB Turnaround Time (USBTrdTim)

Source

pub const fn set_usbtrdtim(&mut self, val: Usbtrdtim)

Mode: Device only. USB Turnaround Time (USBTrdTim)

Source

pub const fn phylpwrclksel(&self) -> Phylpwrclksel

PHY Low-Power Clock Select (PhyLPwrClkSel)

Source

pub const fn set_phylpwrclksel(&mut self, val: Phylpwrclksel)

PHY Low-Power Clock Select (PhyLPwrClkSel)

Source

pub const fn termseldlpulse(&self) -> Termseldlpulse

Mode: Device only. TermSel DLine Pulsing Selection (TermSelDLPulse)

Source

pub const fn set_termseldlpulse(&mut self, val: Termseldlpulse)

Mode: Device only. TermSel DLine Pulsing Selection (TermSelDLPulse)

Source

pub const fn icusbcap(&self) -> bool

Mode: Host and Device. IC_USB-Capable (IC_USBCap)

Source

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

Mode: Host and Device. IC_USB-Capable (IC_USBCap)

Source

pub const fn txenddelay(&self) -> bool

Mode: Device only. Tx End Delay (TxEndDelay)

Source

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

Mode: Device only. Tx End Delay (TxEndDelay)

Source

pub const fn forcehstmode(&self) -> bool

Mode: Host and device. Force Host Mode (ForceHstMode)

Source

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

Mode: Host and device. Force Host Mode (ForceHstMode)

Source

pub const fn forcedevmode(&self) -> bool

Mode:Host and device. Force Device Mode (ForceDevMode)

Source

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

Mode:Host and device. Force Device Mode (ForceDevMode)

Source

pub const fn corrupttxpkt(&self) -> bool

Mode: Host and device. Corrupt Tx packet (CorruptTxPkt)

Source

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

Mode: Host and device. Corrupt Tx packet (CorruptTxPkt)

Trait Implementations§

Source§

impl Clone for Gusbcfg

Source§

fn clone(&self) -> Gusbcfg

Returns a copy 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 Gusbcfg

Source§

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

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

impl Default for Gusbcfg

Source§

fn default() -> Gusbcfg

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

impl PartialEq for Gusbcfg

Source§

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

Source§

impl Eq for Gusbcfg

Source§

impl StructuralPartialEq for Gusbcfg

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, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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.