Struct ch32v3::ch32v30x::usb_otg_fs::usbhd_base_ctrl::R
source · pub struct R(_);
Expand description
Register USBHD_BASE_CTRL
reader
Implementations§
source§impl R
impl R
sourcepub fn usbhd_uc_dma_en(&self) -> USBHD_UC_DMA_EN_R
pub fn usbhd_uc_dma_en(&self) -> USBHD_UC_DMA_EN_R
Bit 0 - DMA enable and DMA interrupt enable for USB
sourcepub fn usbhd_uc_clr_all(&self) -> USBHD_UC_CLR_ALL_R
pub fn usbhd_uc_clr_all(&self) -> USBHD_UC_CLR_ALL_R
Bit 1 - force clear FIFO and count of USB
sourcepub fn usbhd_uc_reset_sie(&self) -> USBHD_UC_RESET_SIE_R
pub fn usbhd_uc_reset_sie(&self) -> USBHD_UC_RESET_SIE_R
Bit 2 - force reset USB SIE, need software clear
sourcepub fn usbhd_uc_int_busy(&self) -> USBHD_UC_INT_BUSY_R
pub fn usbhd_uc_int_busy(&self) -> USBHD_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 usbhd_uc_sys_ctrl_mask(&self) -> USBHD_UC_SYS_CTRL_MASK_R
pub fn usbhd_uc_sys_ctrl_mask(&self) -> USBHD_UC_SYS_CTRL_MASK_R
Bits 4:5 - USB device enable and internal pullup resistance enable
sourcepub fn usbhd_uc_low_speed(&self) -> USBHD_UC_LOW_SPEED_R
pub fn usbhd_uc_low_speed(&self) -> USBHD_UC_LOW_SPEED_R
Bit 6 - enable USB low speed: 0=12Mbps, 1=1.5Mbps
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