HardFOC Vortex V1 HAL
Unified HAL API for the HardFOC Vortex motor-control platform (ESP32-C6, TMC9660)
Loading...
Searching...
No Matches
VortexVersionManifest.h
Go to the documentation of this file.
1
12#ifndef VORTEX_VERSION_MANIFEST_H_
13#define VORTEX_VERSION_MANIFEST_H_
14
15#include <cstddef>
16
17namespace vortex_version {
18
19struct Entry {
20 const char* name;
21 const char* version;
22 const char* git_sha;
23};
24
25struct EntrySpan {
26 const Entry* data;
27 std::size_t size;
28
29 constexpr const Entry* begin() const noexcept { return data; }
30 constexpr const Entry* end() const noexcept { return data + size; }
31};
32
33EntrySpan GetHalManifest() noexcept;
34const char* GetHalBuildStamp() noexcept;
35
36} // namespace vortex_version
37
38#endif // VORTEX_VERSION_MANIFEST_H_
Definition VortexVersionManifest.cpp:38
const char * GetHalBuildStamp() noexcept
Definition VortexVersionManifest.cpp:73
EntrySpan GetHalManifest() noexcept
Definition VortexVersionManifest.cpp:69
Definition VortexVersionManifest.h:19
const char * version
Definition VortexVersionManifest.h:21
const char * name
Definition VortexVersionManifest.h:20
const char * git_sha
Definition VortexVersionManifest.h:22
Definition VortexVersionManifest.h:25
std::size_t size
Definition VortexVersionManifest.h:27
constexpr const Entry * end() const noexcept
Definition VortexVersionManifest.h:30
const Entry * data
Definition VortexVersionManifest.h:26
constexpr const Entry * begin() const noexcept
Definition VortexVersionManifest.h:29