Define Switch2 commands

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
Joey Yakimowich-Payne 2026-08-11 12:23:07 +09:00
commit 1b65893a69

20
switch2_commands.h Normal file
View file

@ -0,0 +1,20 @@
#pragma once
#include <cstddef>
#include <cstdint>
enum class Switch2VendorCommand {
Unsupported,
SelectReport05,
SelectReport09,
InitializeUsb,
};
Switch2VendorCommand switch2_classify_vendor_request(
const uint8_t* data,
std::size_t length);
std::size_t switch2_build_vendor_response(
Switch2VendorCommand command,
uint8_t* output,
std::size_t capacity);