git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Modules/USB - Cleaning up protocol code, working on device API
[tpg/acess2.git]
/
Modules
/
USB
/
Core
/
include
/
usb_core.h
diff --git
a/Modules/USB/Core/include/usb_core.h
b/Modules/USB/Core/include/usb_core.h
index
2a8ce9d
..
104d0e3
100644
(file)
--- a/
Modules/USB/Core/include/usb_core.h
+++ b/
Modules/USB/Core/include/usb_core.h
@@
-50,7
+50,11
@@
struct sUSBDriver
extern void *USB_GetDeviceDataPtr(tUSBInterface *Dev);
extern void USB_SetDeviceDataPtr(tUSBInterface *Dev, void *Ptr);
extern void *USB_GetDeviceDataPtr(tUSBInterface *Dev);
extern void USB_SetDeviceDataPtr(tUSBInterface *Dev, void *Ptr);
+extern void USB_StartPollingEndpoint(tUSBInterface *Dev, int Endpoint);
+extern void USB_ReadDescriptor(tUSBInterface *Dev, int Type, int Index, int Length, void *Data);
+// TODO: Async
extern void USB_SendData(tUSBInterface *Dev, int Endpoint, int Length, void *Data);
extern void USB_SendData(tUSBInterface *Dev, int Endpoint, int Length, void *Data);
+extern void USB_RecvData(tUSBInterface *Dev, int Endpoint, int Length, void *Data);
#endif
#endif
UCC
git Repository :: git.ucc.asn.au