Type Alias esp32c3::usb_device::ep1::W
source · pub type W = W<EP1_SPEC>;
Expand description
Register EP1
writer
Aliased Type§
struct W { /* private fields */ }
Implementations§
source§impl W
impl W
sourcepub fn rdwr_byte(&mut self) -> RDWR_BYTE_W<'_, EP1_SPEC>
pub fn rdwr_byte(&mut self) -> RDWR_BYTE_W<'_, EP1_SPEC>
Bits 0:7 - Write and read byte data to/from UART Tx/Rx FIFO through this field. When USB_DEVICE_SERIAL_IN_EMPTY_INT is set, then user can write data (up to 64 bytes) into UART Tx FIFO. When USB_DEVICE_SERIAL_OUT_RECV_PKT_INT is set, user can check USB_DEVICE_OUT_EP1_WR_ADDR USB_DEVICE_OUT_EP0_RD_ADDR to know how many data is received, then read data from UART Rx FIFO.