libusb_control_transfer_get_data() is only used within OpenOCD.
 
Symbols
loading...
Files
loading...
CodeScopeDevelopment ToolsOpenOCDlibusb_control_transfer_get_data()

libusb_control_transfer_get_data() function

Get the data section of a control transfer. This convenience function is here to remind you that the data does not start until 8 bytes into the actual buffer, as the setup packet comes first. Calling this function only makes sense from a transfer callback function, or situations where you have already allocated a suitably sized buffer at transfer->buffer.

Syntax

static inline unsigned char *libusb_control_transfer_get_data(     struct libusb_transfer *transfer);

Arguments

transfer

a transfer

Return value

pointer to the first byte of the data section

References

LocationText
libusb.h:1714
static inline unsigned char *libusb_control_transfer_get_data(

Data Use

Data read by libusb_control_transfer_get_data()
libusb_control_transfer_get_data()