pub type R = R<USBPHY_DIRECT_SPEC>;
Expand description

Register USBPHY_DIRECT reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

source§

impl R

source

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

source

pub fn dp_pullup_en(&self) -> DP_PULLUP_EN_R

Bit 1 - DP pull up enable

source

pub fn dp_pulldn_en(&self) -> DP_PULLDN_EN_R

Bit 2 - DP pull down enable

source

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

source

pub fn dm_pullup_en(&self) -> DM_PULLUP_EN_R

Bit 5 - DM pull up enable

source

pub fn dm_pulldn_en(&self) -> DM_PULLDN_EN_R

Bit 6 - DM pull down enable

source

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

source

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

source

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

source

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

source

pub fn rx_pd(&self) -> RX_PD_R

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

source

pub fn tx_pd(&self) -> TX_PD_R

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

source

pub fn tx_fsslew(&self) -> TX_FSSLEW_R

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

source

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)

source

pub fn rx_dd(&self) -> RX_DD_R

Bit 16 - Differential RX

source

pub fn rx_dp(&self) -> RX_DP_R

Bit 17 - DPP pin state

source

pub fn rx_dm(&self) -> RX_DM_R

Bit 18 - DPM pin state

source

pub fn dp_ovcn(&self) -> DP_OVCN_R

Bit 19 - DP overcurrent

source

pub fn dm_ovcn(&self) -> DM_OVCN_R

Bit 20 - DM overcurrent

source

pub fn dp_ovv(&self) -> DP_OVV_R

Bit 21 - DP over voltage

source

pub fn dm_ovv(&self) -> DM_OVV_R

Bit 22 - DM over voltage