Embassy
embassy-usb-synopsys-otg

Crates

git

Versions

default

Flavors

Struct embassy_usb_synopsys_otg::otg_v1::regs::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 tocal(&self) -> u8

FS timeout calibration

source

pub fn set_tocal(&mut self, val: u8)

FS timeout calibration

source

pub const fn physel(&self) -> bool

Full-speed internal serial transceiver enable

source

pub fn set_physel(&mut self, val: bool)

Full-speed internal serial transceiver enable

source

pub const fn srpcap(&self) -> bool

SRP-capable

source

pub fn set_srpcap(&mut self, val: bool)

SRP-capable

source

pub const fn hnpcap(&self) -> bool

HNP-capable

source

pub fn set_hnpcap(&mut self, val: bool)

HNP-capable

source

pub const fn trdt(&self) -> u8

USB turnaround time

source

pub fn set_trdt(&mut self, val: u8)

USB turnaround time

source

pub const fn phylpcs(&self) -> bool

PHY Low-power clock select

source

pub fn set_phylpcs(&mut self, val: bool)

PHY Low-power clock select

source

pub const fn ulpifsls(&self) -> bool

ULPI FS/LS select

source

pub fn set_ulpifsls(&mut self, val: bool)

ULPI FS/LS select

source

pub const fn ulpiar(&self) -> bool

ULPI Auto-resume

source

pub fn set_ulpiar(&mut self, val: bool)

ULPI Auto-resume

source

pub const fn ulpicsm(&self) -> bool

ULPI Clock SuspendM

source

pub fn set_ulpicsm(&mut self, val: bool)

ULPI Clock SuspendM

source

pub const fn ulpievbusd(&self) -> bool

ULPI External VBUS Drive

source

pub fn set_ulpievbusd(&mut self, val: bool)

ULPI External VBUS Drive

source

pub const fn ulpievbusi(&self) -> bool

ULPI external VBUS indicator

source

pub fn set_ulpievbusi(&mut self, val: bool)

ULPI external VBUS indicator

source

pub const fn tsdps(&self) -> bool

TermSel DLine pulsing selection

source

pub fn set_tsdps(&mut self, val: bool)

TermSel DLine pulsing selection

source

pub const fn pcci(&self) -> bool

Indicator complement

source

pub fn set_pcci(&mut self, val: bool)

Indicator complement

source

pub const fn ptci(&self) -> bool

Indicator pass through

source

pub fn set_ptci(&mut self, val: bool)

Indicator pass through

source

pub const fn ulpiipd(&self) -> bool

ULPI interface protect disable

source

pub fn set_ulpiipd(&mut self, val: bool)

ULPI interface protect disable

source

pub const fn fhmod(&self) -> bool

Force host mode

source

pub fn set_fhmod(&mut self, val: bool)

Force host mode

source

pub const fn fdmod(&self) -> bool

Force device mode

source

pub fn set_fdmod(&mut self, val: bool)

Force device mode

source

pub const fn ctxpkt(&self) -> bool

Corrupt Tx packet

source

pub fn set_ctxpkt(&mut self, val: bool)

Corrupt Tx packet

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method 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> 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>,

§

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>,

§

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.