diff options
author | Martino Facchin <m.facchin@arduino.cc> | 2015-07-01 16:58:26 +0200 |
---|---|---|
committer | Cristian Maglie <c.maglie@arduino.cc> | 2015-07-16 13:13:52 +0200 |
commit | 47efb352c964a13bf93b6b44c3c763c2320d295e (patch) | |
tree | 397bae09e9c3b5aedb31cc26e2ab505d2b9da3c4 | |
parent | 3cf30dff259cb8d902880934631ef332782f9a12 (diff) |
rework HID class functions scopes
-rw-r--r-- | libraries/HID/HID.cpp | 2 | ||||
-rw-r--r-- | libraries/HID/HID.h | 7 |
2 files changed, 2 insertions, 7 deletions
diff --git a/libraries/HID/HID.cpp b/libraries/HID/HID.cpp index e75a6f5..f18e069 100644 --- a/libraries/HID/HID.cpp +++ b/libraries/HID/HID.cpp @@ -66,7 +66,7 @@ int HID_GetDescriptor(int8_t t) } } -void HID_SendReport(u8 id, const void* data, int len) +void HID_::SendReport(u8 id, const void* data, int len) { USB_Send(HID_TX, &id, 1); USB_Send(HID_TX | TRANSFER_RELEASE,data,len); diff --git a/libraries/HID/HID.h b/libraries/HID/HID.h index 5bd137c..d3a9982 100644 --- a/libraries/HID/HID.h +++ b/libraries/HID/HID.h @@ -47,14 +47,9 @@ class HID_ public: HID_(void); int begin(void); + void SendReport(uint8_t id, const void* data, int len); }; -int8_t HID_Plug(void); -int HID_GetInterface(u8* interfaceNum); -int HID_GetDescriptor(int8_t t); -bool HID_Setup(Setup& setup, u8 i); -void HID_SendReport(uint8_t id, const void* data, int len); - extern HID_ HID; typedef struct |