cdc_enumerate.h
来自「IAR EWARM嵌入式系统编程与实践光盘源码」· C头文件 代码 · 共 43 行
H
43 行
//*----------------------------------------------------------------------------
//* 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 CDC_ENUMERATE_H
#define CDC_ENUMERATE_H
#define AT91C_EP_OUT 1
#define AT91C_EP_OUT_SIZE 0x40
#define AT91C_EP_IN 2
typedef struct _AT91S_CDC
{
// Private members
AT91PS_UDP pUdp;
unsigned char currentConfiguration;
unsigned char currentConnection;
unsigned int currentRcvBank;
// Public Methods:
unsigned char (*IsConfigured)(struct _AT91S_CDC *pCdc);
unsigned int (*Write) (struct _AT91S_CDC *pCdc, const char *pData, unsigned int length);
unsigned int (*Read) (struct _AT91S_CDC *pCdc, char *pData, unsigned int length);
} AT91S_CDC, *AT91PS_CDC;
//* external function description
AT91PS_CDC AT91F_CDC_Open(AT91PS_CDC pCdc, AT91PS_UDP pUdp);
#endif // CDC_ENUMERATE_H
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?