usb_enum.h

来自「at91rm9200 的rom程序」· C头文件 代码 · 共 56 行

H
56
字号
//*----------------------------------------------------------------------------
//*         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           : usb_enum.h
//* Object              : USB peripheral validation.
//*
//* 1.0 07/24/01 ODi    : Creation
//*----------------------------------------------------------------------------
#ifndef usb_enum_h
#define usb_enum_h

#include "services/obj_romboot.h"

/* =================================================================== */
/* DFU mode Descriptor set                                             */
/* =================================================================== */
typedef __packed struct {
	AT91S_UsbDevice        dfuModeDevDesc;

	AT91S_UsbConfiguration dfuModeCfgDesc;
	AT91S_UsbInterface     dfuModeItfDesc;
	AT91S_DfuFDesc         dfuModeFctDesc;
} USBDfuModeDesc;
extern const USBDfuModeDesc USB_DFU_DESC;


extern void GetConfiguration(
	void *pVoid); /* Default Pipe Handler */
extern void GetDescriptor(
	char type,          /* Descriptor type */
	char index,         /* Descriptor index */
	short langID,       /* Language ID */
	short length,       /* Desriptor length */
	void  *pVoid);
extern void GetStatus (
	char    recipient,  /* device, interface, endpoint */
	short   index,      /* interface or endpoint index */
	void    *pVoid);
extern void SetConfiguration(
	short   configurationValue,  /* Configuration value */
	void 	*pVoid);
extern void SetAddress(
	char    addressValue,
	void    *pVoid);
extern void DfuDownload(
	AT91PS_DfuDesc pDfu, 
	unsigned short length, 
	AT91PF_PipeReadCallBack callback);

#endif // usb_enum_h

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?