nrf-pac

Crates

git

Versions

nrf54lm20a-flpr

Flavors

nrf_pac::usbhscore::regs

Struct Ghwcfg4

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

User Hardware Configuration 4 Register

Tuple Fields§

§0: u32

Implementations§

Source§

impl Ghwcfg4

Source

pub const fn numdevperioeps(&self) -> Numdevperioeps

Number of Device Mode Periodic IN Endpoints (NumDevPerioEps)

Source

pub const fn set_numdevperioeps(&mut self, val: Numdevperioeps)

Number of Device Mode Periodic IN Endpoints (NumDevPerioEps)

Source

pub const fn partialpwrdn(&self) -> bool

Enable Partial Power Down (PartialPwrDn)

Source

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

Enable Partial Power Down (PartialPwrDn)

Source

pub const fn ahbfreq(&self) -> bool

Minimum AHB Frequency Less Than 60 MHz (AhbFreq)

Source

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

Minimum AHB Frequency Less Than 60 MHz (AhbFreq)

Source

pub const fn hibernation(&self) -> bool

Enable Hibernation (Hibernation)

Source

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

Enable Hibernation (Hibernation)

Source

pub const fn extendedhibernation(&self) -> bool

Enable Hibernation

Source

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

Enable Hibernation

Source

pub const fn enhancedlpmsupt1(&self) -> bool

Enhanced LPM Support1 (EnhancedLPMSupt1)

Source

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

Enhanced LPM Support1 (EnhancedLPMSupt1)

Source

pub const fn servintflow(&self) -> bool

Service Interval Flow

Source

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

Service Interval Flow

Source

pub const fn ipgisocsupt(&self) -> bool

Interpacket Gap ISOC OUT Worst-case Support (ipgisocSupt)

Source

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

Interpacket Gap ISOC OUT Worst-case Support (ipgisocSupt)

Source

pub const fn acgsupt(&self) -> bool

Active Clock Gating Support

Source

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

Active Clock Gating Support

Source

pub const fn enhancedlpmsupt(&self) -> bool

Enhanced LPM Support (EnhancedLPMSupt)

Source

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

Enhanced LPM Support (EnhancedLPMSupt)

Source

pub const fn phydatawidth(&self) -> Phydatawidth

UTMI+ PHY/ULPI-to-Internal UTMI+ Wrapper Data Width

Source

pub const fn set_phydatawidth(&mut self, val: Phydatawidth)

UTMI+ PHY/ULPI-to-Internal UTMI+ Wrapper Data Width

Source

pub const fn numctleps(&self) -> Numctleps

Number of Device Mode Control Endpoints in Addition to

Source

pub const fn set_numctleps(&mut self, val: Numctleps)

Number of Device Mode Control Endpoints in Addition to

Source

pub const fn iddgfltr(&self) -> bool

IDDIG Filter Enable (IddgFltr)

Source

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

IDDIG Filter Enable (IddgFltr)

Source

pub const fn vbusvalidfltr(&self) -> bool

VBUS Valid Filter Enabled (VBusValidFltr)

Source

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

VBUS Valid Filter Enabled (VBusValidFltr)

Source

pub const fn avalidfltr(&self) -> bool

a_valid Filter Enabled (AValidFltr)

Source

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

a_valid Filter Enabled (AValidFltr)

Source

pub const fn bvalidfltr(&self) -> bool

b_valid Filter Enabled (BValidFltr)

Source

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

b_valid Filter Enabled (BValidFltr)

Source

pub const fn sessendfltr(&self) -> bool

session_end Filter Enabled (SessEndFltr)

Source

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

session_end Filter Enabled (SessEndFltr)

Source

pub const fn dedfifomode(&self) -> bool

Enable Dedicated Transmit FIFO for device IN Endpoints

Source

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

Enable Dedicated Transmit FIFO for device IN Endpoints

Source

pub const fn ineps(&self) -> Ineps

Number of Device Mode IN Endpoints Including Control Endpoints (INEps)

Source

pub const fn set_ineps(&mut self, val: Ineps)

Number of Device Mode IN Endpoints Including Control Endpoints (INEps)

Source

pub const fn descdmaenabled(&self) -> bool

Scatter/Gather DMA configuration

Source

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

Scatter/Gather DMA configuration

Source

pub const fn descdma(&self) -> Descdma

Scatter/Gather DMA configuration

Source

pub const fn set_descdma(&mut self, val: Descdma)

Scatter/Gather DMA configuration

Trait Implementations§

Source§

impl Clone for Ghwcfg4

Source§

fn clone(&self) -> Ghwcfg4

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 Ghwcfg4

Source§

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

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

impl Default for Ghwcfg4

Source§

fn default() -> Ghwcfg4

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

impl PartialEq for Ghwcfg4

Source§

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

Source§

impl Eq for Ghwcfg4

Source§

impl StructuralPartialEq for Ghwcfg4

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.