From 1b65893a69ba0ab2f908a97c85e9468a322aa1f7 Mon Sep 17 00:00:00 2001 From: Joey Yakimowich-Payne Date: Tue, 11 Aug 2026 12:23:07 +0900 Subject: [PATCH] Define Switch2 commands Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus --- switch2_commands.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 switch2_commands.h diff --git a/switch2_commands.h b/switch2_commands.h new file mode 100644 index 0000000..bd2cfcd --- /dev/null +++ b/switch2_commands.h @@ -0,0 +1,20 @@ +#pragma once + +#include +#include + +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);