Device: Implement version handling

This commit is contained in:
Paul Hollinsky
2021-05-05 02:17:38 -04:00
parent 8be3bbaee5
commit 595cc36545
12 changed files with 183 additions and 1 deletions
+24
View File
@@ -0,0 +1,24 @@
#ifndef __DEVICEVERSION_H_
#define __DEVICEVERSION_H_
#ifdef __cplusplus
#include "icsneo/platform/optional.h"
#include <cstdint>
#include <array>
namespace icsneo {
struct DeviceAppVersion {
uint8_t major = 0;
uint8_t minor = 0;
bool operator!=(const DeviceAppVersion& rhs) const { return major != rhs.major || minor != rhs.minor; }
};
} // namespace icsneo
#endif // __cplusplus
#endif