29 #define USBDEV_MOCK_NUM_EP (1)
size_t req_len
Length of the current request
usbdev_mock_ep_t out[USBDEV_MOCK_NUM_EP]
OUT endpoints
usbdev_mock_ep_t in[USBDEV_MOCK_NUM_EP]
IN endpoints
size_t available
Bytes available in the buffer
uint8_t config_addr
Configured address
@ EP_STATE_DATA_AVAILABLE
Endpoint has data
void(* usbdev_mock_ep_esr_cb_t)(usbdev_mock_t *dev, usbdev_mock_ep_t *ep)
usbdev mock device callback for endpoint event checking
usbdev_mock_ready_cb_t ready_cb
Endpoint ready cb for validation
usbdev_mock_ep_esr_cb_t ep_esr_cb
Endpoint ESR cb for validation
usbdev_t usbdev
Generic usbdev device
void usbdev_mock_setup(usbdev_mock_esr_cb_t esr_cb, usbdev_mock_ep_esr_cb_t ep_esr_cb, usbdev_mock_ready_cb_t ready_cb)
usbdev mock device setup function
#define USBDEV_MOCK_NUM_EP
Number of IN and OUT endpoints available in the mock usbdev device.
void(* usbdev_mock_esr_cb_t)(usbdev_mock_t *dev)
usbdev mock device callback for esr event checking
void(* usbdev_mock_ready_cb_t)(usbdev_mock_t *dev, usbdev_mock_ep_t *ep, size_t len)
usbdev mock device callback for endpoint ready call checking
usbdev endpoint descriptor
@ EP_STATE_READY
Endpoint is ready/idle.
usbdev_ep_t ep
Generic endpoint struct
uint8_t * buf_start
Start location of the buffer
usbdev mock device endpoint
usbdev_mock_esr_cb_t esr_cb
ESR callback for validation
usbdev_mock_ep_state_t state
Endpoint state