MDM166AA: Clock and Clear adjustments.
11 const int KMaxHidStringChar=256;
14 TODO: move to another header
22 int Open(const char* aPath);
23 int Open(unsigned short aVendorId, unsigned short aProductId, const wchar_t* aSerialNumber);
27 int SetNonBlocking(int aNonBlocking);
30 int Read(HidReport<S>& aInputReport);
33 int Write(const HidReport<S>& aOutputReport);
35 const wchar_t* Error();
39 wchar_t* SerialNumber();
46 hid_device* iHidDevice;
48 wchar_t iVendor[KMaxHidStringChar];
49 wchar_t iProduct[KMaxHidStringChar];
50 wchar_t iSerialNumber[KMaxHidStringChar];
57 int HidDevice::Write(const HidReport<S>& aOutputReport)
59 return hid_write(iHidDevice,aOutputReport.Buffer(),S);
65 int HidDevice::Read(HidReport<S>& aInputReport)
67 return hid_read(iHidDevice,aInputReport.Buffer(),S);