switch-pico/switch2_commands.h
Joey Yakimowich-Payne 1b65893a69 Define Switch2 commands
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-08-11 12:23:07 +09:00

20 lines
397 B
C++

#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);