AT91SAM7S/src/cdc_enumerate.c File Reference

#include "board.h"
#include "buzzer.h"
#include "cdc_enumerate.h"

Data Structures

struct  AT91S_CDC_LINE_CODING

Defines

#define MIN(a, b)   (((a) < (b)) ? (a) : (b))
#define AT91C_EP_IN_SIZE   0x40
#define STD_GET_STATUS_ZERO   0x0080
#define STD_GET_STATUS_INTERFACE   0x0081
#define STD_GET_STATUS_ENDPOINT   0x0082
#define STD_CLEAR_FEATURE_ZERO   0x0100
#define STD_CLEAR_FEATURE_INTERFACE   0x0101
#define STD_CLEAR_FEATURE_ENDPOINT   0x0102
#define STD_SET_FEATURE_ZERO   0x0300
#define STD_SET_FEATURE_INTERFACE   0x0301
#define STD_SET_FEATURE_ENDPOINT   0x0302
#define STD_SET_ADDRESS   0x0500
#define STD_GET_DESCRIPTOR   0x0680
#define STD_SET_DESCRIPTOR   0x0700
#define STD_GET_CONFIGURATION   0x0880
#define STD_SET_CONFIGURATION   0x0900
#define STD_GET_INTERFACE   0x0A81
#define STD_SET_INTERFACE   0x0B01
#define STD_SYNCH_FRAME   0x0C82
#define GET_LINE_CODING   0x21A1
#define SET_LINE_CODING   0x2021
#define SET_CONTROL_LINE_STATE   0x2221

Typedefs

typedef unsigned char uchar
typedef unsigned short ushort
typedef unsigned int uint
typedef struct
AT91S_CDC_LINE_CODING * 
AT91PS_CDC_LINE_CODING

Functions

AT91PS_CDC AT91F_CDC_Open (AT91PS_CDC pCdc, AT91PS_UDP pUdp)
void AT91F_USB_SendZlp (AT91PS_UDP pUdp)
void AT91F_USB_SendStall (AT91PS_UDP pUdp)

Variables

const char devDescriptor []
const char cfgDescriptor []
AT91S_CDC_LINE_CODING line
unsigned int csrTab [100]
unsigned char csrIdx = 0

Detailed Description


Variable Documentation

const char devDescriptor[]

Initial value:

{
    
    0x12,   
    0x01,   
    0x10,   
    0x01,   
    0x02,   
    0x00,   
    0x00,   
    0x08,   
    0xEB,   
    0x03,   
    0x30,   
    0x61,   
    0x10,   
    0x01,   
    0x00,   
    0x00,   
    0x00,   
    0x01    
}

AT91S_CDC_LINE_CODING line

Initial value:

{
    115200, 
    0,      
    0,      
    8
}


Generated on Mon Sep 21 23:10:08 2009 for armscope by  doxygen 1.5.9
Tomasz Ostrowski