mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-11-04 12:59:07 +01:00
Add bootloader extension
This commit is contained in:
committed by
Kyle Schwarz
parent
4db27aa187
commit
6ac041cadc
@@ -0,0 +1,32 @@
|
||||
#ifndef __BOOTLOADER_VERSION_H_
|
||||
#define __BOOTLOADER_VERSION_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
|
||||
namespace icsneo {
|
||||
|
||||
namespace Bootloader {
|
||||
|
||||
/**
|
||||
* Tracks the Vehicle Spy 3 version that a firmware
|
||||
* package is intended for.
|
||||
*/
|
||||
struct FirmwareSourceVersion {
|
||||
using ValueType = uint8_t;
|
||||
ValueType major = 0;
|
||||
ValueType minor = 0;
|
||||
ValueType release = 0;
|
||||
ValueType build = 0;
|
||||
bool load(const std::string& toParse);
|
||||
};
|
||||
|
||||
} // namespace Bootloader
|
||||
|
||||
} // namespace icsneo
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
#endif // __BOOTLOADER_VERSION_H_
|
||||
Reference in New Issue
Block a user