Type Alias gd32e1::gd32e103::usbfs_device::doep3ctl::W

source ·
pub type W = W<Doep3ctlSpec>;
Expand description

Register DOEP3CTL writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn mpl(&mut self) -> MplW<'_, Doep3ctlSpec>

Bits 0:10 - maximum packet length

source

pub fn epact(&mut self) -> EpactW<'_, Doep3ctlSpec>

Bit 15 - Endpoint active

source

pub fn eptype(&mut self) -> EptypeW<'_, Doep3ctlSpec>

Bits 18:19 - Endpoint type

source

pub fn snoop(&mut self) -> SnoopW<'_, Doep3ctlSpec>

Bit 20 - Snoop mode

source

pub fn stall(&mut self) -> StallW<'_, Doep3ctlSpec>

Bit 21 - STALL handshake

source

pub fn cnak(&mut self) -> CnakW<'_, Doep3ctlSpec>

Bit 26 - Clear NAK

source

pub fn snak(&mut self) -> SnakW<'_, Doep3ctlSpec>

Bit 27 - Set NAK

source

pub fn sd0pid_sevenfrm(&mut self) -> Sd0pidSevenfrmW<'_, Doep3ctlSpec>

Bit 28 - SD0PID/SEVENFRM

source

pub fn sd1pid_soddfrm(&mut self) -> Sd1pidSoddfrmW<'_, Doep3ctlSpec>

Bit 29 - SD1PID/SODDFRM

source

pub fn epd(&mut self) -> EpdW<'_, Doep3ctlSpec>

Bit 30 - Endpoint disable

source

pub fn epen(&mut self) -> EpenW<'_, Doep3ctlSpec>

Bit 31 - Endpoint enable