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:
parent
1a6859855e
commit
1b65893a69
1 changed files with 20 additions and 0 deletions
20
switch2_commands.h
Normal file
20
switch2_commands.h
Normal 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);
|
||||||
Loading…
Add table
Add a link
Reference in a new issue