mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Send Report added to hiduniversal
This commit is contained in:
parent
64e3f92700
commit
4ccbea7f36
2 changed files with 9 additions and 0 deletions
|
@ -418,3 +418,9 @@ uint8_t HIDUniversal::Poll() {
|
|||
}
|
||||
return rcode;
|
||||
}
|
||||
|
||||
|
||||
//Send a report to interrupt out endpoint. This is NOT SetReport() request!
|
||||
uint8_t HIDUniversal::SndRpt(uint16_t nbytes, uint8_t *dataptr) {
|
||||
return pUsb->outTransfer(bAddress, epInfo[epInterruptOutIndex].epAddr, nbytes, dataptr);
|
||||
}
|
|
@ -100,6 +100,9 @@ public:
|
|||
|
||||
// UsbConfigXtracter implementation
|
||||
virtual void EndpointXtract(uint8_t conf, uint8_t iface, uint8_t alt, uint8_t proto, const USB_ENDPOINT_DESCRIPTOR *ep);
|
||||
|
||||
//Send report - do not mix with SetReport()!
|
||||
uint8_t SndRpt(uint16_t nbytes, uint8_t *dataptr);
|
||||
};
|
||||
|
||||
#endif // __HIDUNIVERSAL_H__
|
||||
|
|
Loading…
Reference in a new issue