wut  v1.7.0
Wii U Toolchain
hid.h
Go to the documentation of this file.
1 #pragma once
2 #include <wut.h>
3 #include <coreinit/ios.h>
4 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 typedef struct CCRHIDReport CCRHIDReport;
17 
18 struct WUT_PACKED CCRHIDReport
19 {
20  WUT_UNKNOWN_BYTES(0x80);
21 };
22 WUT_CHECK_SIZE(CCRHIDReport, 0x80);
23 
39 int32_t
40 CCRHIDStart(uint32_t drcSlot,
41  CCRHIDReport *reportsBuffer,
42  uint32_t numReports,
43  IOSAsyncCallbackFn callback,
44  void *arg);
45 
55 int32_t
56 CCRHIDStop(uint32_t drcSlot,
57  IOSAsyncCallbackFn callback,
58  void *arg);
59 
60 int32_t
61 CCRHIDGetData(uint32_t drcSlot,
62  CCRHIDReport *reportData);
63 
64 int32_t
65 CCRHIDGetBufferedData(uint32_t drcSlot,
66  CCRHIDReport *reportData);
67 
68 int32_t
70  uint32_t *firmwareVersion);
71 
72 int32_t
74  uint32_t *sequence);
75 
76 #ifdef __cplusplus
77 }
78 #endif
79 
void(* IOSAsyncCallbackFn)(IOSError, void *)
Definition: ios.h:87
int32_t CCRHIDGetSequence(CCRHIDReport *report, uint32_t *sequence)
int32_t CCRHIDStop(uint32_t drcSlot, IOSAsyncCallbackFn callback, void *arg)
Stop HID report transmission.
int32_t CCRHIDGetData(uint32_t drcSlot, CCRHIDReport *reportData)
int32_t CCRHIDStart(uint32_t drcSlot, CCRHIDReport *reportsBuffer, uint32_t numReports, IOSAsyncCallbackFn callback, void *arg)
Start transmission of HID reports from the specified DRC.
int32_t CCRHIDGetBufferedData(uint32_t drcSlot, CCRHIDReport *reportData)
int32_t CCRHIDGetFirmwareVersion(CCRHIDReport *report, uint32_t *firmwareVersion)