#[repr(u8)]pub enum TXMODE {
RegisterSet = 0,
CableReset = 1,
Bisttest = 2,
}Expand description
Type of Tx packet Writing the bitfield triggers the action as follows, depending on the value: Others: invalid From V1.1 of the USB PD specification, there is a counter defined for the duration of the BIST Carrier Mode 2. To quit this mode correctly (after the ‘tBISTContMode’ delay), disable the peripheral (UCPDEN = 0).
Value on reset: 0
Variants§
RegisterSet = 0
0: Transmission of Tx packet previously defined in other registers
CableReset = 1
1: Cable Reset sequence
Bisttest = 2
2: BIST test sequence (BIST Carrier Mode 2)
Trait Implementations§
impl Copy for TXMODE
impl Eq for TXMODE
impl IsEnum for TXMODE
impl StructuralPartialEq for TXMODE
Auto Trait Implementations§
impl Freeze for TXMODE
impl RefUnwindSafe for TXMODE
impl Send for TXMODE
impl Sync for TXMODE
impl Unpin for TXMODE
impl UnwindSafe for TXMODE
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more