root/Examples_CP-JR_ARM7_LPC2368/ETT_LPC2368_Examples/USB_DEMO/USBCDC/cdcuser.h

Revision 8, 2.1 kB (checked in by phil, 16 years ago)

Added Examples etc. from CD

Line 
1 /*----------------------------------------------------------------------------
2  *      U S B  -  K e r n e l
3  *----------------------------------------------------------------------------
4  *      Name:    CDCUSER.H
5  *      Purpose: USB Communication Device Class User module Definitions
6  *      Version: V1.01
7  *----------------------------------------------------------------------------
8  *      This file is part of the uVision/ARM development tools.
9  *      This software may only be used under the terms of a valid, current,
10  *      end user licence from KEIL for a compatible version of KEIL software
11  *      development tools. Nothing else gives you the right to use it.
12  *
13  *      Copyright (c) 2005-2007 Keil Software.
14  *---------------------------------------------------------------------------*/
15
16 #ifndef __CDCUSER_H__
17 #define __CDCUSER_H__
18
19 /* CDC Data In/Out Endpoint Address */
20 #define CDC_DEP_IN       0x82
21 #define CDC_DEP_OUT      0x02
22
23 /* CDC Communication In Endpoint Address */
24 #define CDC_CEP_IN       0x81
25
26 /* CDC Requests Callback Functions */
27 extern BOOL CDC_SendEncapsulatedCommand (void);
28 extern BOOL CDC_GetEncapsulatedResponse (void);
29 extern BOOL CDC_SetCommFeature          (WORD wFeatureSelector);
30 extern BOOL CDC_GetCommFeature          (WORD wFeatureSelector);
31 extern BOOL CDC_ClearCommFeature        (WORD wFeatureSelector);
32 extern BOOL CDC_GetLineCoding           (void);
33 extern BOOL CDC_SetLineCoding           (void);
34 extern BOOL CDC_SetControlLineState     (WORD wControlSignalBitmap);
35 extern BOOL CDC_SendBreak               (WORD wDurationOfBreak);
36
37 /* CDC Bulk Callback Functions */
38 extern void CDC_BulkIn              (void);
39 extern void CDC_BulkOut             (void);
40
41 /* CDC Notification Callback Function */
42 extern void CDC_NotificationIn      (void);
43
44 /* CDC Initializtion Function */
45 extern void CDC_Init (void);
46
47 /* CDC prepare the SERAIAL_STATE */
48 extern WORD CDC_GetSerialState (void);
49
50 /* flow control */
51 extern WORD CDC_DepInEmpty;                        // DataEndPoint IN empty
52
53 /*used serial device */
54 extern int  CDC_SerDevNo;
55
56 #endif  /* __CDCUSER_H__ */
57
Note: See TracBrowser for help on using the browser.