USBLib API Guide
1.00.00.01
|
#include <usbddfu-rt.h>
Data Fields | |
const tUSBCallback | pfnCallback |
void *const | pvCBData |
tDFUInstance | sPrivateData |
The structure used by the application to define operating parameters for the DFU device. Note that, unlike all other devices, this structure does not contain any fields which configure the device descriptor sent back to the host. The DFU runtime device class must be used as part of a composite device since all it provides is the capability to signal the device to switch into DFU mode in preparation for a firmware upgrade. Creating a device with nothing but DFU runtime mode capability is rather pointless so this is not supported.
const tUSBCallback tUSBDDFUDevice::pfnCallback |
A pointer to the callback function which will be called to notify the application of DETACH requests.
void* const tUSBDDFUDevice::pvCBData |
A client-supplied pointer which will be sent as the first parameter in all calls made to the pfnCallback function.
tDFUInstance tUSBDDFUDevice::sPrivateData |
The private instance data for this device class. This memory must remain accessible for as long as the DFU device is in use and must not be modified by any code outside the DFU class driver.
Referenced by USBDDFUCompositeInit().