Type Alias esp32c3::usb_device::out_ep1_st::R

source ·
pub type R = R<OUT_EP1_ST_SPEC>;
Expand description

Register OUT_EP1_ST reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

source§

impl R

source

pub fn out_ep1_state(&self) -> OUT_EP1_STATE_R

Bits 0:1 - State of OUT Endpoint 1.

source

pub fn out_ep1_wr_addr(&self) -> OUT_EP1_WR_ADDR_R

Bits 2:8 - Write data address of OUT endpoint 1. When USB_DEVICE_SERIAL_OUT_RECV_PKT_INT is detected, there are USB_DEVICE_OUT_EP1_WR_ADDR-2 bytes data in OUT EP1.

source

pub fn out_ep1_rd_addr(&self) -> OUT_EP1_RD_ADDR_R

Bits 9:15 - Read data address of OUT endpoint 1.

source

pub fn out_ep1_rec_data_cnt(&self) -> OUT_EP1_REC_DATA_CNT_R

Bits 16:22 - Data count in OUT endpoint 1 when one packet is received.