Struct rp2040_pac2::usb::regs::UsbphyDirect [−][src]
This register allows for direct control of the USB phy. Use in conjunction with usbphy_direct_override register to enable each override bit.
Implementations
impl UsbphyDirect
[src][−]
pub const fn dm_ovv(&self) -> bool
[src][−]
DM over voltage
pub fn set_dm_ovv(&mut self, val: bool)
[src][−]
DM over voltage
pub const fn dp_ovv(&self) -> bool
[src][−]
DP over voltage
pub fn set_dp_ovv(&mut self, val: bool)
[src][−]
DP over voltage
pub const fn dm_ovcn(&self) -> bool
[src][−]
DM overcurrent
pub fn set_dm_ovcn(&mut self, val: bool)
[src][−]
DM overcurrent
pub const fn dp_ovcn(&self) -> bool
[src][−]
DP overcurrent
pub fn set_dp_ovcn(&mut self, val: bool)
[src][−]
DP overcurrent
pub const fn rx_dm(&self) -> bool
[src][−]
DPM pin state
pub fn set_rx_dm(&mut self, val: bool)
[src][−]
DPM pin state
pub const fn rx_dp(&self) -> bool
[src][−]
DPP pin state
pub fn set_rx_dp(&mut self, val: bool)
[src][−]
DPP pin state
pub const fn rx_dd(&self) -> bool
[src][−]
Differential RX
pub fn set_rx_dd(&mut self, val: bool)
[src][−]
Differential RX
pub const fn tx_diffmode(&self) -> bool
[src][−]
TX_DIFFMODE=0: Single ended mode TX_DIFFMODE=1: Differential drive mode (TX_DM, TX_DM_OE ignored)
pub fn set_tx_diffmode(&mut self, val: bool)
[src][−]
TX_DIFFMODE=0: Single ended mode TX_DIFFMODE=1: Differential drive mode (TX_DM, TX_DM_OE ignored)
pub const fn tx_fsslew(&self) -> bool
[src][−]
TX_FSSLEW=0: Low speed slew rate TX_FSSLEW=1: Full speed slew rate
pub fn set_tx_fsslew(&mut self, val: bool)
[src][−]
TX_FSSLEW=0: Low speed slew rate TX_FSSLEW=1: Full speed slew rate
pub const fn tx_pd(&self) -> bool
[src][−]
TX power down override (if override enable is set). 1 = powered down.
pub fn set_tx_pd(&mut self, val: bool)
[src][−]
TX power down override (if override enable is set). 1 = powered down.
pub const fn rx_pd(&self) -> bool
[src][−]
RX power down override (if override enable is set). 1 = powered down.
pub fn set_rx_pd(&mut self, val: bool)
[src][−]
RX power down override (if override enable is set). 1 = powered down.
pub const fn tx_dm(&self) -> bool
[src][−]
Output data. TX_DIFFMODE=1, Ignored TX_DIFFMODE=0, Drives DPM only. TX_DM_OE=1 to enable drive. DPM=TX_DM
pub fn set_tx_dm(&mut self, val: bool)
[src][−]
Output data. TX_DIFFMODE=1, Ignored TX_DIFFMODE=0, Drives DPM only. TX_DM_OE=1 to enable drive. DPM=TX_DM
pub const fn tx_dp(&self) -> bool
[src][−]
Output data. If TX_DIFFMODE=1, Drives DPP/DPM diff pair. TX_DP_OE=1 to enable drive. DPP=TX_DP, DPM=~TX_DP If TX_DIFFMODE=0, Drives DPP only. TX_DP_OE=1 to enable drive. DPP=TX_DP
pub fn set_tx_dp(&mut self, val: bool)
[src][−]
Output data. If TX_DIFFMODE=1, Drives DPP/DPM diff pair. TX_DP_OE=1 to enable drive. DPP=TX_DP, DPM=~TX_DP If TX_DIFFMODE=0, Drives DPP only. TX_DP_OE=1 to enable drive. DPP=TX_DP
pub const fn tx_dm_oe(&self) -> bool
[src][−]
Output enable. If TX_DIFFMODE=1, Ignored. If TX_DIFFMODE=0, OE for DPM only. 0 - DPM in Hi-Z state; 1 - DPM driving
pub fn set_tx_dm_oe(&mut self, val: bool)
[src][−]
Output enable. If TX_DIFFMODE=1, Ignored. If TX_DIFFMODE=0, OE for DPM only. 0 - DPM in Hi-Z state; 1 - DPM driving
pub const fn tx_dp_oe(&self) -> bool
[src][−]
Output enable. If TX_DIFFMODE=1, OE for DPP/DPM diff pair. 0 - DPP/DPM in Hi-Z state; 1 - DPP/DPM driving If TX_DIFFMODE=0, OE for DPP only. 0 - DPP in Hi-Z state; 1 - DPP driving
pub fn set_tx_dp_oe(&mut self, val: bool)
[src][−]
Output enable. If TX_DIFFMODE=1, OE for DPP/DPM diff pair. 0 - DPP/DPM in Hi-Z state; 1 - DPP/DPM driving If TX_DIFFMODE=0, OE for DPP only. 0 - DPP in Hi-Z state; 1 - DPP driving
pub const fn dm_pulldn_en(&self) -> bool
[src][−]
DM pull down enable
pub fn set_dm_pulldn_en(&mut self, val: bool)
[src][−]
DM pull down enable
pub const fn dm_pullup_en(&self) -> bool
[src][−]
DM pull up enable
pub fn set_dm_pullup_en(&mut self, val: bool)
[src][−]
DM pull up enable
pub const fn dm_pullup_hisel(&self) -> bool
[src][−]
Enable the second DM pull up resistor. 0 - Pull = Rpu2; 1 - Pull = Rpu1 + Rpu2
pub fn set_dm_pullup_hisel(&mut self, val: bool)
[src][−]
Enable the second DM pull up resistor. 0 - Pull = Rpu2; 1 - Pull = Rpu1 + Rpu2
pub const fn dp_pulldn_en(&self) -> bool
[src][−]
DP pull down enable
pub fn set_dp_pulldn_en(&mut self, val: bool)
[src][−]
DP pull down enable
pub const fn dp_pullup_en(&self) -> bool
[src][−]
DP pull up enable
pub fn set_dp_pullup_en(&mut self, val: bool)
[src][−]
DP pull up enable
pub const fn dp_pullup_hisel(&self) -> bool
[src][−]
Enable the second DP pull up resistor. 0 - Pull = Rpu2; 1 - Pull = Rpu1 + Rpu2
pub fn set_dp_pullup_hisel(&mut self, val: bool)
[src][−]
Enable the second DP pull up resistor. 0 - Pull = Rpu2; 1 - Pull = Rpu1 + Rpu2
Trait Implementations
impl Clone for UsbphyDirect
[src][+]
impl Copy for UsbphyDirect
[src]
impl Default for UsbphyDirect
[src][+]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,