2026-04-06 17:36:41 +09:00
|
|
|
#pragma once
|
|
|
|
|
#include <cstdint>
|
|
|
|
|
#include <span>
|
|
|
|
|
#include "usb_cdc.h"
|
|
|
|
|
|
|
|
|
|
struct handler_entry {
|
|
|
|
|
int8_t type_id;
|
|
|
|
|
void (*handle)(usb_cdc&, uint32_t);
|
|
|
|
|
};
|
|
|
|
|
|
2026-04-06 20:01:22 +09:00
|
|
|
void dispatch_init();
|
|
|
|
|
[[noreturn]] void dispatch_run(std::span<const handler_entry> handlers);
|