Type Alias rp2040_pac::usbctrl_regs::usbphy_direct::W

source ·
pub type W = W<USBPHY_DIRECT_SPEC>;
Expand description

Register USBPHY_DIRECT writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn dp_pullup_hisel(&mut self) -> DP_PULLUP_HISEL_W<'_, USBPHY_DIRECT_SPEC>

Bit 0 - Enable the second DP pull up resistor. 0 - Pull = Rpu2; 1 - Pull = Rpu1 + Rpu2

source

pub fn dp_pullup_en(&mut self) -> DP_PULLUP_EN_W<'_, USBPHY_DIRECT_SPEC>

Bit 1 - DP pull up enable

source

pub fn dp_pulldn_en(&mut self) -> DP_PULLDN_EN_W<'_, USBPHY_DIRECT_SPEC>

Bit 2 - DP pull down enable

source

pub fn dm_pullup_hisel(&mut self) -> DM_PULLUP_HISEL_W<'_, USBPHY_DIRECT_SPEC>

Bit 4 - Enable the second DM pull up resistor. 0 - Pull = Rpu2; 1 - Pull = Rpu1 + Rpu2

source

pub fn dm_pullup_en(&mut self) -> DM_PULLUP_EN_W<'_, USBPHY_DIRECT_SPEC>

Bit 5 - DM pull up enable

source

pub fn dm_pulldn_en(&mut self) -> DM_PULLDN_EN_W<'_, USBPHY_DIRECT_SPEC>

Bit 6 - DM pull down enable

source

pub fn tx_dp_oe(&mut self) -> TX_DP_OE_W<'_, USBPHY_DIRECT_SPEC>

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

source

pub fn tx_dm_oe(&mut self) -> TX_DM_OE_W<'_, USBPHY_DIRECT_SPEC>

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

source

pub fn tx_dp(&mut self) -> TX_DP_W<'_, USBPHY_DIRECT_SPEC>

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

source

pub fn tx_dm(&mut self) -> TX_DM_W<'_, USBPHY_DIRECT_SPEC>

Bit 11 - Output data. TX_DIFFMODE=1, Ignored
TX_DIFFMODE=0, Drives DPM only. TX_DM_OE=1 to enable drive. DPM=TX_DM

source

pub fn rx_pd(&mut self) -> RX_PD_W<'_, USBPHY_DIRECT_SPEC>

Bit 12 - RX power down override (if override enable is set). 1 = powered down.

source

pub fn tx_pd(&mut self) -> TX_PD_W<'_, USBPHY_DIRECT_SPEC>

Bit 13 - TX power down override (if override enable is set). 1 = powered down.

source

pub fn tx_fsslew(&mut self) -> TX_FSSLEW_W<'_, USBPHY_DIRECT_SPEC>

Bit 14 - TX_FSSLEW=0: Low speed slew rate
TX_FSSLEW=1: Full speed slew rate

source

pub fn tx_diffmode(&mut self) -> TX_DIFFMODE_W<'_, USBPHY_DIRECT_SPEC>

Bit 15 - TX_DIFFMODE=0: Single ended mode
TX_DIFFMODE=1: Differential drive mode (TX_DM, TX_DM_OE ignored)

source

pub unsafe fn bits(&mut self, bits: u32) -> &mut Self

Writes raw bits to the register.

§Safety

Passing incorrect value can cause undefined behaviour. See reference manual