dfu.h

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

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

#include "Drivers/dfu/drv_dfu.h"
/* ****************** DFU Interface ********************* */
// Default pipe instance
extern SPipe pipeCtl;

// This instance will be used by the usbDescDispatch() routine
extern const USBDesc USB_DFU_HDL;
extern USBDfu USB_DFU;

/* =================================================================== */
/* USB Standart request handlers; used by the USB desc driver          */
/* =================================================================== */
extern void getConfiguration(
	SPipe *pPipe); /* Default Pipe Handler */
extern void getDescriptor(
	SPipe *pPipe,  /* Default Pipe Handler */
	char type,       /* Descriptor type */
	char index,      /* Descriptor index */
	short langID,    /* Language ID */
	short length);   /* Desriptor length */
extern void setConfiguration(
	SPipe *pPipe,              /* Default Pipe Handler */
	short   configurationValue); /* Configuration value */
extern void getStatus (
		SPipe *pPipe,       /* Default Pipe Handler */
		char    recipient,  /* device, interface, endpoint */
		short   index);     /* interface or endpoint index */

/* =================================================================== */
/* USB Class request handlers are defined in lib_dfu.h                 */
/* =================================================================== */


#endif

⌨️ 快捷键说明

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