📄 dfu.h
字号:
//*----------------------------------------------------------------------------
//* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -