Add RequestInfo/ResponseInfo with MAC address

This commit is contained in:
Ian Gulliver
2026-04-04 15:00:16 +09:00
parent 46af5becfe
commit d2b9a2e2aa
6 changed files with 67 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
#pragma once
#include <array>
#include <cstdint>
#include <string>
#include <tuple>
@@ -16,6 +17,19 @@ struct RequestPICOBOOT {
auto as_tuple() { return std::tie(); }
};
struct RequestInfo {
static constexpr int8_t ext_id = 4;
auto as_tuple() const { return std::tie(); }
auto as_tuple() { return std::tie(); }
};
struct ResponseInfo {
static constexpr int8_t ext_id = 5;
std::array<uint8_t, 6> mac;
auto as_tuple() const { return std::tie(mac); }
auto as_tuple() { return std::tie(mac); }
};
struct DeviceError {
static constexpr int8_t ext_id = 3;
uint32_t code;