Loading...
Searching...
No Matches
dfu_headers.h
1#pragma once
2
3#include <stdint.h>
4
5#pragma pack(push, 1)
6
7typedef struct {
8 char szSignature[5];
9 uint8_t bVersion;
10 uint32_t DFUImageSize;
11 uint8_t bTargets;
12} DfuPrefix;
13
14typedef struct {
15 uint16_t bcdDevice;
16 uint16_t idProduct;
17 uint16_t idVendor;
18 uint16_t bcdDFU;
19 uint8_t ucDfuSignature_U;
20 uint8_t ucDfuSignature_F;
21 uint8_t ucDfuSignature_D;
22 uint8_t bLength;
23 uint32_t dwCRC;
24} DfuSuffix;
25
26typedef struct {
27 char szSignature[6];
28 uint8_t bAlternateSetting;
29 uint8_t bTargetNamed;
30 uint8_t _pad[3];
31 char szTargetName[255];
32 uint32_t dwTargetSize;
33 uint32_t dwNbElements;
35
36typedef struct {
37 uint32_t dwElementAddress;
38 uint32_t dwElementSize;
40
41#pragma pack(pop)
Definition dfu_headers.h:7
Definition dfu_headers.h:14
Definition dfu_headers.h:36
Definition dfu_headers.h:26