5#include "redux/sensors/canandmag/CanandmagFaults.h"
6#include "redux/sensors/canandmag/CanandmagStatus.h"
7#include "wpi/struct/Struct.h"
16 return "struct:CanandmagFaults";
19 static constexpr size_t GetSize() {
return 1; }
25 "bool can_id_conflict:1;"
26 "bool can_general_error:1;"
27 "bool out_of_temperature_range:1;"
28 "bool hardware_fault:1;"
29 "bool magnet_out_of_range:1;"
39 static ::redux::sensors::canandmag::CanandmagFaults
Unpack(std::span<const uint8_t> data);
44 static void Pack(std::span<uint8_t> data,
45 const ::redux::sensors::canandmag::CanandmagFaults& value);
53 return "struct:CanandmagStatus";
56 static constexpr size_t GetSize() {
return 10; }
60 "CanandmagFaults active_faults;"
61 "CanandmagFaults sticky_faults;"
70 static ::redux::sensors::canandmag::CanandmagStatus
Unpack(std::span<const uint8_t> data);
75 static void Pack(std::span<uint8_t> data,
76 const ::redux::sensors::canandmag::CanandmagStatus& value);
81 std::invocable<std::string_view, std::string_view>
auto fn) {
82 wpi::ForEachStructSchema<::redux::sensors::canandmag::CanandmagFaults>(fn);
87static_assert(wpi::StructSerializable<::redux::sensors::canandmag::CanandmagStatus>);
88static_assert(wpi::StructSerializable<::redux::sensors::canandmag::CanandmagFaults>);
89static_assert(wpi::HasNestedStruct<::redux::sensors::canandmag::CanandmagStatus>);
Definition: CanandmagFaults.h:13
Definition: CanandmagStatus.h:13
static constexpr size_t GetSize()
Definition: CanandmagStruct.h:19
static constexpr std::string_view GetSchema()
Definition: CanandmagStruct.h:22
static constexpr std::string_view GetTypeString()
Definition: CanandmagStruct.h:15
static void Pack(std::span< uint8_t > data, const ::redux::sensors::canandmag::CanandmagFaults &value)
::redux::sensors::canandmag::CanandmagFaults Unpack(std::span< const uint8_t > data)
::redux::sensors::canandmag::CanandmagStatus Unpack(std::span< const uint8_t > data)
static constexpr size_t GetSize()
Definition: CanandmagStruct.h:56
static constexpr std::string_view GetSchema()
Definition: CanandmagStruct.h:58
static void Pack(std::span< uint8_t > data, const ::redux::sensors::canandmag::CanandmagStatus &value)
static constexpr std::string_view GetTypeString()
Definition: CanandmagStruct.h:52
static void ForEachNested(std::invocable< std::string_view, std::string_view > auto fn)
Definition: CanandmagStruct.h:80