29#define USBDEV_MOCK_NUM_EP (1)
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
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
void(* usbdev_mock_ep_esr_cb_t)(usbdev_mock_t *dev, usbdev_mock_ep_t *ep)
usbdev mock device callback for endpoint event checking
#define USBDEV_MOCK_NUM_EP
Number of IN and OUT endpoints available in the mock usbdev device.
@ EP_STATE_READY
Endpoint is ready/idle.
@ EP_STATE_DATA_AVAILABLE
Endpoint has data
usbdev endpoint descriptor
usbdev mock device endpoint
usbdev_mock_ep_state_t state
Endpoint state
uint8_t * buf
Internal mock buffer pointer.
size_t available
Bytes available in the buffer
usbdev_ep_t ep
Generic endpoint struct
uint8_t * target_buf
Buffer as passed by usbdev_ep_xmit
usbdev_mock_ep_esr_cb_t ep_esr_cb
Endpoint ESR cb for validation
usbdev_t usbdev
Generic usbdev device
uint8_t config_addr
Configured address
usbdev_mock_ready_cb_t ready_cb
Endpoint ready cb for validation
usbdev_mock_ep_t in[USBDEV_MOCK_NUM_EP]
IN endpoints
size_t req_len
Length of the current request
usbdev_mock_esr_cb_t esr_cb
ESR callback for validation
usbdev_mock_ep_t out[USBDEV_MOCK_NUM_EP]
OUT endpoints