#[repr(transparent)]pub struct UsbphyDirect(pub u32);
Expand description
Note that most functions are driven directly from usb_fsls controller. This register allows more detailed control/status from the USB PHY. Useful for debug but not expected to be used in normal operation Use in conjunction with usbphy_direct_override register
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
when dp_pullup_en is set high, this enables second 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)
when dp_pullup_en is set high, this enables second resistor. 0 - Pull = Rpu2; 1 - Pull = Rpu1 + Rpu2
Sourcepub const fn dp_pullup_en(&self) -> bool
pub const fn dp_pullup_en(&self) -> bool
Value to drive to USB PHY when override enable is set (which will override the default value or value driven from USB controller
Sourcepub fn set_dp_pullup_en(&mut self, val: bool)
pub fn set_dp_pullup_en(&mut self, val: bool)
Value to drive to USB PHY when override enable is set (which will override the default value or value driven from USB controller
Sourcepub const fn dp_pulldn_en(&self) -> bool
pub const fn dp_pulldn_en(&self) -> bool
Value to drive to USB PHY when override enable is set (which will override the default value or value driven from USB controller 1 - Enable Rpd on DPP
Sourcepub fn set_dp_pulldn_en(&mut self, val: bool)
pub fn set_dp_pulldn_en(&mut self, val: bool)
Value to drive to USB PHY when override enable is set (which will override the default value or value driven from USB controller 1 - Enable Rpd on DPP
Sourcepub const fn dm_pullup_hisel(&self) -> bool
pub const fn dm_pullup_hisel(&self) -> bool
when dm_pullup_en is set high, this enables second 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)
when dm_pullup_en is set high, this enables second resistor. 0 - Pull = Rpu2; 1 - Pull = Rpu1 + Rpu2
Sourcepub const fn dm_pullup_en(&self) -> bool
pub const fn dm_pullup_en(&self) -> bool
Value to drive to USB PHY when override enable is set (which will override the default value or value driven from USB controller 1 - Enable Rpu on DPM
Sourcepub fn set_dm_pullup_en(&mut self, val: bool)
pub fn set_dm_pullup_en(&mut self, val: bool)
Value to drive to USB PHY when override enable is set (which will override the default value or value driven from USB controller 1 - Enable Rpu on DPM
Sourcepub const fn dm_pulldn_en(&self) -> bool
pub const fn dm_pulldn_en(&self) -> bool
Value to drive to USB PHY when override enable is set (which will override the default value or value driven from USB controller 1 - Enable Rpd on DPM
Sourcepub fn set_dm_pulldn_en(&mut self, val: bool)
pub fn set_dm_pulldn_en(&mut self, val: bool)
Value to drive to USB PHY when override enable is set (which will override the default value or value driven from USB controller 1 - Enable Rpd on DPM
Sourcepub const fn tx_dp_oe(&self) -> bool
pub const fn tx_dp_oe(&self) -> bool
Value to drive to USB PHY when override enable is set (which will override the default value or value driven from USB controller TX_SEMODE=0, OE for DPP/DPM diff pair. 0 - DPP/DPM in Hi-Z state; 1 - DPP/DPM driving TX_SEMODE=1, 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)
Value to drive to USB PHY when override enable is set (which will override the default value or value driven from USB controller TX_SEMODE=0, OE for DPP/DPM diff pair. 0 - DPP/DPM in Hi-Z state; 1 - DPP/DPM driving TX_SEMODE=1, 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
Value to drive to USB PHY when override enable is set (which will override the default value or value driven from USB controller TX_SEMODE=0, Ignored. TX_SEMODE=1, 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)
Value to drive to USB PHY when override enable is set (which will override the default value or value driven from USB controller TX_SEMODE=0, Ignored. TX_SEMODE=1, 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
Value to drive to USB PHY when override enable is set (which will override the default value or value driven from USB controller TX_SEMODE=0, Drives DPP/DPM diff pair. TX_DP_OE=1 to enable drive. DPP=TX_DP, DPM=~TX_DP TX_SEMODE=1, 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)
Value to drive to USB PHY when override enable is set (which will override the default value or value driven from USB controller TX_SEMODE=0, Drives DPP/DPM diff pair. TX_DP_OE=1 to enable drive. DPP=TX_DP, DPM=~TX_DP TX_SEMODE=1, 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
Value to drive to USB PHY when override enable is set (which will override the default value or value driven from USB controller TX_SEMODE=0, Ignored TX_SEMODE=1, 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)
Value to drive to USB PHY when override enable is set (which will override the default value or value driven from USB controller TX_SEMODE=0, Ignored TX_SEMODE=1, Drives DPM only. TX_DM_OE=1 to enable drive. DPM=TX_DM
pub const fn rx_pd(&self) -> bool
pub fn set_rx_pd(&mut self, val: bool)
pub const fn tx_pd(&self) -> bool
pub fn set_tx_pd(&mut self, val: bool)
pub const fn tx_fsslew(&self) -> bool
pub fn set_tx_fsslew(&mut self, val: bool)
pub const fn tx_diffmode(&self) -> bool
pub fn set_tx_diffmode(&mut self, val: bool)
Sourcepub fn set_dp_ovcn(&mut self, val: bool)
pub fn set_dp_ovcn(&mut self, val: bool)
Status bit from USB PHY
Sourcepub fn set_dm_ovcn(&mut self, val: bool)
pub fn set_dm_ovcn(&mut self, val: bool)
Status bit from USB PHY
Sourcepub fn set_dp_ovv(&mut self, val: bool)
pub fn set_dp_ovv(&mut self, val: bool)
Status bit from USB PHY
Sourcepub fn set_dm_ovv(&mut self, val: bool)
pub fn set_dm_ovv(&mut self, val: bool)
Status bit from USB PHY
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