pub struct W(_);
Expand description
Register CFGR1
writer
Implementations
sourceimpl W
impl W
sourcepub fn hbitclkdiv(&mut self) -> HBITCLKDIV_W<'_, 0>
pub fn hbitclkdiv(&mut self) -> HBITCLKDIV_W<'_, 0>
Bits 0:5 - Division ratio for producing half-bit clock The bitfield determines the division ratio (the bitfield value plus one) of a ucpd_clk divider producing half-bit clock (hbit_clk).
sourcepub fn ifrgap(&mut self) -> IFRGAP_W<'_, 6>
pub fn ifrgap(&mut self) -> IFRGAP_W<'_, 6>
Bits 6:10 - Division ratio for producing inter-frame gap timer clock The bitfield determines the division ratio (the bitfield value minus one) of a ucpd_clk divider producing inter-frame gap timer clock (tInterFrameGap). The division ratio 15 is to apply for Tx clock at the USB PD 2.0 specification nominal value. The division ratios below 15 are to apply for Tx clock below nominal, and the division ratios above 15 for Tx clock above nominal.
sourcepub fn transwin(&mut self) -> TRANSWIN_W<'_, 11>
pub fn transwin(&mut self) -> TRANSWIN_W<'_, 11>
Bits 11:15 - Transition window duration The bitfield determines the division ratio (the bitfield value minus one) of a hbit_clk divider producing tTransitionWindow interval. Set a value that produces an interval of 12 to 20 us, taking into account the ucpd_clk frequency and the HBITCLKDIV[5:0] bitfield setting.
sourcepub fn psc_usbpdclk(&mut self) -> PSC_USBPDCLK_W<'_, 17>
pub fn psc_usbpdclk(&mut self) -> PSC_USBPDCLK_W<'_, 17>
Bits 17:19 - Pre-scaler division ratio for generating ucpd_clk The bitfield determines the division ratio of a kernel clock pre-scaler producing UCPD peripheral clock (ucpd_clk). It is recommended to use the pre-scaler so as to set the ucpd_clk frequency in the range from 6 to 9 MHz.
sourcepub fn rxordseten(&mut self) -> RXORDSETEN_W<'_, 20>
pub fn rxordseten(&mut self) -> RXORDSETEN_W<'_, 20>
Bits 20:28 - Receiver ordered set enable The bitfield determines the types of ordered sets that the receiver must detect. When set/cleared, each bit enables/disables a specific function: 0bxxxxxxxx1: SOP detect enabled 0bxxxxxxx1x: SOP’ detect enabled 0bxxxxxx1xx: SOP’’ detect enabled 0bxxxxx1xxx: Hard Reset detect enabled 0bxxxx1xxxx: Cable Detect reset enabled 0bxxx1xxxxx: SOP’_Debug enabled 0bxx1xxxxxx: SOP’’_Debug enabled 0bx1xxxxxxx: SOP extension#1 enabled 0b1xxxxxxxx: SOP extension#2 enabled
sourcepub fn txdmaen(&mut self) -> TXDMAEN_W<'_, 29>
pub fn txdmaen(&mut self) -> TXDMAEN_W<'_, 29>
Bit 29 - Transmission DMA mode enable When set, the bit enables DMA mode for transmission.
sourcepub fn rxdmaen(&mut self) -> RXDMAEN_W<'_, 30>
pub fn rxdmaen(&mut self) -> RXDMAEN_W<'_, 30>
Bit 30 - Reception DMA mode enable When set, the bit enables DMA mode for reception.
sourcepub fn ucpden(&mut self) -> UCPDEN_W<'_, 31>
pub fn ucpden(&mut self) -> UCPDEN_W<'_, 31>
Bit 31 - UCPD peripheral enable General enable of the UCPD peripheral. Upon disabling, the peripheral instantly quits any ongoing activity and all control bits and bitfields default to their reset values. They must be set to their desired values each time the peripheral transits from disabled to enabled state.
Methods from Deref<Target = W<CFGR1_SPEC>>
Trait Implementations
sourceimpl From<W<CFGR1_SPEC>> for W
impl From<W<CFGR1_SPEC>> for W
sourcefn from(writer: W<CFGR1_SPEC>) -> Self
fn from(writer: W<CFGR1_SPEC>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more