Richard Collins / USBHostControllerDriver
Embed: (wiki syntax)

« Back to documentation index

TransferCallback Struct Reference

TransferCallback Struct Reference

Inhert this object and implemet the callback function. More...

#include <UsbStructures.h>

Public Member Functions

virtual void onReceive (int deviceID, int endpoint, int status, const uint8_t *data, int length)=0
 Called when a transfer has been completed that had a callback ID set.

Detailed Description

Inhert this object and implemet the callback function.

Then pass this object to the IO functions if you need a callback. This is a test.

Definition at line 165 of file UsbStructures.h.


Member Function Documentation

virtual void onReceive ( int  deviceID,
int  endpoint,
int  status,
const uint8_t *  data,
int  length 
) [pure virtual]

Called when a transfer has been completed that had a callback ID set.

Any other transfers without a callback ID will not trigger this.