⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 usb_specific_request.h

📁 基于at90usb1287的数据存储器例子
💻 H
字号:
//! @file usb_specific_request.h,v
//!
//! Copyright (c) 2004 Atmel.
//!
//! Use of this program is subject to Atmel's End User License Agreement.
//! Please read file license.txt for copyright notice.
//!
//! @brief Specific enumeration process requests header file
//!
//! This file contains the specific request decoding for enumearion process
//!
//! @version 1.1 at90usb128-usbkey-demo-storage-df-1_0_4 $Id: usb_specific_request.h,v 1.1 2006/03/13 12:53:54 rletendu Exp $
//!
//! @todo
//! @bug

#ifndef _USB_USER_ENUM_H_
#define _USB_USER_ENUM_H_

/*_____ I N C L U D E S ____________________________________________________*/

#include "config.h"

/*_____ M A C R O S ________________________________________________________*/

extern  code S_usb_device_descriptor usb_dev_desc;
extern  code S_usb_user_configuration_descriptor usb_conf_desc;
extern  code S_usb_user_configuration_descriptor usb_other_conf_desc;
extern  code S_usb_device_qualifier_descriptor usb_qual_desc;
extern  code S_usb_manufacturer_string_descriptor usb_user_manufacturer_string_descriptor;
extern  code S_usb_product_string_descriptor usb_user_product_string_descriptor;
extern  code S_usb_serial_number usb_user_serial_number;
extern  code S_usb_language_id usb_user_language_id;

#define MASS_STORAGE_RESET    0xFF
#define GET_MAX_LUN           0xFE

//! @defgroup specific_request USB device specific requests
//! @{


/*_____ D E F I N I T I O N ________________________________________________*/

//! usb_user_read_request(type, request);
//!
//! @brief This function is called by the standard usb read request function when
//! the Usb request is not supported. This function returns TRUE when the
//! request is processed. This function returns FALSE if the request is not
//! supported. In this case, a STALL handshake will be automatically
//! sent by the standard usb read request function.
//!
//! @param none
//!
//! @return none
//!
Bool  usb_user_read_request(U8, U8);
Bool  usb_user_get_descriptor(U8 , U8);

//! usb_user_endpoint_init.
//!
//! @brief This function configures the endpoints of the device application
//! This function is called when the set configuration request has been received.
//!
//! The core of this function should be correctly rewrite depending on the USB device
//! application characteristics (the usb device application has specific endpoints 
//! configuration).
//!
//! @param none
//!
//! @return none
//!
void  usb_user_endpoint_init(U8);

//! @}

#endif

⌨️ 快捷键说明

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