亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? usb_kbd_enum.h

?? 這是一個用AT89C5131做的USB接口鍵盤。有電路圖和源程序。非常有應(yīng)用價值的一個資料
?? H
字號:
/*H**************************************************************************
* NAME:         usb_kbd_enum.h
*----------------------------------------------------------------------------
* Copyright (c) 2003 Atmel.
*----------------------------------------------------------------------------
* RELEASE:      c5131-usb-kbd-light-1_0_2      
* REVISION:     1.2     
*----------------------------------------------------------------------------
* PURPOSE:
* This file contains the USB task definition
*****************************************************************************/

#ifndef _USB_ENUM_H_
#define _USB_ENUM_H_

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


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


/* HID specific */
#define GET_REPORT_DESCRIPTOR 0x22
/* *** */

/*_____ S T A N D A R D    R E Q U E S T S __________________________________*/

#define GET_STATUS            0x00
#define GET_DEVICE            0x01
#define CLEAR_FEATURE         0x01        /* see FEATURES below */
#define GET_STRING            0x03
#define SET_FEATURE           0x03        /* see FEATURES below */
#define SET_ADDRESS           0x05
#define GET_DESCRIPTOR        0x06
#define SET_DESCRIPTOR        0x07
#define GET_CONFIGURATION     0x08
#define SET_CONFIGURATION     0x09
#define GET_INTERFACE         0x0A
#define SET_INTERFACE         0x0B
#define SYNCH_FRAME           0x0C

#define GET_DEVICE_DESCRIPTOR           1
#define GET_CONFIGURATION_DESCRIPTOR    4

/* HID specific */
#define HID_SET_IDLE          0x0A
#define HID_GET_IDLE          0x02
/* *** */

#define REQUEST_DEVICE_STATUS         0x80
#define REQUEST_INTERFACE_STATUS      0x81
#define REQUEST_ENDPOINT_STATUS       0x82
#define ZERO_TYPE                     0x00
#define INTERFACE_TYPE                0x01
#define ENDPOINT_TYPE                 0x02

/*_____ D E S C R I P T O R    T Y P E S ____________________________________*/

#define DEVICE                0x01
#define CONFIGURATION         0x02
#define STRING                0x03
#define INTERFACE             0x04
#define ENDPOINT              0x05

/* HID specific */
#define HID                   0x21
#define REPORT                0x22
/* *** */

/*_____ S T A N D A R D    F E A T U R E S __________________________________*/

#define DEVICE_REMOTE_WAKEUP_FEATURE     0x01
#define ENDPOINT_HALT_FEATURE            0x00

/*_____ D E V I C E   S T A T U S ___________________________________________*/

#define SELF_POWERED       1

/*_____ D E V I C E   S T A T E _____________________________________________*/

#define ATTACHED                  0
#define POWERED                   1
#define DEFAULT                   2
#define ADDRESSED                 3
#define CONFIGURED                4
#define SUSPENDED                 5

#define USB_CONFIG_BUSPOWERED     0x80
#define USB_CONFIG_SELFPOWERED    0x40
#define USB_CONFIG_REMOTEWAKEUP   0x20

/*_________________________________________________________ S T R U C T _____*/
/*_____ U S B   D E V I C E   R E Q U E S T _________________________________*/
struct Endpoint_information_st
{
  unsigned int  fifo_size ;           /* size of the endpoint FIFO */
  unsigned int  fifo_left ;
};

struct USB_request_st
{
  unsigned char   bmRequestType;        /* Characteristics of the request */
  unsigned char   bRequest;             /* Specific request */
  unsigned int  wValue;               /* field that varies according to request */
  unsigned int  wIndex;               /* field that varies according to request */
  unsigned int  wLength;              /* Number of bytes to transfer if Data */
};


/*_____ U S B   D E V I C E   D E S C R I P T O R ___________________________*/

struct usb_st_device_descriptor
{
  unsigned char  bLength;               /* Size of this descriptor in bytes */
  unsigned char  bDescriptorType;       /* DEVICE descriptor type */
  unsigned int bscUSB;                /* Binay Coded Decimal Spec. release */
  unsigned char  bDeviceClass;          /* Class code assigned by the USB */
  unsigned char  bDeviceSubClass;       /* Sub-class code assigned by the USB */
  unsigned char  bDeviceProtocol;       /* Protocol code assigned by the USB */
  unsigned char  bMaxPacketSize0;       /* Max packet size for EP0 */
  unsigned int idVendor;              /* Vendor ID. ATMEL = 0x03EB */
  unsigned int idProduct;             /* Product ID assigned by the manufacturer */
  unsigned int bcdDevice;             /* Device release number */
  unsigned char  iManufacturer;         /* Index of manu. string descriptor */
  unsigned char  iProduct;              /* Index of prod. string descriptor */
  unsigned char  iSerialNumber;         /* Index of S.N.  string descriptor */
  unsigned char  bNumConfigurations;    /* Number of possible configurations */
};


/*_____ U S B   C O N F I G U R A T I O N   D E S C R I P T O R _____________*/

struct usb_st_configuration_descriptor
{
  unsigned char  bLength;               /* size of this descriptor in bytes */
  unsigned char  bDescriptorType;       /* CONFIGURATION descriptor type */
  unsigned int wTotalLength;          /* total length of data returned */
  unsigned char  bNumInterfaces;        /* number of interfaces for this conf. */
  unsigned char  bConfigurationValue;   /* value for SetConfiguration resquest */
  unsigned char  iConfiguration;        /* index of string descriptor */
  unsigned char  bmAttibutes;           /* Configuration characteristics */
  unsigned char  MaxPower;              /* maximum power consumption */
};


/*_____ U S B   I N T E R F A C E   D E S C R I P T O R _____________________*/

struct usb_st_interface_descriptor
{
  unsigned char bLength;                /* size of this descriptor in bytes */
  unsigned char bDescriptorType;        /* INTERFACE descriptor type */
  unsigned char bInterfaceNumber;       /* Number of interface */
  unsigned char bAlternateSetting;      /* value to select alternate setting */
  unsigned char bNumEndpoints;          /* Number of EP except EP 0 */
  unsigned char bInterfaceClass;        /* Class code assigned by the USB */
  unsigned char bInterfaceSubClass;     /* Sub-class code assigned by the USB */
  unsigned char bInterfaceProtocol;     /* Protocol code assigned by the USB */
  unsigned char iInterface;             /* Index of string descriptor */
};


/*_____ U S B   E N D P O I N T   D E S C R I P T O R _______________________*/

struct usb_st_endpoint_descriptor
{
  unsigned char  bLength;               /* Size of this descriptor in bytes */
  unsigned char  bDescriptorType;       /* ENDPOINT descriptor type */
  unsigned char  bEndpointAddress;      /* Address of the endpoint */
  unsigned char  bmAttributes;          /* Endpoint's attributes */
  unsigned int wMaxPacketSize;        /* Maximum packet size for this EP */
  unsigned char  bInterval;             /* Interval for polling EP in ms */
};


/*_____ U S B   M A N U F A C T U R E R   D E S C R I P T O R _______________*/

struct usb_st_manufacturer
{
  unsigned char  bLength;               /* size of this descriptor in bytes */
  unsigned char  bDescriptorType;       /* STRING descriptor type */
  unsigned int wstring[5];/* unicode characters */
};


/*_____ U S B   P R O D U C T   D E S C R I P T O R _________________________*/

struct usb_st_product
{
  unsigned char  bLength;               /* size of this descriptor in bytes */
  unsigned char  bDescriptorType;       /* STRING descriptor type */
  unsigned int wstring[24];/* unicode characters */
};


/*_____ U S B   S E R I A L   N U M B E R   D E S C R I P T O R _____________*/

struct usb_st_serial_number
{
  unsigned char  bLength;               /* size of this descriptor in bytes */
  unsigned char  bDescriptorType;       /* STRING descriptor type */
  unsigned int wstring[5];/* unicode characters */
};


/*_____ U S B   L A N G U A G E    D E S C R I P T O R ______________________*/

struct usb_st_language_descriptor
{
  unsigned char  bLength;               /* size of this descriptor in bytes */
  unsigned char  bDescriptorType;       /* STRING descriptor type */
  unsigned int wlangid;               /* language id */
};

/* HID specific */
/*_____ U S B   H I D   D E S C R I P T O R __________________________________*/

struct usb_st_hid_descriptor
{ 
  unsigned char  bLength;               /* Size of this descriptor in bytes */
  unsigned char  bDescriptorType;       /* HID descriptor type */
  unsigned int bscHID;                /* Binay Coded Decimal Spec. release */
  unsigned char  bCountryCode;          /* Hardware target country */
  unsigned char  bNumDescriptors;       /* Number of HID class descriptors to follow */
  unsigned char  bRDescriptorType;      /* Report descriptor type */
  unsigned int wDescriptorLength;     /* Total length of Report descriptor */
};


#endif  /* _USB_ENUM_H_ */

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品一二三四在线| 夜夜嗨av一区二区三区中文字幕 | 久久九九影视网| 国产一区二区在线电影| 国产午夜精品在线观看| voyeur盗摄精品| 亚洲综合成人在线| 日韩一区二区三区免费看| 国内精品伊人久久久久影院对白| 久久免费的精品国产v∧| 成人午夜激情影院| 亚洲黄色性网站| 欧美一级久久久| 国产精品66部| 亚洲一区日韩精品中文字幕| 欧美另类久久久品| 国产美女一区二区| 亚洲一区二区偷拍精品| 日韩欧美精品在线视频| proumb性欧美在线观看| 日韩中文欧美在线| 久久人人超碰精品| 在线一区二区视频| 国产揄拍国内精品对白| 亚洲品质自拍视频网站| 日韩亚洲欧美一区二区三区| 99久久99久久精品免费观看| 日本午夜精品视频在线观看| 中日韩免费视频中文字幕| 欧美久久久久免费| 成人午夜激情影院| 麻豆视频一区二区| 亚洲乱码国产乱码精品精的特点 | 亚洲精选视频免费看| 日韩视频免费直播| 色一区在线观看| 国产精品中文欧美| 丝袜诱惑亚洲看片| 亚洲欧美色图小说| 国产清纯美女被跳蛋高潮一区二区久久w | av网站一区二区三区| 日本麻豆一区二区三区视频| 中文字幕在线播放不卡一区| 欧美一区二区三区成人| 91精品国产色综合久久不卡蜜臀 | 亚洲精品写真福利| 精品久久久久久综合日本欧美| 色天天综合久久久久综合片| 国产乱淫av一区二区三区 | 久久电影网站中文字幕 | 中文字幕乱码一区二区免费| 91精品国产福利在线观看 | 偷拍一区二区三区| 国产精品久久久久久久久免费相片 | 国产成人av电影| 美女视频网站黄色亚洲| 亚洲国产一区二区三区青草影视| 国产精品久久久久影院| 久久蜜桃av一区二区天堂| 欧美一区午夜视频在线观看| 在线视频观看一区| 99天天综合性| www.欧美色图| 粉嫩av一区二区三区| 精品写真视频在线观看| 免费观看久久久4p| 日韩精品乱码免费| 午夜视频一区二区三区| 一区二区三区国产| 一区免费观看视频| 中文字幕一区三区| 国产精品国产三级国产专播品爱网 | 天堂av在线一区| 亚洲午夜在线观看视频在线| 伊人色综合久久天天人手人婷| 国产精品三级在线观看| 久久精品水蜜桃av综合天堂| 久久午夜羞羞影院免费观看| 欧美成人欧美edvon| 亚洲精品一区二区在线观看| 欧美电视剧在线观看完整版| 精品人在线二区三区| 欧美不卡一区二区| 久久亚洲精精品中文字幕早川悠里| 日韩精品一区二区三区视频 | 久久老女人爱爱| 久久久久久亚洲综合影院红桃| 精品国产自在久精品国产| 欧美成人福利视频| 久久久久久久综合色一本| 久久精品无码一区二区三区| 欧美极品美女视频| 亚洲免费资源在线播放| 亚洲综合一二三区| 日本亚洲最大的色成网站www| 奇米色777欧美一区二区| 久久国产欧美日韩精品| 国产成人精品网址| 91视频精品在这里| 欧美精品一二三| 精品入口麻豆88视频| 日本一区二区三区在线观看| 日韩毛片精品高清免费| 亚洲电影视频在线| 国内国产精品久久| 99久久精品免费精品国产| 欧美午夜电影在线播放| 日韩色视频在线观看| 国产精品―色哟哟| 亚洲v中文字幕| 国产精品影视在线| 91免费观看国产| 这里是久久伊人| 欧美激情中文字幕| 午夜精品123| 国产成人自拍网| 欧美色成人综合| 国产肉丝袜一区二区| 亚洲愉拍自拍另类高清精品| 久久丁香综合五月国产三级网站| 不卡av免费在线观看| 欧美日韩高清一区二区三区| 久久久不卡网国产精品一区| 一区二区三区蜜桃| 国产在线麻豆精品观看| 日本道精品一区二区三区| 欧美sm极限捆绑bd| 亚洲一区二区三区四区中文字幕 | 精品sm捆绑视频| 亚洲一区二区三区四区在线| 国产精品一区二区男女羞羞无遮挡 | 最新热久久免费视频| 久久成人羞羞网站| 欧美亚一区二区| 国产精品区一区二区三区| 老司机精品视频在线| 色婷婷精品久久二区二区蜜臀av| 日韩欧美视频一区| 亚洲一区二区三区小说| av亚洲产国偷v产偷v自拍| 精品女同一区二区| 天堂蜜桃91精品| 在线精品视频一区二区| 国产三级久久久| 激情都市一区二区| 欧美一级xxx| 午夜精品影院在线观看| 99re66热这里只有精品3直播| www激情久久| 久久精品国产色蜜蜜麻豆| 欧美色老头old∨ideo| 亚洲免费视频成人| 成人av第一页| 中文字幕av不卡| 国产精品一区二区久久不卡| 欧美一级欧美三级| 日韩黄色片在线观看| 欧美日本在线播放| 亚洲一级电影视频| 91精品1区2区| 亚洲精品美国一| 91麻豆国产福利精品| 中文字幕一区日韩精品欧美| av一本久道久久综合久久鬼色| 久久精品人人爽人人爽| 国产乱国产乱300精品| 精品国产髙清在线看国产毛片| 免费成人在线网站| 91精品国产欧美一区二区成人| 性感美女久久精品| 欧美日韩不卡一区| 日韩精品一区第一页| 欧美一区二区三区视频免费播放 | 国产传媒日韩欧美成人| 久久亚洲一区二区三区四区| 国产精品18久久久| 国产日韩视频一区二区三区| 国产成人免费在线视频| 日本一区二区三区四区| 成人h动漫精品一区二区| 亚洲日穴在线视频| 欧美午夜精品理论片a级按摩| 偷拍一区二区三区四区| 日韩一级片网站| 国产成人精品影视| 1024精品合集| 欧美日韩中文精品| 毛片不卡一区二区| 中文字幕欧美区| 91精品1区2区| 琪琪久久久久日韩精品| 久久精品免视看| 色天天综合色天天久久| 日韩国产在线一| 久久综合五月天婷婷伊人| 99re66热这里只有精品3直播| 午夜影院在线观看欧美| 久久久欧美精品sm网站| 色综合久久久久综合体| 日本中文一区二区三区|