Type Alias xmc4300::usb0_ep0::diepctl0::W

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

Register DIEPCTL0 writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn mps(&mut self) -> MPS_W<'_, DIEPCTL0_SPEC>

Bits 0:1 - Maximum Packet Size

source

pub fn stall(&mut self) -> STALL_W<'_, DIEPCTL0_SPEC>

Bit 21 - STALL Handshake

source

pub fn tx_fnum(&mut self) -> TX_FNUM_W<'_, DIEPCTL0_SPEC>

Bits 22:25 - TxFIFO Number

source

pub fn cnak(&mut self) -> CNAK_W<'_, DIEPCTL0_SPEC>

Bit 26 - Clear NAK

source

pub fn snak(&mut self) -> SNAK_W<'_, DIEPCTL0_SPEC>

Bit 27 - Set NAK

source

pub fn epdis(&mut self) -> EPDIS_W<'_, DIEPCTL0_SPEC>

Bit 30 - Endpoint Disable

source

pub fn epena(&mut self) -> EPENA_W<'_, DIEPCTL0_SPEC>

Bit 31 - Endpoint Enable