usb.h

来自「Sirf/Centrality公司GPS平台AtlasIII芯片AT640的Nb」· C头文件 代码 · 共 29 行

H
29
字号
#ifndef _ATLAS_USB_H_
#define _ATLAS_USB_H_


//follwing are from usb spec
#define USB_GET_STATUS				0x00
#define USB_CLEAR_FEATURE			0x01
#define USB_SET_FEATURE				0x03
#define USB_SET_ADDR				0x05
#define USB_GET_DESCRIPTOR			0x06
#define USB_SET_DESCRIPTOR			0x07
#define USB_GET_CONFIG				0x08
#define USB_SET_CONFIG				0x09
#define USB_GET_INTERFACE			0x0a
#define USB_SET_INTERFACE			0x0b
#define USB_SYNCH_FRAME				0x0c

#define USB_GET_REPORT				0x01
#define USB_GET_IDLE				0x02
#define USB_SET_REPORT				0x09
#define USB_SET_IDLE				0x0a


void USB_Init(void);
void USB_Process(void);
void USB_OutputString(const char *p);
char * USB_GetInstruction(void);

#endif//#ifndef _ATLAS_USB_H_

⌨️ 快捷键说明

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