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