boo/lib/inputdev/IHIDDevice.hpp

27 lines
756 B
C++
Raw Normal View History

2015-04-19 20:16:50 +00:00
#ifndef IHIDDEVICE_HPP
#define IHIDDEVICE_HPP
2015-08-18 22:43:30 +00:00
#include "boo/inputdev/DeviceToken.hpp"
2017-05-07 21:24:00 +00:00
#include "boo/inputdev/DeviceBase.hpp"
2015-04-29 10:24:39 +00:00
namespace boo
{
2015-04-19 22:52:45 +00:00
class IHIDDevice
{
2015-08-18 19:40:26 +00:00
friend class DeviceBase;
friend struct DeviceSignature;
2015-04-22 21:48:23 +00:00
virtual void _deviceDisconnected()=0;
2015-05-10 07:02:18 +00:00
virtual bool _sendUSBInterruptTransfer(const uint8_t* data, size_t length)=0;
virtual size_t _receiveUSBInterruptTransfer(uint8_t* data, size_t length)=0;
2017-05-07 21:24:00 +00:00
virtual bool _sendHIDReport(const uint8_t* data, size_t length, HIDReportType tp, uint32_t message)=0;
virtual size_t _receiveHIDReport(uint8_t* data, size_t length, HIDReportType tp, uint32_t message)=0;
virtual void _startThread()=0;
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