Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
|
USB Device Firmware Upgrade (DFU) public header. More...
#include <zephyr/sys_clock.h>
Go to the source code of this file.
Data Structures | |
struct | dfu_runtime_descriptor |
Run-Time Functional Descriptor. More... | |
Macros | |
#define | DFU_SUBCLASS 0x01 |
DFU Class Subclass. | |
#define | DFU_RT_PROTOCOL 0x01 |
DFU Class runtime Protocol. | |
#define | DFU_MODE_PROTOCOL 0x02 |
DFU Class DFU mode Protocol. | |
#define | DFU_DETACH 0x00 |
DFU Class Specific Requests. | |
#define | DFU_DNLOAD 0x01 |
#define | DFU_UPLOAD 0x02 |
#define | DFU_GETSTATUS 0x03 |
#define | DFU_CLRSTATUS 0x04 |
#define | DFU_GETSTATE 0x05 |
#define | DFU_ABORT 0x06 |
#define | DFU_FUNC_DESC 0x21 |
DFU FUNCTIONAL descriptor type. | |
#define | DFU_ATTR_WILL_DETACH 0x08 |
DFU attributes DFU Functional Descriptor. | |
#define | DFU_ATTR_MANIFESTATION_TOLERANT 0x04 |
#define | DFU_ATTR_CAN_UPLOAD 0x02 |
#define | DFU_ATTR_CAN_DNLOAD 0x01 |
#define | DFU_VERSION 0x0110 |
DFU Specification release. | |
Enumerations | |
enum | dfu_status { statusOK , errTARGET , errFILE , errWRITE , errERASE , errCHECK_ERASED , errPROG , errVERIFY , errADDRESS , errNOTDONE , errFIRMWARE , errVENDOR , errUSB , errPOR , errUNKNOWN , errSTALLEDPKT } |
bStatus values for the DFU_GETSTATUS response More... | |
enum | dfu_state { appIDLE , appDETACH , dfuIDLE , dfuDNLOAD_SYNC , dfuDNBUSY , dfuDNLOAD_IDLE , dfuMANIFEST_SYNC , dfuMANIFEST , dfuMANIFEST_WAIT_RST , dfuUPLOAD_IDLE , dfuERROR } |
bState values for the DFU_GETSTATUS response More... | |
Functions | |
void | wait_for_usb_dfu (k_timeout_t delay) |
USB Device Firmware Upgrade (DFU) public header.
Header follows the Device Class Specification for Device Firmware Upgrade Version 1.1
#define DFU_ABORT 0x06 |
#define DFU_ATTR_CAN_DNLOAD 0x01 |
#define DFU_ATTR_CAN_UPLOAD 0x02 |
#define DFU_ATTR_MANIFESTATION_TOLERANT 0x04 |
#define DFU_ATTR_WILL_DETACH 0x08 |
DFU attributes DFU Functional Descriptor.
#define DFU_CLRSTATUS 0x04 |
#define DFU_DETACH 0x00 |
DFU Class Specific Requests.
#define DFU_DNLOAD 0x01 |
#define DFU_FUNC_DESC 0x21 |
DFU FUNCTIONAL descriptor type.
#define DFU_GETSTATE 0x05 |
#define DFU_GETSTATUS 0x03 |
#define DFU_MODE_PROTOCOL 0x02 |
DFU Class DFU mode Protocol.
#define DFU_RT_PROTOCOL 0x01 |
DFU Class runtime Protocol.
#define DFU_SUBCLASS 0x01 |
DFU Class Subclass.
#define DFU_UPLOAD 0x02 |
#define DFU_VERSION 0x0110 |
DFU Specification release.
enum dfu_state |
enum dfu_status |
void wait_for_usb_dfu | ( | k_timeout_t | delay | ) |