2015-04-19 20:16:50 +00:00
|
|
|
#ifndef IHIDDEVICE_HPP
|
|
|
|
#define IHIDDEVICE_HPP
|
|
|
|
|
2015-04-21 04:02:43 +00:00
|
|
|
#include "inputdev/CDeviceToken.hpp"
|
2015-04-29 10:24:39 +00:00
|
|
|
|
|
|
|
namespace boo
|
|
|
|
{
|
2015-04-21 04:02:43 +00:00
|
|
|
|
2015-04-19 22:52:45 +00:00
|
|
|
class IHIDDevice
|
|
|
|
{
|
2015-04-29 10:24:39 +00:00
|
|
|
friend class CDeviceBase;
|
2015-04-22 21:48:23 +00:00
|
|
|
virtual void _deviceDisconnected()=0;
|
2015-04-30 23:17:46 +00:00
|
|
|
virtual bool _sendUSBInterruptTransfer(uint8_t pipe, const uint8_t* data, size_t length)=0;
|
|
|
|
virtual size_t _receiveUSBInterruptTransfer(uint8_t pipe, uint8_t* data, size_t length)=0;
|
|
|
|
virtual bool _sendHIDReport(const uint8_t* data, size_t length)=0;
|
2015-04-23 00:46:32 +00:00
|
|
|
public:
|
2015-05-04 04:28:07 +00:00
|
|
|
inline virtual ~IHIDDevice() {}
|
2015-04-19 22:52:45 +00:00
|
|
|
};
|
2015-04-19 20:16:50 +00:00
|
|
|
|
2015-04-29 10:24:39 +00:00
|
|
|
}
|
|
|
|
|
2015-04-19 20:16:50 +00:00
|
|
|
#endif // IHIDDEVICE_HPP
|