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

📄 usb11spec_8h.tex

📁 开源的usbport 的usb主机协议栈,本协议栈可以支持多种不同的usb控制芯片
💻 TEX
字号:
\section{/home/bene/projects/sl811/usbstack/usbspec/usb11spec.h File Reference}\label{usb11spec_8h}\index{/home/bene/projects/sl811/usbstack/usbspec/usb11spec.h@{/home/bene/projects/sl811/usbstack/usbspec/usb11spec.h}}\subsection*{Classes}\begin{CompactItemize}\item struct {\bf usb\_\-device\_\-descriptor}\item struct {\bf usb\_\-configuration\_\-descriptor}\item struct {\bf usb\_\-interface\_\-descriptor}\item struct {\bf usb\_\-endpoint\_\-descriptor}\item struct {\bf usb\_\-string\_\-descriptor}\item struct {\bf usb\_\-device\_\-request\_\-t}\end{CompactItemize}\subsection*{Defines}\begin{CompactItemize}\item \#define {\bf \_\-USB11SPEC\_\-H}\item \#define {\bf USB\_\-CTRL}~0x00\item \#define {\bf USB\_\-ISOC}~0x01\item \#define {\bf USB\_\-BULK}~0x02\item \#define {\bf USB\_\-INTR}~0x03\item \#define {\bf DO\_\-STANDARD}~0x00\item \#define {\bf DO\_\-CLASS}~0x20\item \#define {\bf DO\_\-VENDOR}~0x40\item \#define {\bf GET\_\-STATUS}~0x00\item \#define {\bf CLR\_\-FEATURE}~0x01\item \#define {\bf SET\_\-FEATURE}~0x03\item \#define {\bf SET\_\-ADDRESS}~0x05\item \#define {\bf GET\_\-DESCRIPTOR}~0x06\item \#define {\bf SET\_\-DESCRIPTOR}~0x07\item \#define {\bf GET\_\-CONFIGURATION}~0x08\item \#define {\bf SET\_\-CONFIGURATION}~0x09\item \#define {\bf GET\_\-INTERFACE}~0x0A\item \#define {\bf SET\_\-INTERFACE}~0x0B\item \#define {\bf DEVICE}~0x01\item \#define {\bf CONFIGURATION}~0x02\item \#define {\bf STRING}~0x03\item \#define {\bf INTERFACE}~0x04\item \#define {\bf ENDPOINT}~0x05\item \#define {\bf DEVICEQUALIFIER}~0x06\item \#define {\bf OTHERSPEEDCONFIGURATION}~0x07\item \#define {\bf USB\_\-PID\_\-SOF}~0x05\item \#define {\bf USB\_\-PID\_\-SETUP}~0x0D\item \#define {\bf USB\_\-PID\_\-IN}~0x09\item \#define {\bf USB\_\-PID\_\-OUT}~0x01\item \#define {\bf USB\_\-PID\_\-DATA0}~0x03\item \#define {\bf USB\_\-PID\_\-DATA1}~0x0B\item \#define {\bf USB\_\-PID\_\-ACK}~0x02\item \#define {\bf USB\_\-PID\_\-NACK}~0x0A\item \#define {\bf USB\_\-PID\_\-STALL}~0x0E\item \#define {\bf USB\_\-PID\_\-PRE}~0x0C\item \#define {\bf MASS\_\-STORAGE\_\-CLASSCODE}~0x08\item \#define {\bf HUB\_\-CLASSCODE}~0x09\end{CompactItemize}\subsection*{Typedefs}\begin{CompactItemize}\item typedef {\bf usb\_\-device\_\-request\_\-t} {\bf usb\_\-device\_\-request}\end{CompactItemize}\subsection{Define Documentation}\index{usb11spec.h@{usb11spec.h}!_USB11SPEC_H@{\_\-USB11SPEC\_\-H}}\index{_USB11SPEC_H@{\_\-USB11SPEC\_\-H}!usb11spec.h@{usb11spec.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define \_\-USB11SPEC\_\-H}\label{usb11spec_8h_4b89316a4d79dfe232e11d57fa51cfa2}\index{usb11spec.h@{usb11spec.h}!CLR_FEATURE@{CLR\_\-FEATURE}}\index{CLR_FEATURE@{CLR\_\-FEATURE}!usb11spec.h@{usb11spec.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define CLR\_\-FEATURE~0x01}\label{usb11spec_8h_15663e06305bdc7c63e8fbb3e870a034}\index{usb11spec.h@{usb11spec.h}!CONFIGURATION@{CONFIGURATION}}\index{CONFIGURATION@{CONFIGURATION}!usb11spec.h@{usb11spec.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define CONFIGURATION~0x02}\label{usb11spec_8h_5fa120064b78d91b6a77f868bbda5a99}\index{usb11spec.h@{usb11spec.h}!DEVICE@{DEVICE}}\index{DEVICE@{DEVICE}!usb11spec.h@{usb11spec.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define DEVICE~0x01}\label{usb11spec_8h_775d096fbc3988fb7ed858b79ef44e22}\index{usb11spec.h@{usb11spec.h}!DEVICEQUALIFIER@{DEVICEQUALIFIER}}\index{DEVICEQUALIFIER@{DEVICEQUALIFIER}!usb11spec.h@{usb11spec.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define DEVICEQUALIFIER~0x06}\label{usb11spec_8h_6253d20c61075190100a4ae5623b0c2c}\index{usb11spec.h@{usb11spec.h}!DO_CLASS@{DO\_\-CLASS}}\index{DO_CLASS@{DO\_\-CLASS}!usb11spec.h@{usb11spec.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define DO\_\-CLASS~0x20}\label{usb11spec_8h_02f6f802c82f8aeee7ad11892579e2cd}\index{usb11spec.h@{usb11spec.h}!DO_STANDARD@{DO\_\-STANDARD}}\index{DO_STANDARD@{DO\_\-STANDARD}!usb11spec.h@{usb11spec.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define DO\_\-STANDARD~0x00}\label{usb11spec_8h_424652d8cec667294cfe436e49ea72cd}\index{usb11spec.h@{usb11spec.h}!DO_VENDOR@{DO\_\-VENDOR}}\index{DO_VENDOR@{DO\_\-VENDOR}!usb11spec.h@{usb11spec.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define DO\_\-VENDOR~0x40}\label{usb11spec_8h_bdb43f5f94e8aa529eece5d05b854481}\index{usb11spec.h@{usb11spec.h}!ENDPOINT@{ENDPOINT}}\index{ENDPOINT@{ENDPOINT}!usb11spec.h@{usb11spec.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define ENDPOINT~0x05}\label{usb11spec_8h_aa55400112be04000b9b5b278269a369}\index{usb11spec.h@{usb11spec.h}!GET_CONFIGURATION@{GET\_\-CONFIGURATION}}\index{GET_CONFIGURATION@{GET\_\-CONFIGURATION}!usb11spec.h@{usb11spec.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define GET\_\-CONFIGURATION~0x08}\label{usb11spec_8h_c6bffdcb940a0338051c4baa72498beb}\index{usb11spec.h@{usb11spec.h}!GET_DESCRIPTOR@{GET\_\-DESCRIPTOR}}\index{GET_DESCRIPTOR@{GET\_\-DESCRIPTOR}!usb11spec.h@{usb11spec.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define GET\_\-DESCRIPTOR~0x06}\label{usb11spec_8h_115a1d866ed9498300d59c90549ead0d}\index{usb11spec.h@{usb11spec.h}!GET_INTERFACE@{GET\_\-INTERFACE}}\index{GET_INTERFACE@{GET\_\-INTERFACE}!usb11spec.h@{usb11spec.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define GET\_\-INTERFACE~0x0A}\label{usb11spec_8h_1846f3a13493771ceced447397221de1}\index{usb11spec.h@{usb11spec.h}!GET_STATUS@{GET\_\-STATUS}}\index{GET_STATUS@{GET\_\-STATUS}!usb11spec.h@{usb11spec.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define GET\_\-STATUS~0x00}\label{usb11spec_8h_eba76c92af8f1a94982ec4cb767452f0}\index{usb11spec.h@{usb11spec.h}!HUB_CLASSCODE@{HUB\_\-CLASSCODE}}\index{HUB_CLASSCODE@{HUB\_\-CLASSCODE}!usb11spec.h@{usb11spec.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define HUB\_\-CLASSCODE~0x09}\label{usb11spec_8h_12420e623c7d8441bb0e3c8f88e6bda5}\index{usb11spec.h@{usb11spec.h}!INTERFACE@{INTERFACE}}\index{INTERFACE@{INTERFACE}!usb11spec.h@{usb11spec.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define INTERFACE~0x04}\label{usb11spec_8h_efb2aa75be4323fe06eb3ec8394bdfc7}\index{usb11spec.h@{usb11spec.h}!MASS_STORAGE_CLASSCODE@{MASS\_\-STORAGE\_\-CLASSCODE}}\index{MASS_STORAGE_CLASSCODE@{MASS\_\-STORAGE\_\-CLASSCODE}!usb11spec.h@{usb11spec.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define MASS\_\-STORAGE\_\-CLASSCODE~0x08}\label{usb11spec_8h_e35e8d6c63753c8e180b086f2e1c9dcc}\index{usb11spec.h@{usb11spec.h}!OTHERSPEEDCONFIGURATION@{OTHERSPEEDCONFIGURATION}}\index{OTHERSPEEDCONFIGURATION@{OTHERSPEEDCONFIGURATION}!usb11spec.h@{usb11spec.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define OTHERSPEEDCONFIGURATION~0x07}\label{usb11spec_8h_43552aa6f9e7a7bd94244591b3ea5fbe}\index{usb11spec.h@{usb11spec.h}!SET_ADDRESS@{SET\_\-ADDRESS}}\index{SET_ADDRESS@{SET\_\-ADDRESS}!usb11spec.h@{usb11spec.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define SET\_\-ADDRESS~0x05}\label{usb11spec_8h_d3c9f5426c07d7d4da8cf1752a111576}\index{usb11spec.h@{usb11spec.h}!SET_CONFIGURATION@{SET\_\-CONFIGURATION}}\index{SET_CONFIGURATION@{SET\_\-CONFIGURATION}!usb11spec.h@{usb11spec.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define SET\_\-CONFIGURATION~0x09}\label{usb11spec_8h_5cdfe3de183eb4e190b2ccaa299045bf}\index{usb11spec.h@{usb11spec.h}!SET_DESCRIPTOR@{SET\_\-DESCRIPTOR}}\index{SET_DESCRIPTOR@{SET\_\-DESCRIPTOR}!usb11spec.h@{usb11spec.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define SET\_\-DESCRIPTOR~0x07}\label{usb11spec_8h_264a9bda1309d7cc0311d57274194ca3}\index{usb11spec.h@{usb11spec.h}!SET_FEATURE@{SET\_\-FEATURE}}\index{SET_FEATURE@{SET\_\-FEATURE}!usb11spec.h@{usb11spec.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define SET\_\-FEATURE~0x03}\label{usb11spec_8h_f8b97e67097fbf7d56c3dcac52fe679e}\index{usb11spec.h@{usb11spec.h}!SET_INTERFACE@{SET\_\-INTERFACE}}\index{SET_INTERFACE@{SET\_\-INTERFACE}!usb11spec.h@{usb11spec.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define SET\_\-INTERFACE~0x0B}\label{usb11spec_8h_90c9c23759bdbb3ba106f88cb5ffc261}\index{usb11spec.h@{usb11spec.h}!STRING@{STRING}}\index{STRING@{STRING}!usb11spec.h@{usb11spec.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define STRING~0x03}\label{usb11spec_8h_0f4d394a3ab4e09bff60f714c66dc5ee}\index{usb11spec.h@{usb11spec.h}!USB_BULK@{USB\_\-BULK}}\index{USB_BULK@{USB\_\-BULK}!usb11spec.h@{usb11spec.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define USB\_\-BULK~0x02}\label{usb11spec_8h_5f8bdc7c6c67aea5d5b8ebd89b0fac4b}\index{usb11spec.h@{usb11spec.h}!USB_CTRL@{USB\_\-CTRL}}\index{USB_CTRL@{USB\_\-CTRL}!usb11spec.h@{usb11spec.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define USB\_\-CTRL~0x00}\label{usb11spec_8h_b7bdc25df3717d2745df3eebec6fad57}\index{usb11spec.h@{usb11spec.h}!USB_INTR@{USB\_\-INTR}}\index{USB_INTR@{USB\_\-INTR}!usb11spec.h@{usb11spec.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define USB\_\-INTR~0x03}\label{usb11spec_8h_8ef9bfd4f5ac7f28d35eae4df2ebb1a0}\index{usb11spec.h@{usb11spec.h}!USB_ISOC@{USB\_\-ISOC}}\index{USB_ISOC@{USB\_\-ISOC}!usb11spec.h@{usb11spec.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define USB\_\-ISOC~0x01}\label{usb11spec_8h_91f9a7ef013c9901fdaa785cdacb8742}\index{usb11spec.h@{usb11spec.h}!USB_PID_ACK@{USB\_\-PID\_\-ACK}}\index{USB_PID_ACK@{USB\_\-PID\_\-ACK}!usb11spec.h@{usb11spec.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define USB\_\-PID\_\-ACK~0x02}\label{usb11spec_8h_20be2ab28dfa5e2c7e72251b6f82918f}\index{usb11spec.h@{usb11spec.h}!USB_PID_DATA0@{USB\_\-PID\_\-DATA0}}\index{USB_PID_DATA0@{USB\_\-PID\_\-DATA0}!usb11spec.h@{usb11spec.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define USB\_\-PID\_\-DATA0~0x03}\label{usb11spec_8h_d51dc256e71cddf1cbc7bcd0cfa0fcdf}\index{usb11spec.h@{usb11spec.h}!USB_PID_DATA1@{USB\_\-PID\_\-DATA1}}\index{USB_PID_DATA1@{USB\_\-PID\_\-DATA1}!usb11spec.h@{usb11spec.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define USB\_\-PID\_\-DATA1~0x0B}\label{usb11spec_8h_efc84d43462f7009700f113a851f7feb}\index{usb11spec.h@{usb11spec.h}!USB_PID_IN@{USB\_\-PID\_\-IN}}\index{USB_PID_IN@{USB\_\-PID\_\-IN}!usb11spec.h@{usb11spec.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define USB\_\-PID\_\-IN~0x09}\label{usb11spec_8h_e32c5f02e03938ac65fce38bbb170287}\index{usb11spec.h@{usb11spec.h}!USB_PID_NACK@{USB\_\-PID\_\-NACK}}\index{USB_PID_NACK@{USB\_\-PID\_\-NACK}!usb11spec.h@{usb11spec.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define USB\_\-PID\_\-NACK~0x0A}\label{usb11spec_8h_137c8e51b855ce82f764b886f129fedc}\index{usb11spec.h@{usb11spec.h}!USB_PID_OUT@{USB\_\-PID\_\-OUT}}\index{USB_PID_OUT@{USB\_\-PID\_\-OUT}!usb11spec.h@{usb11spec.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define USB\_\-PID\_\-OUT~0x01}\label{usb11spec_8h_4b97f36dd81efb778befbe96a31fecdb}\index{usb11spec.h@{usb11spec.h}!USB_PID_PRE@{USB\_\-PID\_\-PRE}}\index{USB_PID_PRE@{USB\_\-PID\_\-PRE}!usb11spec.h@{usb11spec.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define USB\_\-PID\_\-PRE~0x0C}\label{usb11spec_8h_5226a94b51443feb3b9331c86c9636e8}\index{usb11spec.h@{usb11spec.h}!USB_PID_SETUP@{USB\_\-PID\_\-SETUP}}\index{USB_PID_SETUP@{USB\_\-PID\_\-SETUP}!usb11spec.h@{usb11spec.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define USB\_\-PID\_\-SETUP~0x0D}\label{usb11spec_8h_22045a5f02b4ecc93cbfd3808183bc60}\index{usb11spec.h@{usb11spec.h}!USB_PID_SOF@{USB\_\-PID\_\-SOF}}\index{USB_PID_SOF@{USB\_\-PID\_\-SOF}!usb11spec.h@{usb11spec.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define USB\_\-PID\_\-SOF~0x05}\label{usb11spec_8h_ea8d5cf45375810db79ec1ba40433b36}\index{usb11spec.h@{usb11spec.h}!USB_PID_STALL@{USB\_\-PID\_\-STALL}}\index{USB_PID_STALL@{USB\_\-PID\_\-STALL}!usb11spec.h@{usb11spec.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define USB\_\-PID\_\-STALL~0x0E}\label{usb11spec_8h_e9e1ba227388e92e0cc65290a75204b7}\subsection{Typedef Documentation}\index{usb11spec.h@{usb11spec.h}!usb_device_request@{usb\_\-device\_\-request}}\index{usb_device_request@{usb\_\-device\_\-request}!usb11spec.h@{usb11spec.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}typedef struct {\bf usb\_\-device\_\-request\_\-t} {\bf usb\_\-device\_\-request}}\label{usb11spec_8h_31715f581dd75b42f11e08513777272c}

⌨️ 快捷键说明

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