boo/src/inputdev/IHIDDevice.hpp

23 lines
531 B
C++
Raw Normal View History

2015-04-19 20:16:50 +00:00
#ifndef IHIDDEVICE_HPP
#define IHIDDEVICE_HPP
#include "inputdev/CDeviceToken.hpp"
2015-04-29 10:24:39 +00:00
namespace boo
{
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;
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;
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