boo/lib/inputdev/IHIDDevice.hpp

23 lines
501 B
C++

#ifndef IHIDDEVICE_HPP
#define IHIDDEVICE_HPP
#include "inputdev/DeviceToken.hpp"
namespace boo
{
class IHIDDevice
{
friend class DeviceBase;
virtual void _deviceDisconnected()=0;
virtual bool _sendUSBInterruptTransfer(const uint8_t* data, size_t length)=0;
virtual size_t _receiveUSBInterruptTransfer(uint8_t* data, size_t length)=0;
virtual bool _sendHIDReport(const uint8_t* data, size_t length)=0;
public:
inline virtual ~IHIDDevice() {}
};
}
#endif // IHIDDEVICE_HPP