12 lines
226 B
C++
12 lines
226 B
C++
#pragma once
|
|
#include <cstdint>
|
|
#include <span>
|
|
#include "usb_cdc.h"
|
|
|
|
struct handler_entry {
|
|
int8_t type_id;
|
|
void (*handle)(usb_cdc&, uint32_t);
|
|
};
|
|
|
|
[[noreturn]] void dispatch(std::span<const handler_entry> handlers);
|