Electronics and SoftwareEngineering Innovation
#include <Dfu.h>
#include <BFile.h>
#include <BDebug.h>
#include <unistd.h>
◆ BDEBUGL1
◆ BDEBUGL2
◆ DFU_ABORT
◆ DFU_CLRSTATUS
◆ DFU_DETACH
◆ DFU_DNLOAD
◆ DFU_GETSTATE
◆ DFU_GETSTATUS
◆ DFU_IFF_ALT
#define DFU_IFF_ALT 0x1000 |
◆ DFU_IFF_CONFIG
#define DFU_IFF_CONFIG 0x0400 |
◆ DFU_IFF_DEVNUM
#define DFU_IFF_DEVNUM 0x2000 |
◆ DFU_IFF_DFU
#define DFU_IFF_DFU 0x0001 /* DFU Mode, (not Runtime) */ |
◆ DFU_IFF_IFACE
#define DFU_IFF_IFACE 0x0800 |
◆ DFU_IFF_PATH
#define DFU_IFF_PATH 0x4000 |
◆ DFU_IFF_PRODUCT
#define DFU_IFF_PRODUCT 0x0200 |
◆ DFU_IFF_VENDOR
#define DFU_IFF_VENDOR 0x0100 |
◆ DFU_STATUS_ERROR_ADDRESS
#define DFU_STATUS_ERROR_ADDRESS 0x08 |
◆ DFU_STATUS_ERROR_CHECK_ERASED
#define DFU_STATUS_ERROR_CHECK_ERASED 0x05 |
◆ DFU_STATUS_ERROR_ERASE
#define DFU_STATUS_ERROR_ERASE 0x04 |
◆ DFU_STATUS_ERROR_FILE
#define DFU_STATUS_ERROR_FILE 0x02 |
◆ DFU_STATUS_ERROR_FIRMWARE
#define DFU_STATUS_ERROR_FIRMWARE 0x0a |
◆ DFU_STATUS_ERROR_NOTDONE
#define DFU_STATUS_ERROR_NOTDONE 0x09 |
◆ DFU_STATUS_ERROR_POR
#define DFU_STATUS_ERROR_POR 0x0d |
◆ DFU_STATUS_ERROR_PROG
#define DFU_STATUS_ERROR_PROG 0x06 |
◆ DFU_STATUS_ERROR_STALLEDPKT
#define DFU_STATUS_ERROR_STALLEDPKT 0x0f |
◆ DFU_STATUS_ERROR_TARGET
#define DFU_STATUS_ERROR_TARGET 0x01 |
◆ DFU_STATUS_ERROR_UNKNOWN
#define DFU_STATUS_ERROR_UNKNOWN 0x0e |
◆ DFU_STATUS_ERROR_USBR
#define DFU_STATUS_ERROR_USBR 0x0c |
◆ DFU_STATUS_ERROR_VENDOR
#define DFU_STATUS_ERROR_VENDOR 0x0b |
◆ DFU_STATUS_ERROR_VERIFY
#define DFU_STATUS_ERROR_VERIFY 0x07 |
◆ DFU_STATUS_ERROR_WRITE
#define DFU_STATUS_ERROR_WRITE 0x03 |
◆ DFU_STATUS_OK
#define DFU_STATUS_OK 0x00 |
◆ DFU_UPLOAD
◆ STATE_APP_DETACH
#define STATE_APP_DETACH 0x01 |
◆ STATE_APP_IDLE
#define STATE_APP_IDLE 0x00 |
◆ STATE_DFU_DOWNLOAD_BUSY
#define STATE_DFU_DOWNLOAD_BUSY 0x04 |
◆ STATE_DFU_DOWNLOAD_IDLE
#define STATE_DFU_DOWNLOAD_IDLE 0x05 |
◆ STATE_DFU_DOWNLOAD_SYNC
#define STATE_DFU_DOWNLOAD_SYNC 0x03 |
◆ STATE_DFU_ERROR
#define STATE_DFU_ERROR 0x0a |
◆ STATE_DFU_IDLE
#define STATE_DFU_IDLE 0x02 |
◆ STATE_DFU_MANIFEST
#define STATE_DFU_MANIFEST 0x07 |
◆ STATE_DFU_MANIFEST_SYNC
#define STATE_DFU_MANIFEST_SYNC 0x06 |
◆ STATE_DFU_MANIFEST_WAIT_RESET
#define STATE_DFU_MANIFEST_WAIT_RESET 0x08 |
◆ STATE_DFU_UPLOAD_IDLE
#define STATE_DFU_UPLOAD_IDLE 0x09 |
◆ dfuse_command
Enumerator |
---|
SET_ADDRESS | |
ERASE_PAGE | |
MASS_ERASE | |
READ_UNPROTECT | |
◆ pageAddress()
◆ pageNumber()
◆ BFirmwareInfoEncrypt1
const BUInt8 BFirmwareInfoEncrypt1 = 0x40 |
◆ BFirmwareInfoMagic
const BUInt32 BFirmwareInfoMagic = 0xBBEEAA00 |