Bootloader.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 // std
4 #include <cstdint>
5 #include <map>
6 
7 // project
8 #include "Type.hpp"
9 #include "Section.hpp"
10 #include "Memory.hpp"
11 
12 namespace dai
13 {
14 namespace bootloader
15 {
16 
17 namespace request {
18 
19  enum Command : uint32_t {
38  };
39 
40  struct BaseRequest {
41  BaseRequest(Command command) : cmd(command){}
43  };
44 
45  // Specific request PODs
47  // Common
49 
50  static constexpr auto VERSION = "0.0.2";
51  static constexpr const char* NAME = "UsbRomBoot";
52  };
54  // Common
56 
57  // Data
58 
59  static constexpr const char* VERSION = "0.0.2";
60  static constexpr const char* NAME = "BootApplication";
61  };
62 
64  // Common
66 
67  // Data
68  enum Storage : uint32_t { SBR, BOOTLOADER };
69  Storage storage = Storage::SBR;
70  uint32_t totalSize = 0;
71  uint32_t numPackets = 0;
72 
73  static constexpr const char* VERSION = "0.0.2";
74  static constexpr const char* NAME = "UpdateFlash";
75  };
76 
77 
79  // Common
81 
82  // Data
83 
84  static constexpr const char* VERSION = "0.0.2";
85  static constexpr const char* NAME = "GetBootloaderVersion";
86  };
87 
88  // 0.0.12 or higher
90  // Common
92 
93  // Data
94  uint32_t totalSize = 0;
95  uint32_t numPackets = 0;
96 
97  static constexpr const char* VERSION = "0.0.12";
98  static constexpr const char* NAME = "BootMemory";
99  };
100 
101  // UpdateFlashEx - Additional options
103  // Common
105 
106  // Data
109  uint32_t totalSize = 0;
110  uint32_t numPackets = 0;
111 
112  static constexpr const char* VERSION = "0.0.12";
113  static constexpr const char* NAME = "UpdateFlashEx";
114  };
115 
116  // UpdateFlashEx2 - Additional options
118  // Common
120 
121  // Data
123  uint32_t offset = 0; // TODO investigate type due to depthai-core assigning signed `long` to this field
124  uint32_t totalSize = 0;
125  uint32_t numPackets = 0;
126 
127  static constexpr const char* VERSION = "0.0.12";
128  static constexpr const char* NAME = "UpdateFlashEx2";
129  };
130 
131 
133  // Common
135 
136  // Data
137 
138  static constexpr const char* VERSION = "0.0.12";
139  static constexpr const char* NAME = "GetBootloaderType";
140  };
141 
142 
143  // 0.0.14 or higher
145  // Common
147 
148  // Data
150  int64_t offset = -1;
151  uint32_t clearConfig = 0;
152  uint32_t totalSize = 0;
153  uint32_t numPackets = 0;
154 
155  static constexpr const char* VERSION = "0.0.14";
156  static constexpr const char* NAME = "SetBootloaderConfig";
157  };
158 
160  // Common
162 
163  // Data
165  int64_t offset = -1;
166  uint32_t maxSize = 0;
167 
168  static constexpr const char* VERSION = "0.0.14";
169  static constexpr const char* NAME = "GetBootloaderConfig";
170  };
172  // Common
174 
175  // Data
176 
177  static constexpr const char* VERSION = "0.0.14";
178  static constexpr const char* NAME = "BootloaderMemory";
179  };
180 
181  // 0.0.18
183  // Common
185 
186  // Data
187 
188  static constexpr const char* VERSION = "0.0.18";
189  static constexpr const char* NAME = "GetBootloaderCommit";
190  };
191 
192 
193  // 0.0.19
195  // Common
197 
198  // Data
199  enum Type : int32_t { GPIO_MODE = 0, USB_RECOVERY, NORMAL, FAST };
200 
202  int64_t offset = -1;
203  int64_t location = -1;
204  int32_t dummyCycles = -1;
205  int32_t frequency = -1;
206  int32_t gpioMode = -1;
207 
208 
209  static constexpr const char* VERSION = "0.0.19";
210  static constexpr const char* NAME = "UpdateFlashBootHeader";
211  };
212 
214  // Common
216 
217  // Data
219  uint32_t offset = 0;
220  uint32_t totalSize = 0;
221 
222  static constexpr const char* VERSION = "0.0.19";
223  static constexpr const char* NAME = "ReadFlash";
224  };
225 
227  // Common
229 
230  // Data
232 
233  static constexpr const char* VERSION = "0.0.19";
234  static constexpr const char* NAME = "GetApplicationDetails";
235  };
236 
238  // Common
240 
241  // Data
243 
244  static constexpr const char* VERSION = "0.0.19";
245  static constexpr const char* NAME = "GetMemoryDetails";
246  };
247 
249  // Common
251 
252  static constexpr const char* VERSION = "0.0.21";
253  static constexpr const char* NAME = "IsUserBootloader";
254  };
255 }
256 
257 
258 namespace response {
259 
260  enum Command : uint32_t {
274  };
275 
276  struct BaseResponse {
277  BaseResponse(Command command) : cmd(command){}
279  };
280 
281  // Specific request PODs
283  // Common
285 
286  // Data
287  uint32_t success = 0;
288  char errorMsg[64]{0};
289 
290  static constexpr const char* VERSION = "0.0.2";
291  static constexpr const char* NAME = "FlashComplete";
292  };
294  // Common
296 
297  // Data
298  float progress = 0.0f;
299 
300  static constexpr const char* VERSION = "0.0.2";
301  static constexpr const char* NAME = "FlashStatusUpdate";
302  };
304  // Common
306 
307  // Data
308  uint32_t major = 0;
309  uint32_t minor = 0;
310  uint32_t patch = 0;
311 
312  static constexpr const char* VERSION = "0.0.2";
313  static constexpr const char* NAME = "BootloaderVersion";
314  };
315 
317  // Common
319 
320  // Data
322 
323  static constexpr const char* VERSION = "0.0.12";
324  static constexpr const char* NAME = "BootloaderType";
325  };
326 
327 
328  // 0.0.14
330  // Common
332 
333  // Data
334  uint32_t success = 0;
335  char errorMsg[64]{0};
336  uint32_t totalSize = 0;
337  uint32_t numPackets = 0;
338 
339  static constexpr const char* VERSION = "0.0.14";
340  static constexpr const char* NAME = "GetBootloaderConfig";
341  };
342 
344  // Common
346 
347  // Data
349 
350  static constexpr const char* VERSION = "0.0.14";
351  static constexpr const char* NAME = "BootloaderMemory";
352  };
353 
355  // Common
357 
358  // Data
359  uint32_t success = 0;
360  char errorMsg[64]{0};
361 
362  static constexpr const char* VERSION = "0.0.14";
363  static constexpr const char* NAME = "BootApplication";
364  };
365 
366  // 0.0.18
368  // Common
370 
371  // Data
372  char commitStr[64]{0};
373 
374  static constexpr const char* VERSION = "0.0.18";
375  static constexpr const char* NAME = "BootloaderCommit";
376  };
377 
378  // 0.0.19
380  // Common
382 
383  // Data
384  uint32_t success = 0;
385  char errorMsg[64]{0};
386  uint32_t totalSize = 0;
387  uint32_t numPackets = 0;
388 
389  static constexpr const char* VERSION = "0.0.19";
390  static constexpr const char* NAME = "ReadFlash";
391  };
392 
393 
394 
396  // Common
398 
399  // Data
400  uint32_t success = 0;
401  char errorMsg[64]{0};
402  uint32_t hasApplication = 0;
403  uint32_t hasFirmwareVersion = 0;
404  uint32_t hasApplicationName = 0;
405  char firmwareVersionStr[256]{0};
406  char applicationNameStr[4*1024]{0};
407 
408  static constexpr const char* VERSION = "0.0.19";
409  static constexpr const char* NAME = "ApplicationVersion";
410  };
411 
412 
414  // Common
416 
417  // Data
418  uint32_t hasMemory = 0;
420  int64_t memorySize = 0;
421  char memoryInfo[512]{0};
422 
423  static constexpr const char* VERSION = "0.0.19";
424  static constexpr const char* NAME = "MemoryDetails";
425  };
426 
428  // Common
430 
431  // Data
432  uint32_t isUserBootloader = 0;
433 
434  static constexpr const char* VERSION = "0.0.21";
435  static constexpr const char* NAME = "IsUserBootloader";
436  };
437 
438  struct NoOp : BaseResponse {
439  // Common
441  // Data
442  uint32_t invalidOp = 0;
443 
444  static constexpr const char* VERSION = "0.0.21";
445  static constexpr const char* NAME = "NO_OP";
446  };
447 }
448 
449 } // namespace bootloader
450 } // namespace dai
dai::bootloader::response::GetBootloaderConfig::success
uint32_t success
Definition: Bootloader.hpp:334
dai::bootloader::response::ReadFlash::numPackets
uint32_t numPackets
Definition: Bootloader.hpp:387
dai::bootloader::request::SetBootloaderConfig::clearConfig
uint32_t clearConfig
Definition: Bootloader.hpp:151
dai::bootloader::request::UpdateFlashEx::section
Section section
Definition: Bootloader.hpp:108
dai::bootloader::request::UpdateFlash::BOOTLOADER
@ BOOTLOADER
Definition: Bootloader.hpp:68
dai::bootloader::response::BootApplication::VERSION
static constexpr const char * VERSION
Definition: Bootloader.hpp:362
dai::bootloader::request::UpdateFlashBootHeader::NORMAL
@ NORMAL
Definition: Bootloader.hpp:199
dai::bootloader::response::MemoryDetails::hasMemory
uint32_t hasMemory
Definition: Bootloader.hpp:418
dai::bootloader::request::BootApplication::BootApplication
BootApplication()
Definition: Bootloader.hpp:55
dai::bootloader::request::GetMemoryDetails::memory
Memory memory
Definition: Bootloader.hpp:242
dai::bootloader::request::GetBootloaderCommit::GetBootloaderCommit
GetBootloaderCommit()
Definition: Bootloader.hpp:184
dai::bootloader::response::BootloaderType::BootloaderType
BootloaderType()
Definition: Bootloader.hpp:318
dai::bootloader::request::UpdateFlashBootHeader::location
int64_t location
Definition: Bootloader.hpp:203
dai::bootloader::response::ApplicationDetails::success
uint32_t success
Definition: Bootloader.hpp:400
dai::bootloader::request::GET_BOOTLOADER_CONFIG
@ GET_BOOTLOADER_CONFIG
Definition: Bootloader.hpp:30
dai::bootloader::response::BaseResponse
Definition: Bootloader.hpp:276
dai::bootloader::Memory::AUTO
@ AUTO
dai::bootloader::request::READ_FLASH
@ READ_FLASH
Definition: Bootloader.hpp:34
dai::bootloader::response::MemoryDetails::memoryInfo
char memoryInfo[512]
Definition: Bootloader.hpp:421
dai::bootloader::request::UpdateFlashEx2::offset
uint32_t offset
Definition: Bootloader.hpp:123
dai::bootloader::request::UpdateFlashEx::UpdateFlashEx
UpdateFlashEx()
Definition: Bootloader.hpp:104
dai::bootloader::request::IsUserBootloader::NAME
static constexpr const char * NAME
Definition: Bootloader.hpp:253
dai::bootloader::request::ReadFlash::memory
Memory memory
Definition: Bootloader.hpp:218
dai::bootloader::request::UsbRomBoot::UsbRomBoot
UsbRomBoot()
Definition: Bootloader.hpp:48
dai::bootloader::response::FlashComplete::VERSION
static constexpr const char * VERSION
Definition: Bootloader.hpp:290
dai::bootloader::response::FlashComplete::FlashComplete
FlashComplete()
Definition: Bootloader.hpp:284
dai::bootloader::request::GetBootloaderType::VERSION
static constexpr const char * VERSION
Definition: Bootloader.hpp:138
dai::bootloader::request::SetBootloaderConfig::SetBootloaderConfig
SetBootloaderConfig()
Definition: Bootloader.hpp:146
dai::bootloader::request::GetBootloaderVersion::VERSION
static constexpr const char * VERSION
Definition: Bootloader.hpp:84
dai::bootloader::request::UpdateFlashEx2::numPackets
uint32_t numPackets
Definition: Bootloader.hpp:125
dai::bootloader::response::ReadFlash
Definition: Bootloader.hpp:379
dai::bootloader::request::BootloaderMemory::BootloaderMemory
BootloaderMemory()
Definition: Bootloader.hpp:173
dai::bootloader::request::ReadFlash::totalSize
uint32_t totalSize
Definition: Bootloader.hpp:220
dai::bootloader::request::UPDATE_FLASH_BOOT_HEADER
@ UPDATE_FLASH_BOOT_HEADER
Definition: Bootloader.hpp:33
dai::bootloader::request::BootApplication::NAME
static constexpr const char * NAME
Definition: Bootloader.hpp:60
dai::bootloader::request::ReadFlash::NAME
static constexpr const char * NAME
Definition: Bootloader.hpp:223
dai::bootloader::request::GetBootloaderType::GetBootloaderType
GetBootloaderType()
Definition: Bootloader.hpp:134
dai::bootloader::request::GetBootloaderConfig
Definition: Bootloader.hpp:159
dai::bootloader::response::BootloaderVersion::NAME
static constexpr const char * NAME
Definition: Bootloader.hpp:313
dai::bootloader::response::NoOp::invalidOp
uint32_t invalidOp
Definition: Bootloader.hpp:442
dai::bootloader::response::BootloaderCommit::commitStr
char commitStr[64]
Definition: Bootloader.hpp:372
dai::bootloader::response::ApplicationDetails::applicationNameStr
char applicationNameStr[4 *1024]
Definition: Bootloader.hpp:406
dai::bootloader::request::UsbRomBoot::NAME
static constexpr const char * NAME
Definition: Bootloader.hpp:51
dai::bootloader::request::BootMemory
Definition: Bootloader.hpp:89
dai::bootloader::request::IsUserBootloader
Definition: Bootloader.hpp:248
dai::bootloader::request::UpdateFlashEx::VERSION
static constexpr const char * VERSION
Definition: Bootloader.hpp:112
dai::bootloader::response::FlashComplete
Definition: Bootloader.hpp:282
dai::bootloader::request::UpdateFlashEx2::UpdateFlashEx2
UpdateFlashEx2()
Definition: Bootloader.hpp:119
dai::bootloader::response::NO_OP
@ NO_OP
Definition: Bootloader.hpp:273
dai::bootloader::request::UpdateFlashBootHeader::USB_RECOVERY
@ USB_RECOVERY
Definition: Bootloader.hpp:199
dai::bootloader::request::BootloaderMemory::NAME
static constexpr const char * NAME
Definition: Bootloader.hpp:178
dai::bootloader::response::BootloaderMemory::VERSION
static constexpr const char * VERSION
Definition: Bootloader.hpp:350
dai::bootloader::response::ApplicationDetails::hasApplication
uint32_t hasApplication
Definition: Bootloader.hpp:402
dai::bootloader::response::BaseResponse::BaseResponse
BaseResponse(Command command)
Definition: Bootloader.hpp:277
dai::bootloader::request::GetBootloaderCommit
Definition: Bootloader.hpp:182
dai::bootloader::Memory::FLASH
@ FLASH
Section.hpp
Type.hpp
dai::bootloader::request::ReadFlash::offset
uint32_t offset
Definition: Bootloader.hpp:219
dai::bootloader::response::FLASH_COMPLETE
@ FLASH_COMPLETE
Definition: Bootloader.hpp:261
dai::bootloader::response::IS_USER_BOOTLOADER
@ IS_USER_BOOTLOADER
Definition: Bootloader.hpp:272
dai::bootloader::response::MemoryDetails::NAME
static constexpr const char * NAME
Definition: Bootloader.hpp:424
dai::bootloader::request::UpdateFlashBootHeader::gpioMode
int32_t gpioMode
Definition: Bootloader.hpp:206
dai::bootloader::request::UpdateFlash::SBR
@ SBR
Definition: Bootloader.hpp:68
dai::bootloader::request::BootloaderMemory
Definition: Bootloader.hpp:171
dai::bootloader::request::BootMemory::NAME
static constexpr const char * NAME
Definition: Bootloader.hpp:98
dai::bootloader::request::BOOT_APPLICATION
@ BOOT_APPLICATION
Definition: Bootloader.hpp:21
dai::bootloader::request::UpdateFlash::Storage
Storage
Definition: Bootloader.hpp:68
dai::bootloader::response::Command
Command
Definition: Bootloader.hpp:260
dai::bootloader::request::GetBootloaderConfig::GetBootloaderConfig
GetBootloaderConfig()
Definition: Bootloader.hpp:161
dai::bootloader::response::ApplicationDetails::ApplicationDetails
ApplicationDetails()
Definition: Bootloader.hpp:397
dai::bootloader::request::GetApplicationDetails
Definition: Bootloader.hpp:226
dai::bootloader::response::ReadFlash::NAME
static constexpr const char * NAME
Definition: Bootloader.hpp:390
dai::bootloader::request::Command
Command
Definition: Bootloader.hpp:19
dai::bootloader::response::BootloaderType::VERSION
static constexpr const char * VERSION
Definition: Bootloader.hpp:323
dai::bootloader::Memory
Memory
Definition: Memory.hpp:11
dai::bootloader::response::NoOp::NoOp
NoOp()
Definition: Bootloader.hpp:440
dai::bootloader::response::GetBootloaderConfig::totalSize
uint32_t totalSize
Definition: Bootloader.hpp:336
dai::bootloader::Type
Type
Definition: Type.hpp:11
dai::bootloader::request::UpdateFlashBootHeader
Definition: Bootloader.hpp:194
dai::bootloader::response::NoOp::NAME
static constexpr const char * NAME
Definition: Bootloader.hpp:445
dai::bootloader::response::BootApplication::NAME
static constexpr const char * NAME
Definition: Bootloader.hpp:363
dai::bootloader::request::SetBootloaderConfig::numPackets
uint32_t numPackets
Definition: Bootloader.hpp:153
dai::bootloader::request::IS_USER_BOOTLOADER
@ IS_USER_BOOTLOADER
Definition: Bootloader.hpp:37
dai::bootloader::request::UpdateFlashBootHeader::NAME
static constexpr const char * NAME
Definition: Bootloader.hpp:210
dai::bootloader::request::ReadFlash::VERSION
static constexpr const char * VERSION
Definition: Bootloader.hpp:222
dai::bootloader::response::MemoryDetails::VERSION
static constexpr const char * VERSION
Definition: Bootloader.hpp:423
dai::bootloader::response::BootloaderVersion::minor
uint32_t minor
Definition: Bootloader.hpp:309
dai::bootloader::request::SetBootloaderConfig::totalSize
uint32_t totalSize
Definition: Bootloader.hpp:152
dai::bootloader::response::ReadFlash::VERSION
static constexpr const char * VERSION
Definition: Bootloader.hpp:389
dai::bootloader::request::UpdateFlash::UpdateFlash
UpdateFlash()
Definition: Bootloader.hpp:65
dai::bootloader::request::GetBootloaderVersion::NAME
static constexpr const char * NAME
Definition: Bootloader.hpp:85
dai::bootloader::response::FlashStatusUpdate::VERSION
static constexpr const char * VERSION
Definition: Bootloader.hpp:300
dai::bootloader::response::FlashComplete::errorMsg
char errorMsg[64]
Definition: Bootloader.hpp:288
dai::bootloader::response::FlashStatusUpdate::NAME
static constexpr const char * NAME
Definition: Bootloader.hpp:301
dai::bootloader::response::ReadFlash::success
uint32_t success
Definition: Bootloader.hpp:384
dai::bootloader::response::BootloaderCommit::BootloaderCommit
BootloaderCommit()
Definition: Bootloader.hpp:369
dai::bootloader::request::UpdateFlashBootHeader::offset
int64_t offset
Definition: Bootloader.hpp:202
dai::bootloader::request::ReadFlash::ReadFlash
ReadFlash()
Definition: Bootloader.hpp:215
dai::bootloader::request::GetBootloaderVersion::GetBootloaderVersion
GetBootloaderVersion()
Definition: Bootloader.hpp:80
dai::bootloader::response::BootloaderType::type
Type type
Definition: Bootloader.hpp:321
dai::bootloader::response::ReadFlash::errorMsg
char errorMsg[64]
Definition: Bootloader.hpp:385
dai::bootloader::request::BootloaderMemory::VERSION
static constexpr const char * VERSION
Definition: Bootloader.hpp:177
dai::bootloader::response::BootloaderVersion::VERSION
static constexpr const char * VERSION
Definition: Bootloader.hpp:312
dai::bootloader::request::UpdateFlashEx2::VERSION
static constexpr const char * VERSION
Definition: Bootloader.hpp:127
dai::bootloader::request::BootMemory::numPackets
uint32_t numPackets
Definition: Bootloader.hpp:95
dai::bootloader::request::USB_ROM_BOOT
@ USB_ROM_BOOT
Definition: Bootloader.hpp:20
dai::bootloader::response::ReadFlash::totalSize
uint32_t totalSize
Definition: Bootloader.hpp:386
dai::bootloader::request::UpdateFlashBootHeader::frequency
int32_t frequency
Definition: Bootloader.hpp:205
dai::bootloader::request::UsbRomBoot
Definition: Bootloader.hpp:46
dai::bootloader::response::BootApplication::errorMsg
char errorMsg[64]
Definition: Bootloader.hpp:360
dai::bootloader::response::MemoryDetails::memorySize
int64_t memorySize
Definition: Bootloader.hpp:420
dai::bootloader::response::BootApplication
Definition: Bootloader.hpp:354
dai::bootloader::response::NoOp
Definition: Bootloader.hpp:438
dai::bootloader::request::GetApplicationDetails::NAME
static constexpr const char * NAME
Definition: Bootloader.hpp:234
dai::bootloader::response::BootloaderVersion
Definition: Bootloader.hpp:303
dai::bootloader::request::BaseRequest::cmd
Command cmd
Definition: Bootloader.hpp:42
dai::bootloader::request::GetBootloaderCommit::VERSION
static constexpr const char * VERSION
Definition: Bootloader.hpp:188
dai::bootloader::request::GetApplicationDetails::memory
Memory memory
Definition: Bootloader.hpp:231
dai::bootloader::response::FlashStatusUpdate
Definition: Bootloader.hpp:293
dai::bootloader::request::GetBootloaderCommit::NAME
static constexpr const char * NAME
Definition: Bootloader.hpp:189
dai::bootloader::response::FLASH_STATUS_UPDATE
@ FLASH_STATUS_UPDATE
Definition: Bootloader.hpp:262
dai::bootloader::request::UpdateFlashBootHeader::FAST
@ FAST
Definition: Bootloader.hpp:199
dai::bootloader::request::GetMemoryDetails
Definition: Bootloader.hpp:237
dai::bootloader::request::UpdateFlash::totalSize
uint32_t totalSize
Definition: Bootloader.hpp:70
dai::bootloader::request::BOOTLOADER_MEMORY
@ BOOTLOADER_MEMORY
Definition: Bootloader.hpp:31
dai::bootloader::response::BootloaderMemory::memory
Memory memory
Definition: Bootloader.hpp:348
dai::bootloader::request::UpdateFlashEx::memory
Memory memory
Definition: Bootloader.hpp:107
dai::bootloader::Type::AUTO
@ AUTO
dai::bootloader::response::ApplicationDetails::firmwareVersionStr
char firmwareVersionStr[256]
Definition: Bootloader.hpp:405
dai::bootloader::request::BootApplication
Definition: Bootloader.hpp:53
dai::bootloader::Section::AUTO
@ AUTO
dai::bootloader::request::UpdateFlashEx::NAME
static constexpr const char * NAME
Definition: Bootloader.hpp:113
dai::bootloader::response::BootloaderType
Definition: Bootloader.hpp:316
dai::bootloader::response::BaseResponse::cmd
Command cmd
Definition: Bootloader.hpp:278
dai::bootloader::request::GET_MEMORY_DETAILS
@ GET_MEMORY_DETAILS
Definition: Bootloader.hpp:36
dai::bootloader::response::READ_FLASH
@ READ_FLASH
Definition: Bootloader.hpp:269
dai::bootloader::request::UpdateFlashEx2::totalSize
uint32_t totalSize
Definition: Bootloader.hpp:124
dai::bootloader::response::BootloaderMemory::BootloaderMemory
BootloaderMemory()
Definition: Bootloader.hpp:345
dai::bootloader::request::GetBootloaderConfig::NAME
static constexpr const char * NAME
Definition: Bootloader.hpp:169
dai::bootloader::response::BootloaderCommit
Definition: Bootloader.hpp:367
dai::bootloader::response::FlashComplete::NAME
static constexpr const char * NAME
Definition: Bootloader.hpp:291
dai::bootloader::response::ApplicationDetails::hasFirmwareVersion
uint32_t hasFirmwareVersion
Definition: Bootloader.hpp:403
dai::bootloader::response::APPLICATION_DETAILS
@ APPLICATION_DETAILS
Definition: Bootloader.hpp:270
dai::bootloader::response::BootApplication::success
uint32_t success
Definition: Bootloader.hpp:359
dai::bootloader::response::IsUserBootloader::IsUserBootloader
IsUserBootloader()
Definition: Bootloader.hpp:429
dai::bootloader::response::FlashComplete::success
uint32_t success
Definition: Bootloader.hpp:287
dai::bootloader::response::GetBootloaderConfig::numPackets
uint32_t numPackets
Definition: Bootloader.hpp:337
dai::bootloader::request::UpdateFlash::NAME
static constexpr const char * NAME
Definition: Bootloader.hpp:74
dai::bootloader::request::UpdateFlash::numPackets
uint32_t numPackets
Definition: Bootloader.hpp:71
dai::bootloader::request::UpdateFlashBootHeader::dummyCycles
int32_t dummyCycles
Definition: Bootloader.hpp:204
dai::bootloader::request::GET_BOOTLOADER_VERSION
@ GET_BOOTLOADER_VERSION
Definition: Bootloader.hpp:23
dai::bootloader::response::IsUserBootloader::isUserBootloader
uint32_t isUserBootloader
Definition: Bootloader.hpp:432
dai::bootloader::response::BootloaderVersion::major
uint32_t major
Definition: Bootloader.hpp:308
dai::bootloader::request::SET_BOOTLOADER_CONFIG
@ SET_BOOTLOADER_CONFIG
Definition: Bootloader.hpp:29
dai::bootloader::request::UpdateFlashBootHeader::VERSION
static constexpr const char * VERSION
Definition: Bootloader.hpp:209
dai::bootloader::request::SetBootloaderConfig::memory
Memory memory
Definition: Bootloader.hpp:149
dai::bootloader::request::UsbRomBoot::VERSION
static constexpr auto VERSION
Definition: Bootloader.hpp:50
dai::bootloader::response::ReadFlash::ReadFlash
ReadFlash()
Definition: Bootloader.hpp:381
dai::bootloader::response::IsUserBootloader::VERSION
static constexpr const char * VERSION
Definition: Bootloader.hpp:434
dai::bootloader::response::GetBootloaderConfig
Definition: Bootloader.hpp:329
dai::bootloader::request::BaseRequest::BaseRequest
BaseRequest(Command command)
Definition: Bootloader.hpp:41
dai::bootloader::request::ReadFlash
Definition: Bootloader.hpp:213
dai::bootloader::response::BootApplication::BootApplication
BootApplication()
Definition: Bootloader.hpp:356
dai::bootloader::request::IsUserBootloader::IsUserBootloader
IsUserBootloader()
Definition: Bootloader.hpp:250
dai::bootloader::request::GetBootloaderVersion
Definition: Bootloader.hpp:78
dai::bootloader::request::IsUserBootloader::VERSION
static constexpr const char * VERSION
Definition: Bootloader.hpp:252
dai::bootloader::request::GetBootloaderType::NAME
static constexpr const char * NAME
Definition: Bootloader.hpp:139
dai::bootloader::request::UpdateFlashEx2::memory
Memory memory
Definition: Bootloader.hpp:122
dai::bootloader::response::ApplicationDetails
Definition: Bootloader.hpp:395
dai::bootloader::request::GET_BOOTLOADER_TYPE
@ GET_BOOTLOADER_TYPE
Definition: Bootloader.hpp:28
dai::bootloader::response::MemoryDetails::memory
Memory memory
Definition: Bootloader.hpp:419
dai::bootloader::response::GetBootloaderConfig::NAME
static constexpr const char * NAME
Definition: Bootloader.hpp:340
dai::bootloader::Section
Section
Definition: Section.hpp:11
dai::bootloader::request::UpdateFlashBootHeader::Type
Type
Definition: Bootloader.hpp:199
dai::bootloader::request::GetMemoryDetails::VERSION
static constexpr const char * VERSION
Definition: Bootloader.hpp:244
dai::bootloader::response::BOOTLOADER_TYPE
@ BOOTLOADER_TYPE
Definition: Bootloader.hpp:264
dai::bootloader::response::ApplicationDetails::VERSION
static constexpr const char * VERSION
Definition: Bootloader.hpp:408
dai::bootloader::response::GetBootloaderConfig::GetBootloaderConfig
GetBootloaderConfig()
Definition: Bootloader.hpp:331
dai::bootloader::response::FlashStatusUpdate::FlashStatusUpdate
FlashStatusUpdate()
Definition: Bootloader.hpp:295
dai::bootloader::request::GetBootloaderConfig::maxSize
uint32_t maxSize
Definition: Bootloader.hpp:166
dai::bootloader::response::IsUserBootloader::NAME
static constexpr const char * NAME
Definition: Bootloader.hpp:435
dai::bootloader::request::GetApplicationDetails::GetApplicationDetails
GetApplicationDetails()
Definition: Bootloader.hpp:228
dai::bootloader::request::UpdateFlashEx::numPackets
uint32_t numPackets
Definition: Bootloader.hpp:110
dai::bootloader::request::GetBootloaderConfig::memory
Memory memory
Definition: Bootloader.hpp:164
dai::bootloader::request::GET_APPLICATION_DETAILS
@ GET_APPLICATION_DETAILS
Definition: Bootloader.hpp:35
dai::bootloader::request::GetApplicationDetails::VERSION
static constexpr const char * VERSION
Definition: Bootloader.hpp:233
dai::bootloader::response::BOOTLOADER_MEMORY
@ BOOTLOADER_MEMORY
Definition: Bootloader.hpp:266
dai::bootloader::response::BOOTLOADER_COMMIT
@ BOOTLOADER_COMMIT
Definition: Bootloader.hpp:268
Memory.hpp
dai::bootloader::response::BOOTLOADER_VERSION
@ BOOTLOADER_VERSION
Definition: Bootloader.hpp:263
dai::bootloader::request::GetBootloaderType
Definition: Bootloader.hpp:132
dai::bootloader::request::GetMemoryDetails::NAME
static constexpr const char * NAME
Definition: Bootloader.hpp:245
dai::bootloader::request::UpdateFlashBootHeader::GPIO_MODE
@ GPIO_MODE
Definition: Bootloader.hpp:199
dai::bootloader::request::BootMemory::VERSION
static constexpr const char * VERSION
Definition: Bootloader.hpp:97
dai::bootloader::response::GET_BOOTLOADER_CONFIG
@ GET_BOOTLOADER_CONFIG
Definition: Bootloader.hpp:265
dai::bootloader::request::NO_OP
@ NO_OP
Definition: Bootloader.hpp:27
dai::bootloader::request::UpdateFlashEx::totalSize
uint32_t totalSize
Definition: Bootloader.hpp:109
dai::bootloader::request::SetBootloaderConfig::VERSION
static constexpr const char * VERSION
Definition: Bootloader.hpp:155
dai::bootloader::request::UpdateFlash::VERSION
static constexpr const char * VERSION
Definition: Bootloader.hpp:73
dai::bootloader::request::GET_BOOTLOADER_COMMIT
@ GET_BOOTLOADER_COMMIT
Definition: Bootloader.hpp:32
dai::bootloader::response::MemoryDetails::MemoryDetails
MemoryDetails()
Definition: Bootloader.hpp:415
dai::bootloader::request::UPDATE_FLASH_EX
@ UPDATE_FLASH_EX
Definition: Bootloader.hpp:25
dai::bootloader::response::BootloaderVersion::BootloaderVersion
BootloaderVersion()
Definition: Bootloader.hpp:305
dai::bootloader::response::ApplicationDetails::errorMsg
char errorMsg[64]
Definition: Bootloader.hpp:401
dai::bootloader::response::NoOp::VERSION
static constexpr const char * VERSION
Definition: Bootloader.hpp:444
dai::bootloader::request::SetBootloaderConfig::NAME
static constexpr const char * NAME
Definition: Bootloader.hpp:156
dai::bootloader::request::SetBootloaderConfig::offset
int64_t offset
Definition: Bootloader.hpp:150
dai::bootloader::request::UpdateFlashEx2
Definition: Bootloader.hpp:117
dai::bootloader::request::UpdateFlashBootHeader::type
Type type
Definition: Bootloader.hpp:201
dai::bootloader::response::MemoryDetails
Definition: Bootloader.hpp:413
dai::bootloader::request::UPDATE_FLASH
@ UPDATE_FLASH
Definition: Bootloader.hpp:22
dai::bootloader::request::GetMemoryDetails::GetMemoryDetails
GetMemoryDetails()
Definition: Bootloader.hpp:239
dai::bootloader::request::UpdateFlashBootHeader::UpdateFlashBootHeader
UpdateFlashBootHeader()
Definition: Bootloader.hpp:196
dai::bootloader::request::BootMemory::BootMemory
BootMemory()
Definition: Bootloader.hpp:91
dai::bootloader::request::UpdateFlash::storage
Storage storage
Definition: Bootloader.hpp:69
dai::bootloader::response::ApplicationDetails::hasApplicationName
uint32_t hasApplicationName
Definition: Bootloader.hpp:404
dai::bootloader::response::FlashStatusUpdate::progress
float progress
Definition: Bootloader.hpp:298
dai::bootloader::request::GetBootloaderConfig::offset
int64_t offset
Definition: Bootloader.hpp:165
dai::bootloader::request::BootApplication::VERSION
static constexpr const char * VERSION
Definition: Bootloader.hpp:59
dai::bootloader::request::UpdateFlash
Definition: Bootloader.hpp:63
dai::bootloader::request::UpdateFlashEx
Definition: Bootloader.hpp:102
dai::bootloader::request::UPDATE_FLASH_EX_2
@ UPDATE_FLASH_EX_2
Definition: Bootloader.hpp:26
dai::bootloader::response::GetBootloaderConfig::VERSION
static constexpr const char * VERSION
Definition: Bootloader.hpp:339
dai::bootloader::response::BootloaderType::NAME
static constexpr const char * NAME
Definition: Bootloader.hpp:324
dai::bootloader::request::BootMemory::totalSize
uint32_t totalSize
Definition: Bootloader.hpp:94
dai
Definition: CameraExposureOffset.hpp:6
dai::bootloader::request::SetBootloaderConfig
Definition: Bootloader.hpp:144
dai::bootloader::request::BOOT_MEMORY
@ BOOT_MEMORY
Definition: Bootloader.hpp:24
dai::bootloader::response::MEMORY_DETAILS
@ MEMORY_DETAILS
Definition: Bootloader.hpp:271
dai::bootloader::response::ApplicationDetails::NAME
static constexpr const char * NAME
Definition: Bootloader.hpp:409
dai::bootloader::response::BOOT_APPLICATION
@ BOOT_APPLICATION
Definition: Bootloader.hpp:267
dai::bootloader::request::GetBootloaderConfig::VERSION
static constexpr const char * VERSION
Definition: Bootloader.hpp:168
dai::bootloader::response::BootloaderMemory
Definition: Bootloader.hpp:343
dai::bootloader::response::BootloaderCommit::VERSION
static constexpr const char * VERSION
Definition: Bootloader.hpp:374
dai::bootloader::request::BaseRequest
Definition: Bootloader.hpp:40
dai::bootloader::response::BootloaderCommit::NAME
static constexpr const char * NAME
Definition: Bootloader.hpp:375
dai::bootloader::response::IsUserBootloader
Definition: Bootloader.hpp:427
dai::bootloader::request::UpdateFlashEx2::NAME
static constexpr const char * NAME
Definition: Bootloader.hpp:128
dai::bootloader::response::GetBootloaderConfig::errorMsg
char errorMsg[64]
Definition: Bootloader.hpp:335
dai::bootloader::response::BootloaderMemory::NAME
static constexpr const char * NAME
Definition: Bootloader.hpp:351
dai::bootloader::response::BootloaderVersion::patch
uint32_t patch
Definition: Bootloader.hpp:310


depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:18