nrf52840_pac::usbd::dpdmvalue

Type Alias STATE_W

Source
pub type STATE_W<'a, const O: u8> = FieldWriter<'a, u32, DPDMVALUE_SPEC, u8, STATE_A, 5, O>;
Expand description

Field STATE writer - State D+ and D- lines will be forced into by the DPDMDRIVE task

Aliased Type§

struct STATE_W<'a, const O: u8> { /* private fields */ }

Implementations§

Source§

impl<'a, const O: u8> STATE_W<'a, O>

Source

pub fn resume(self) -> &'a mut W

D+ forced low, D- forced high (K state) for a timing preset in hardware (50 us or 5 ms, depending on bus state)

Source

pub fn j(self) -> &'a mut W

D+ forced high, D- forced low (J state)

Source

pub fn k(self) -> &'a mut W

D+ forced low, D- forced high (K state)