blob: d51ffa332f9c5e1145ba890bd0fd9eb47fe8c8cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
//*----------------------------------------------------------------------------
//* ATMEL Microcontroller Software Support - ROUSSET -
//*----------------------------------------------------------------------------
//* The software is delivered "AS IS" without warranty or condition of any
//* kind, either express, implied or statutory. This includes without
//* limitation any warranty or condition with respect to merchantability or
//* fitness for any particular purpose, or against the infringements of
//* intellectual property rights of others.
//*----------------------------------------------------------------------------
//* File Name : cdc_enumerate.h
//* Object : Handle CDC enumeration
//*
//* 1.0 Apr 20 200 : ODi Creation
//*----------------------------------------------------------------------------
#ifndef PCD_ENUMERATE_H
#define PCD_ENUMERATE_H
#include <include/AT91SAM7.h>
#include <include/types.h>
#define AT91C_EP_OUT 1
#define AT91C_EP_OUT_SIZE 0x40
#define AT91C_EP_IN 2
#define AT91C_EP_IN_SIZE 0x40
#define AT91C_EP_INT 3
typedef struct _AT91S_CDC
{
AT91PS_UDP pUdp;
unsigned char currentConfiguration;
unsigned char currentConnection;
unsigned int currentRcvBank;
void *ep_ctx[4];
} AT91S_CDC, *AT91PS_CDC;
//* external function description
AT91PS_CDC AT91F_CDC_Open(AT91PS_UDP pUdp);
u_int8_t AT91F_UDP_IsConfigured(void);
u_int32_t AT91F_UDP_Write(u_int8_t irq, const char *pData, u_int32_t length);
#endif // CDC_ENUMERATE_H
|