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

📄 requests.h

📁 AVR_usb_ISP
💻 H
字号:
/* Name: requests.h * Project: custom-class, a basic USB example * Author: Christian Starkjohann * Creation Date: 2008-04-09 * Tabsize: 4 * Copyright: (c) 2008 by OBJECTIVE DEVELOPMENT Software GmbH * License: GNU GPL v2 (see License.txt), GNU GPL v3 or proprietary (CommercialLicense.txt) * This Revision: $Id: requests.h 692 2008-11-07 15:07:40Z cs $ *//* This header is shared between the firmware and the host software. It * defines the USB request numbers (and optionally data types) used to * communicate between the host and the device. */#ifndef __REQUESTS_H_INCLUDED__#define __REQUESTS_H_INCLUDED__#define CUSTOM_RQ_ECHO          0/* Request that the device sends back wValue and wIndex. This is used with * random data to test the reliability of the communication. */#define CUSTOM_RQ_SET_STATUS    1/* Set the LED status. Control-OUT. * The requested status is passed in the "wValue" field of the control * transfer. No OUT data is sent. Bit 0 of the low byte of wValue controls * the LED. */#define CUSTOM_RQ_GET_STATUS    2/* Get the current LED status. Control-IN. * This control transfer involves a 1 byte data phase where the device sends * the current status to the host. The status is in bit 0 of the byte. */#endif /* __REQUESTS_H_INCLUDED__ */

⌨️ 快捷键说明

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