#[repr(transparent)]pub struct Ghwcfg2(pub u32);Expand description
User HW config2 register
Tuple Fields§
§0: u32Implementations§
Source§impl Ghwcfg2
impl Ghwcfg2
Sourcepub const fn hs_phy_type(&self) -> u8
pub const fn hs_phy_type(&self) -> u8
High-speed PHY type (0=not supported, 1=UTMI+, 2=ULPI, 3=UTMI+ and ULPI)
Sourcepub const fn fs_phy_type(&self) -> u8
pub const fn fs_phy_type(&self) -> u8
Full-speed PHY type (0=not supported, 1=dedicated, 2=shared UTMI+, 3=shared ULPI)
Sourcepub const fn num_host_chan(&self) -> u8
pub const fn num_host_chan(&self) -> u8
Number of host channels minus 1
Sourcepub const fn num_dev_ep(&self) -> u8
pub const fn num_dev_ep(&self) -> u8
Number of device endpoints minus 1
Trait Implementations§
impl Copy for Ghwcfg2
impl Eq for Ghwcfg2
impl StructuralPartialEq for Ghwcfg2
Auto Trait Implementations§
impl Freeze for Ghwcfg2
impl RefUnwindSafe for Ghwcfg2
impl Send for Ghwcfg2
impl Sync for Ghwcfg2
impl Unpin for Ghwcfg2
impl UnwindSafe for Ghwcfg2
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more