Global variable to give and record information of the setup request management.
More...
#include <udd.h>
Global variable to give and record information of the setup request management.
This global variable allows to decode and response a setup request. It can be updated by udc_process_setup() from UDC or *setup() from UDIs.
Definition at line 74 of file udd.h.
◆ callback
void(* udd_ctrl_request_t::callback) (void) |
Callback called after reception of ZLP from setup request.
Definition at line 87 of file udd.h.
◆ over_under_run
bool(* udd_ctrl_request_t::over_under_run) (void) |
Callback called when the buffer given (.payload) is full or empty. This one return false to abort data transfer, or true with a new buffer in .payload.
Definition at line 91 of file udd.h.
◆ payload
uint8_t* udd_ctrl_request_t::payload |
Point to buffer to send or fill with data following SETUP packet This buffer must be word align for DATA IN phase (use prefix COMPILER_WORD_ALIGNED for buffer)
Definition at line 81 of file udd.h.
◆ payload_size
uint16_t udd_ctrl_request_t::payload_size |
Size of buffer to send or fill, and content the number of byte transfered.
Definition at line 84 of file udd.h.
◆ req
Data received in USB SETUP packet Note: The swap of "req.wValues" from uin16_t to le16_t is done by UDD.
Definition at line 77 of file udd.h.
The documentation for this struct was generated from the following file: