#[repr(transparent)]pub struct UsbMuxing(pub u32);
Expand description
Where to connect the USB controller. Should be to_phy by default.
Tuple Fields§
§0: u32
Implementations§
Source§impl UsbMuxing
impl UsbMuxing
pub const fn to_phy(&self) -> bool
pub fn set_to_phy(&mut self, val: bool)
pub const fn to_extphy(&self) -> bool
pub fn set_to_extphy(&mut self, val: bool)
pub const fn to_digital_pad(&self) -> bool
pub fn set_to_digital_pad(&mut self, val: bool)
pub const fn softcon(&self) -> bool
pub fn set_softcon(&mut self, val: bool)
Sourcepub const fn usbphy_as_gpio(&self) -> bool
pub const fn usbphy_as_gpio(&self) -> bool
Use the usb DP and DM pins as GPIO pins instead of connecting them to the USB controller.
Sourcepub fn set_usbphy_as_gpio(&mut self, val: bool)
pub fn set_usbphy_as_gpio(&mut self, val: bool)
Use the usb DP and DM pins as GPIO pins instead of connecting them to the USB controller.
Sourcepub const fn swap_dpdm(&self) -> bool
pub const fn swap_dpdm(&self) -> bool
Swap the USB PHY DP and DM pins and all related controls and flip receive differential data. Can be used to switch USB DP/DP on the PCB. This is done at a low level so overrides all other controls.
Sourcepub fn set_swap_dpdm(&mut self, val: bool)
pub fn set_swap_dpdm(&mut self, val: bool)
Swap the USB PHY DP and DM pins and all related controls and flip receive differential data. Can be used to switch USB DP/DP on the PCB. This is done at a low level so overrides all other controls.
Trait Implementations§
impl Copy for UsbMuxing
impl Eq for UsbMuxing
impl StructuralPartialEq for UsbMuxing
Auto Trait Implementations§
impl Freeze for UsbMuxing
impl RefUnwindSafe for UsbMuxing
impl Send for UsbMuxing
impl Sync for UsbMuxing
impl Unpin for UsbMuxing
impl UnwindSafe for UsbMuxing
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