MACRAW IP stack with ARP/ICMP, stable device ordering, LED blink on test

This commit is contained in:
Ian Gulliver
2026-04-07 07:34:24 +09:00
parent 642e2ff318
commit 46db2fd966
7 changed files with 213 additions and 50 deletions

View File

@@ -1,9 +1,9 @@
#pragma once
#include <cstdint>
#include <functional>
#include <span>
#include <vector>
#include "wire.h"
#include "w6300.h"
using handler_fn = std::vector<std::vector<uint8_t>> (*)(uint32_t message_id, std::span<const uint8_t> payload);
@@ -26,5 +26,5 @@ std::vector<std::vector<uint8_t>> typed_handler(uint32_t message_id, std::span<c
}
void dispatch_init();
[[noreturn]] void dispatch_run(std::span<const handler_entry> handlers,
std::span<const w6300::socket_id> sockets = {});
void dispatch_schedule_ms(uint32_t ms, std::function<void()> fn);
[[noreturn]] void dispatch_run(std::span<const handler_entry> handlers);