Struct esp32s3_hal::pac::usb_device::ep1::W
pub struct W(_);
Expand description
Register EP1
writer
Implementations§
§impl W
impl W
pub fn rdwr_byte(
&mut self
) -> FieldWriterRaw<'_, u32, EP1_SPEC, u8, u8, Unsafe, 8, 0>
pub fn rdwr_byte(
&mut self
) -> FieldWriterRaw<'_, u32, EP1_SPEC, u8, u8, Unsafe, 8, 0>
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.
Methods from Deref<Target = W<EP1_SPEC>>§
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
Writes raw bits to the register.
Safety
Read datasheet or reference manual to find what values are allowed to pass.