Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
20 lines
397 B
C++
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);
|