mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-11-04 12:59:07 +01:00
33 lines
555 B
C++
33 lines
555 B
C++
#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_
|