From 697edd3b69742d68b180c0512a4f5a1d1fc92295 Mon Sep 17 00:00:00 2001 From: Maschell Date: Tue, 19 Jun 2018 21:12:25 +0200 Subject: [PATCH] Add WPADInit,WPADSetAutoSleepTime and WPADDisconnect --- include/padscore/wpad.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/include/padscore/wpad.h b/include/padscore/wpad.h index 5c22f57..e5e7e6d 100644 --- a/include/padscore/wpad.h +++ b/include/padscore/wpad.h @@ -139,6 +139,12 @@ typedef void (*WPADSamplingCallback)(WPADChan chan); typedef void (*WPADExtensionCallback)(WPADChan chan, int32_t status); typedef void (*WPADConnectCallback)(WPADChan chan, int32_t status); +void +WPADInit(); + +void +WPADShutdown(); + int32_t WPADProbe(WPADChan chan, WPADExtensionType *outExtensionType); @@ -157,6 +163,12 @@ void WPADRead(WPADChan chan, void *data); +void +WPADSetAutoSleepTime(uint8_t time); + +void +WPADDisconnect(WPADChan chan); + WPADConnectCallback WPADSetConnectCallback(WPADChan chan, WPADConnectCallback callback);