From 47efb352c964a13bf93b6b44c3c763c2320d295e Mon Sep 17 00:00:00 2001 From: Martino Facchin Date: Wed, 1 Jul 2015 16:58:26 +0200 Subject: rework HID class functions scopes --- libraries/HID/HID.cpp | 2 +- libraries/HID/HID.h | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) (limited to 'libraries/HID') 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 -- cgit v1.2.3-18-g5258