Flipper Developer Docs
Loading...
Searching...
No Matches
dfu_headers.h
1
#pragma once
2
3
#include <stdint.h>
4
5
#pragma pack(push, 1)
6
7
typedef
struct
{
8
char
szSignature[5];
9
uint8_t bVersion;
10
uint32_t DFUImageSize;
11
uint8_t bTargets;
12
}
DfuPrefix
;
13
14
typedef
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
26
typedef
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;
34
}
TargetPrefix
;
35
36
typedef
struct
{
37
uint32_t dwElementAddress;
38
uint32_t dwElementSize;
39
}
ImageElementHeader
;
40
41
#pragma pack(pop)
DfuPrefix
Definition
dfu_headers.h:7
DfuSuffix
Definition
dfu_headers.h:14
ImageElementHeader
Definition
dfu_headers.h:36
TargetPrefix
Definition
dfu_headers.h:26
lib
update_util
dfu_headers.h
Generated by
1.12.0