pub struct R(_);
Expand description
Register USB_CTRL
reader
Implementations§
source§impl R
impl R
sourcepub fn uc_dma_en(&self) -> UC_DMA_EN_R
pub fn uc_dma_en(&self) -> UC_DMA_EN_R
Bit 0 - DMA enable and DMA interrupt enable for USB
sourcepub fn uc_clr_all(&self) -> UC_CLR_ALL_R
pub fn uc_clr_all(&self) -> UC_CLR_ALL_R
Bit 1 - force clear FIFO and count of USB
sourcepub fn uc_reset_sie(&self) -> UC_RESET_SIE_R
pub fn uc_reset_sie(&self) -> UC_RESET_SIE_R
Bit 2 - force reset USB SIE, need software clear
sourcepub fn uc_int_busy(&self) -> UC_INT_BUSY_R
pub fn uc_int_busy(&self) -> UC_INT_BUSY_R
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(&self) -> UC_DEV_PU_EN_R
pub fn uc_dev_pu_en(&self) -> UC_DEV_PU_EN_R
Bit 4 - USB device enable and internal pullup resistance enable
sourcepub fn uc_speed_type(&self) -> UC_SPEED_TYPE_R
pub fn uc_speed_type(&self) -> UC_SPEED_TYPE_R
Bits 5:6 - enable USB low speed: 00=full speed, 01=high speed, 10 =low speed
sourcepub fn uc_host_mode(&self) -> UC_HOST_MODE_R
pub fn uc_host_mode(&self) -> UC_HOST_MODE_R
Bit 7 - enable USB host mode: 0=device mode, 1=host mode