libsbp  v2.4.7
bootload.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015-2018 Swift Navigation Inc.
3  * Contact: Swift Navigation <dev@swiftnav.com>
4  *
5  * This source is subject to the license found in the file 'LICENSE' which must
6  * be be distributed together with this source. All other rights reserved.
7  *
8  * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
9  * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
10  * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
11  */
12 
13 /*****************************************************************************
14  * Automatically generated from yaml/swiftnav/sbp/bootload.yaml
15  * with generate.py. Please do not hand edit!
16  *****************************************************************************/
17 
27 #ifndef LIBSBP_BOOTLOAD_MESSAGES_H
28 #define LIBSBP_BOOTLOAD_MESSAGES_H
29 
30 #include "common.h"
31 
32 SBP_PACK_START
33 
34 
41 #define SBP_MSG_BOOTLOADER_HANDSHAKE_REQ 0x00B3
42 
43 
52 #define SBP_MSG_BOOTLOADER_HANDSHAKE_RESP 0x00B4
53 typedef struct SBP_ATTR_PACKED {
55  char version[0];
57 
58 
63 #define SBP_MSG_BOOTLOADER_JUMP_TO_APP 0x00B1
64 typedef struct SBP_ATTR_PACKED {
65  u8 jump;
67 
68 
78 #define SBP_MSG_NAP_DEVICE_DNA_REQ 0x00DE
79 
80 
90 #define SBP_MSG_NAP_DEVICE_DNA_RESP 0x00DD
91 typedef struct SBP_ATTR_PACKED {
92  u8 dna[8];
96 
97 
102 #define SBP_MSG_BOOTLOADER_HANDSHAKE_DEP_A 0x00B0
103 typedef struct SBP_ATTR_PACKED {
104  u8 handshake[0];
106 
107 
110 SBP_PACK_END
111 
112 #endif /* LIBSBP_BOOTLOAD_MESSAGES_H */
uint8_t u8
Unsigned 8-bit integer.
Definition: common.h:40
u32 flags
Bootloader flags.
Definition: bootload.h:54
uint32_t u32
Unsigned 32-bit integer.
Definition: common.h:44
u8 jump
Ignored by the device.
Definition: bootload.h:65