--- /dev/null
+/*----------------------------------------------------------------------------\r
+ * U S B - K e r n e l\r
+ *----------------------------------------------------------------------------\r
+ * Name: cdcuser.h\r
+ * Purpose: USB Communication Device Class User module Definitions\r
+ * Version: V1.10\r
+ *----------------------------------------------------------------------------\r
+ * This software is supplied "AS IS" without any warranties, express,\r
+ * implied or statutory, including but not limited to the implied\r
+ * warranties of fitness for purpose, satisfactory quality and\r
+ * noninfringement. Keil extends you a royalty-free right to reproduce\r
+ * and distribute executable files created using this software for use\r
+ * on NXP Semiconductors LPC microcontroller devices only. Nothing else \r
+ * gives you the right to use this software.\r
+ *\r
+ * Copyright (c) 2009 Keil - An ARM Company. All rights reserved.\r
+ *---------------------------------------------------------------------------*/\r
+\r
+#ifndef __CDCUSER_H__\r
+#define __CDCUSER_H__\r
+\r
+/* CDC buffer handling */\r
+extern int CDC_RdOutBuf (char *buffer, const int *length);\r
+extern CDC_WrOutBuf (const char *buffer, int *length);\r
+extern CDC_OutBufAvailChar (int *availChar);\r
+\r
+\r
+/* CDC Data In/Out Endpoint Address */\r
+#define CDC_DEP_IN 0x82\r
+#define CDC_DEP_OUT 0x02\r
+\r
+/* CDC Communication In Endpoint Address */\r
+#define CDC_CEP_IN 0x81\r
+\r
+/* CDC Requests Callback Functions */\r
+extern uint32_t CDC_SendEncapsulatedCommand (void);\r
+extern uint32_t CDC_GetEncapsulatedResponse (void);\r
+extern uint32_t CDC_SetCommFeature (unsigned short wFeatureSelector);\r
+extern uint32_t CDC_GetCommFeature (unsigned short wFeatureSelector);\r
+extern uint32_t CDC_ClearCommFeature (unsigned short wFeatureSelector);\r
+extern uint32_t CDC_GetLineCoding (void);\r
+extern uint32_t CDC_SetLineCoding (void);\r
+extern uint32_t CDC_SetControlLineState (unsigned short wControlSignalBitmap);\r
+extern uint32_t CDC_SendBreak (unsigned short wDurationOfBreak);\r
+\r
+/* CDC Bulk Callback Functions */\r
+extern void CDC_BulkIn (void);\r
+extern void CDC_BulkOut (void);\r
+\r
+/* CDC Notification Callback Function */\r
+extern void CDC_NotificationIn (void);\r
+\r
+/* CDC Initializtion Function */\r
+extern void CDC_Init (char portNum);\r
+\r
+/* CDC prepare the SERAIAL_STATE */\r
+extern unsigned short CDC_GetSerialState (void);\r
+\r
+/* flow control */\r
+extern unsigned short CDC_DepInEmpty; // DataEndPoint IN empty\r
+\r
+#endif /* __CDCUSER_H__ */\r
+\r