Type Alias rp2040_pac::usbctrl_regs::usbphy_direct::R
source · pub type R = R<USBPHY_DIRECT_SPEC>;
Expand description
Register USBPHY_DIRECT
reader
Aliased Type§
struct R { /* private fields */ }
Implementations§
source§impl R
impl R
sourcepub fn dp_pullup_hisel(&self) -> DP_PULLUP_HISEL_R
pub fn dp_pullup_hisel(&self) -> DP_PULLUP_HISEL_R
Bit 0 - Enable the second DP pull up resistor. 0 - Pull = Rpu2; 1 - Pull = Rpu1 + Rpu2
sourcepub fn dp_pullup_en(&self) -> DP_PULLUP_EN_R
pub fn dp_pullup_en(&self) -> DP_PULLUP_EN_R
Bit 1 - DP pull up enable
sourcepub fn dp_pulldn_en(&self) -> DP_PULLDN_EN_R
pub fn dp_pulldn_en(&self) -> DP_PULLDN_EN_R
Bit 2 - DP pull down enable
sourcepub fn dm_pullup_hisel(&self) -> DM_PULLUP_HISEL_R
pub fn dm_pullup_hisel(&self) -> DM_PULLUP_HISEL_R
Bit 4 - Enable the second DM pull up resistor. 0 - Pull = Rpu2; 1 - Pull = Rpu1 + Rpu2
sourcepub fn dm_pullup_en(&self) -> DM_PULLUP_EN_R
pub fn dm_pullup_en(&self) -> DM_PULLUP_EN_R
Bit 5 - DM pull up enable
sourcepub fn dm_pulldn_en(&self) -> DM_PULLDN_EN_R
pub fn dm_pulldn_en(&self) -> DM_PULLDN_EN_R
Bit 6 - DM pull down enable
sourcepub fn tx_dp_oe(&self) -> TX_DP_OE_R
pub fn tx_dp_oe(&self) -> TX_DP_OE_R
Bit 8 - 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 tx_dm_oe(&self) -> TX_DM_OE_R
pub fn tx_dm_oe(&self) -> TX_DM_OE_R
Bit 9 - 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 tx_dp(&self) -> TX_DP_R
pub fn tx_dp(&self) -> TX_DP_R
Bit 10 - 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 tx_dm(&self) -> TX_DM_R
pub fn tx_dm(&self) -> TX_DM_R
Bit 11 - Output data. TX_DIFFMODE=1, Ignored
TX_DIFFMODE=0, Drives DPM only. TX_DM_OE=1 to enable drive. DPM=TX_DM
sourcepub fn rx_pd(&self) -> RX_PD_R
pub fn rx_pd(&self) -> RX_PD_R
Bit 12 - RX power down override (if override enable is set). 1 = powered down.
sourcepub fn tx_pd(&self) -> TX_PD_R
pub fn tx_pd(&self) -> TX_PD_R
Bit 13 - TX power down override (if override enable is set). 1 = powered down.
sourcepub fn tx_fsslew(&self) -> TX_FSSLEW_R
pub fn tx_fsslew(&self) -> TX_FSSLEW_R
Bit 14 - TX_FSSLEW=0: Low speed slew rate
TX_FSSLEW=1: Full speed slew rate
sourcepub fn tx_diffmode(&self) -> TX_DIFFMODE_R
pub fn tx_diffmode(&self) -> TX_DIFFMODE_R
Bit 15 - TX_DIFFMODE=0: Single ended mode
TX_DIFFMODE=1: Differential drive mode (TX_DM, TX_DM_OE ignored)