mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-03 12:27:21 +12:00
[Y2R] Add more service calls
This commit is contained in:
parent
ef6cc56182
commit
ba8a610e7b
2 changed files with 61 additions and 0 deletions
|
@ -17,11 +17,29 @@ class Y2RService {
|
|||
std::optional<Handle> transferEndEvent;
|
||||
bool transferEndInterruptEnabled;
|
||||
|
||||
enum class BusyStatus : u32 {
|
||||
NotBusy = 0,
|
||||
Busy = 1
|
||||
};
|
||||
|
||||
enum class InputFormat : u32 {
|
||||
YUV422_Individual8 = 0,
|
||||
YUV420_Individual8 = 1,
|
||||
YUV422_Individual16 = 2,
|
||||
YUV420_Individual16 = 3,
|
||||
YUV422_Batch = 4,
|
||||
};
|
||||
|
||||
InputFormat inputFmt;
|
||||
|
||||
// Service commands
|
||||
void driverInitialize(u32 messagePointer);
|
||||
void isBusyConversion(u32 messagePointer);
|
||||
void pingProcess(u32 messagePointer);
|
||||
void setTransferEndInterrupt(u32 messagePointer);
|
||||
void getTransferEndEvent(u32 messagePointer);
|
||||
void setInputFormat(u32 messagePointer);
|
||||
void stopConversion(u32 messagePointer);
|
||||
|
||||
public:
|
||||
Y2RService(Memory& mem, Kernel& kernel) : mem(mem), kernel(kernel) {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue