OpenCores
URL https://opencores.org/ocsvn/usb_device_core/usb_device_core/trunk

Subversion Repositories usb_device_core

[/] [usb_device_core/] [trunk/] [sw/] [usb_cdc.h] - Blame information for rev 5

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 5 ultra_embe
#ifndef  __USB_CDC_H__
2
#define  __USB_CDC_H__
3
 
4
//-----------------------------------------------------------------
5
// Defines:
6
//-----------------------------------------------------------------
7
#define CDC_ENDPOINT_BULK_OUT           1
8
#define CDC_ENDPOINT_BULK_IN            2
9
#define CDC_ENDPOINT_INTR_IN            3
10
 
11
#define CDC_SEND_ENCAPSULATED_COMMAND   0x00
12
#define CDC_GET_ENCAPSULATED_RESPONSE   0x01
13
#define CDC_GET_LINE_CODING             0x21
14
#define CDC_SET_LINE_CODING             0x20
15
#define CDC_SET_CONTROL_LINE_STATE      0x22
16
#define CDC_SEND_BREAK                  0x23
17
 
18
//-----------------------------------------------------------------
19
// Prototypes:
20
//-----------------------------------------------------------------
21
#ifdef __cplusplus
22
extern "C" {
23
#endif
24
 
25
void usb_cdc_init( void );
26
void usb_cdc_process_request(unsigned char req, unsigned short wValue, unsigned short WIndex, unsigned char *data, unsigned short wLength);
27
 
28
#ifdef __cplusplus
29
}
30
#endif
31
 
32
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.