#[repr(transparent)]pub struct UsbphyDirect(pub u32);
Expand description
This register allows for direct control of the USB phy. Use in conjunction with usbphy_direct_override register to enable each override bit.
Tuple Fields§
§0: u32
Implementations§
Source§impl UsbphyDirect
impl UsbphyDirect
Sourcepub const fn dp_pullup_hisel(&self) -> bool
pub const fn dp_pullup_hisel(&self) -> bool
Enable the second DP pull up resistor. 0 - Pull = Rpu2; 1 - Pull = Rpu1 + Rpu2
Sourcepub fn set_dp_pullup_hisel(&mut self, val: bool)
pub fn set_dp_pullup_hisel(&mut self, val: bool)
Enable the second DP pull up resistor. 0 - Pull = Rpu2; 1 - Pull = Rpu1 + Rpu2
Sourcepub const fn dp_pullup_en(&self) -> bool
pub const fn dp_pullup_en(&self) -> bool
DP pull up enable
Sourcepub fn set_dp_pullup_en(&mut self, val: bool)
pub fn set_dp_pullup_en(&mut self, val: bool)
DP pull up enable
Sourcepub const fn dp_pulldn_en(&self) -> bool
pub const fn dp_pulldn_en(&self) -> bool
DP pull down enable
Sourcepub fn set_dp_pulldn_en(&mut self, val: bool)
pub fn set_dp_pulldn_en(&mut self, val: bool)
DP pull down enable
Sourcepub const fn dm_pullup_hisel(&self) -> bool
pub const fn dm_pullup_hisel(&self) -> bool
Enable the second DM pull up resistor. 0 - Pull = Rpu2; 1 - Pull = Rpu1 + Rpu2
Sourcepub fn set_dm_pullup_hisel(&mut self, val: bool)
pub fn set_dm_pullup_hisel(&mut self, val: bool)
Enable the second DM pull up resistor. 0 - Pull = Rpu2; 1 - Pull = Rpu1 + Rpu2
Sourcepub const fn dm_pullup_en(&self) -> bool
pub const fn dm_pullup_en(&self) -> bool
DM pull up enable
Sourcepub fn set_dm_pullup_en(&mut self, val: bool)
pub fn set_dm_pullup_en(&mut self, val: bool)
DM pull up enable
Sourcepub const fn dm_pulldn_en(&self) -> bool
pub const fn dm_pulldn_en(&self) -> bool
DM pull down enable
Sourcepub fn set_dm_pulldn_en(&mut self, val: bool)
pub fn set_dm_pulldn_en(&mut self, val: bool)
DM pull down enable
Sourcepub const fn tx_dp_oe(&self) -> bool
pub const fn tx_dp_oe(&self) -> bool
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
Sourcepub fn set_tx_dp_oe(&mut self, val: bool)
pub fn set_tx_dp_oe(&mut self, val: bool)
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
Sourcepub const fn tx_dm_oe(&self) -> bool
pub const fn tx_dm_oe(&self) -> bool
Output enable. If TX_DIFFMODE=1, Ignored. If TX_DIFFMODE=0, OE for DPM only. 0 - DPM in Hi-Z state; 1 - DPM driving
Sourcepub fn set_tx_dm_oe(&mut self, val: bool)
pub fn set_tx_dm_oe(&mut self, val: bool)
Output enable. If TX_DIFFMODE=1, Ignored. If TX_DIFFMODE=0, OE for DPM only. 0 - DPM in Hi-Z state; 1 - DPM driving
Sourcepub const fn tx_dp(&self) -> bool
pub const fn tx_dp(&self) -> bool
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
Sourcepub fn set_tx_dp(&mut self, val: bool)
pub fn set_tx_dp(&mut self, val: bool)
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
Sourcepub const fn tx_dm(&self) -> bool
pub const fn tx_dm(&self) -> bool
Output data. TX_DIFFMODE=1, Ignored TX_DIFFMODE=0, Drives DPM only. TX_DM_OE=1 to enable drive. DPM=TX_DM
Sourcepub fn set_tx_dm(&mut self, val: bool)
pub fn set_tx_dm(&mut self, val: bool)
Output data. TX_DIFFMODE=1, Ignored TX_DIFFMODE=0, Drives DPM only. TX_DM_OE=1 to enable drive. DPM=TX_DM
Sourcepub const fn rx_pd(&self) -> bool
pub const fn rx_pd(&self) -> bool
RX power down override (if override enable is set). 1 = powered down.
Sourcepub fn set_rx_pd(&mut self, val: bool)
pub fn set_rx_pd(&mut self, val: bool)
RX power down override (if override enable is set). 1 = powered down.
Sourcepub const fn tx_pd(&self) -> bool
pub const fn tx_pd(&self) -> bool
TX power down override (if override enable is set). 1 = powered down.
Sourcepub fn set_tx_pd(&mut self, val: bool)
pub fn set_tx_pd(&mut self, val: bool)
TX power down override (if override enable is set). 1 = powered down.
Sourcepub const fn tx_fsslew(&self) -> bool
pub const fn tx_fsslew(&self) -> bool
TX_FSSLEW=0: Low speed slew rate TX_FSSLEW=1: Full speed slew rate
Sourcepub fn set_tx_fsslew(&mut self, val: bool)
pub fn set_tx_fsslew(&mut self, val: bool)
TX_FSSLEW=0: Low speed slew rate TX_FSSLEW=1: Full speed slew rate
Sourcepub const fn tx_diffmode(&self) -> bool
pub const fn tx_diffmode(&self) -> bool
TX_DIFFMODE=0: Single ended mode TX_DIFFMODE=1: Differential drive mode (TX_DM, TX_DM_OE ignored)
Sourcepub fn set_tx_diffmode(&mut self, val: bool)
pub fn set_tx_diffmode(&mut self, val: bool)
TX_DIFFMODE=0: Single ended mode TX_DIFFMODE=1: Differential drive mode (TX_DM, TX_DM_OE ignored)
Sourcepub fn set_dp_ovcn(&mut self, val: bool)
pub fn set_dp_ovcn(&mut self, val: bool)
DP overcurrent
Sourcepub fn set_dm_ovcn(&mut self, val: bool)
pub fn set_dm_ovcn(&mut self, val: bool)
DM overcurrent
Sourcepub fn set_dp_ovv(&mut self, val: bool)
pub fn set_dp_ovv(&mut self, val: bool)
DP over voltage
Sourcepub fn set_dm_ovv(&mut self, val: bool)
pub fn set_dm_ovv(&mut self, val: bool)
DM over voltage
Sourcepub const fn rx_dd_override(&self) -> bool
pub const fn rx_dd_override(&self) -> bool
Override rx_dd value into controller
Sourcepub fn set_rx_dd_override(&mut self, val: bool)
pub fn set_rx_dd_override(&mut self, val: bool)
Override rx_dd value into controller
Sourcepub const fn rx_dp_override(&self) -> bool
pub const fn rx_dp_override(&self) -> bool
Override rx_dp value into controller
Sourcepub fn set_rx_dp_override(&mut self, val: bool)
pub fn set_rx_dp_override(&mut self, val: bool)
Override rx_dp value into controller
Sourcepub const fn rx_dm_override(&self) -> bool
pub const fn rx_dm_override(&self) -> bool
Override rx_dm value into controller
Sourcepub fn set_rx_dm_override(&mut self, val: bool)
pub fn set_rx_dm_override(&mut self, val: bool)
Override rx_dm value into controller
Trait Implementations§
Source§impl Clone for UsbphyDirect
impl Clone for UsbphyDirect
Source§fn clone(&self) -> UsbphyDirect
fn clone(&self) -> UsbphyDirect
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more