Diff: USB_HID_STACK/USBEvents.h
- Revision:
- 0:e98d1c2b16c6
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/USB_HID_STACK/USBEvents.h Thu Oct 20 14:07:30 2011 +0000 @@ -0,0 +1,19 @@ +/* USBEvents.h */ +/* USB device and endpoint event handlers */ +/* Copyright (c) 2011 ARM Limited. All rights reserved. */ + +#ifndef _USB_EBVENTS_ +#define _USB_EBVENTS_ + +/* Endpoint events that must be implemented by device layer: */ +void USBDevice_EP0setup(void); +void USBDevice_EP0out(void); +void USBDevice_EP0in(void); + +/* Endpoint events that are optionally implemented by device layer: */ +void USBDevice_busReset(void); +void USBDevice_SOF(int frameNumber); +void USBDevice_connectStateChanged(unsigned int state); +void USBDevice_suspendStateChanged(unsigned int state); + +#endif