pub struct W(_);
Expand description
Register USB_CTRL
writer
Implementations§
source§impl W
impl W
sourcepub fn uc_dma_en(&mut self) -> UC_DMA_EN_W<'_, 0>
pub fn uc_dma_en(&mut self) -> UC_DMA_EN_W<'_, 0>
Bit 0 - DMA enable and DMA interrupt enable for USB
sourcepub fn uc_clr_all(&mut self) -> UC_CLR_ALL_W<'_, 1>
pub fn uc_clr_all(&mut self) -> UC_CLR_ALL_W<'_, 1>
Bit 1 - force clear FIFO and count of USB
sourcepub fn uc_reset_sie(&mut self) -> UC_RESET_SIE_W<'_, 2>
pub fn uc_reset_sie(&mut self) -> UC_RESET_SIE_W<'_, 2>
Bit 2 - force reset USB SIE, need software clear
sourcepub fn uc_int_busy(&mut self) -> UC_INT_BUSY_W<'_, 3>
pub fn uc_int_busy(&mut self) -> UC_INT_BUSY_W<'_, 3>
Bit 3 - enable automatic responding busy for device mode or automatic pause for host mode during interrupt flag UIF_TRANSFER valid
sourcepub fn uc_dev_pu_en(&mut self) -> UC_DEV_PU_EN_W<'_, 4>
pub fn uc_dev_pu_en(&mut self) -> UC_DEV_PU_EN_W<'_, 4>
Bit 4 - USB device enable and internal pullup resistance enable
sourcepub fn uc_speed_type(&mut self) -> UC_SPEED_TYPE_W<'_, 5>
pub fn uc_speed_type(&mut self) -> UC_SPEED_TYPE_W<'_, 5>
Bits 5:6 - enable USB low speed: 00=full speed, 01=high speed, 10 =low speed
sourcepub fn uc_host_mode(&mut self) -> UC_HOST_MODE_W<'_, 7>
pub fn uc_host_mode(&mut self) -> UC_HOST_MODE_W<'_, 7>
Bit 7 - enable USB host mode: 0=device mode, 1=host mode