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

📄 at90usb1287_8h.tex

📁 开源的usbport 的usb主机协议栈,本协议栈可以支持多种不同的usb控制芯片
💻 TEX
📖 第 1 页 / 共 2 页
字号:
\section{/home/bene/projects/sl811/usbstack/host/at90usb1287.h File Reference}\label{at90usb1287_8h}\index{/home/bene/projects/sl811/usbstack/host/at90usb1287.h@{/home/bene/projects/sl811/usbstack/host/at90usb1287.h}}\subsection*{Defines}\begin{CompactItemize}\item \#define {\bf Set\-Bit}(adr, bit)~(adr $|$=  (1$<$$<$bit))\item \#define {\bf Clear\-Bit}(adr, bit)~(adr \&= $\sim$(1$<$$<$bit))\item \#define {\bf Bit\-Is\-Set}(adr, bit)~(adr \& (1$<$$<$bit))\item \#define {\bf Bit\-Is\-Clear}(adr, bit)~(!(adr \& (1$<$$<$bit)))\item \#define {\bf Usb\-Set\-PLL\_\-CPU\_\-Frequency}()~PLLCSR = (\_\-pre\_\-$<$$<$2)\item \#define {\bf Usb\-Enable\-PLL}()~Set\-Bit(PLLCSR, PLLE)\item \#define {\bf Usb\-Disable\-PLL}()~Clear\-Bit(PLLCSR, PLLE)\item \#define {\bf Usb\-Is\-PLL\_\-Locked}()~Bit\-Is\-Set(PLLCSR, PLOCK)\item \#define {\bf Usb\-Wait\-PLL\_\-Locked}()~while (!(PLLCSR \& (1$<$$<$PLOCK)));\item \#define {\bf Usb\-Enable\-Clock}()~Clear\-Bit(USBCON, FRZCLK)\item \#define {\bf Usb\-Set\-Device\-Mode}()~Set\-Bit(UHWCON, UIMOD)\item \#define {\bf Usb\-Set\-Host\-Mode}()~Clear\-Bit(UHWCON, UIMOD)\item \#define {\bf Usb\-Enable\-UID\_\-Mode\-Selection}()~Set\-Bit(UHWCON, UIDE)\item \#define {\bf Usb\-Disable\-UID\_\-Mode\-Selection}()~Clear\-Bit(UHWCON, UIDE)\item \#define {\bf Usb\-Enable\-UVCON\_\-Pin\-Control}()~Set\-Bit(UHWCON, UVCONE)\item \#define {\bf Usb\-Disable\-UVCON\_\-Pin\-Control}()~Clear\-Bit(UHWCON, UVCONE)\item \#define {\bf Usb\-Enable\-Pads\-Regulator}()~Set\-Bit(UHWCON, UVREGE)\item \#define {\bf Usb\-Disable\-Pads\-Regulator}()~Clear\-Bit(UHWCON, UVREGE)\item \#define {\bf Usb\-Enable\-Controller}()~Set\-Bit(USBCON, USBE)\item \#define {\bf Usb\-Disable\-Controller}()~Clear\-Bit(USBCON, USBE)\item \#define {\bf Usb\-Is\-Controller\-Enabled}()~Bit\-Is\-Set(USBCON, USBE)\item \#define {\bf Usb\-Set\-Host\-Mode\-Reg}()~Set\-Bit(USBCON, HOST)\item \#define {\bf Usb\-Set\-Device\-Mode\-Reg}()~Clear\-Bit(USBCON, HOST)\item \#define {\bf Usb\-Freeze\-Clock}()~Set\-Bit(USBCON, FRZCLK)\item \#define {\bf Usb\-Enable\-Clock}()~Clear\-Bit(USBCON, FRZCLK)\item \#define {\bf Usb\-Is\-Clock\-Freezed}()~Bit\-Is\-Set(USBCON, FRZCLK)\item \#define {\bf Usb\-Enable\-OTG\_\-Pad}()~Set\-Bit(USBCON, OTGPADE)\item \#define {\bf Usb\-Disable\-OTG\_\-Pad}()~Clear\-Bit(USBCON, OTGPADE)\item \#define {\bf Usb\-Enable\-ID\_\-Transition\-Int}()~Set\-Bit(USBCON, IDTE)\item \#define {\bf Usb\-Disable\-ID\_\-Transition\-Int}()~Clear\-Bit(USBCON, IDTE)\item \#define {\bf Usb\-Enable\-VBUS\_\-Transition\-Int}()~Set\-Bit(USBCON, VBUSTE)\item \#define {\bf Usb\-Disable\-VBUS\_\-Transition\-Int}()~Clear\-Bit(USBCON, VBUSTE)\item \#define {\bf Usb\-Is\-Full\-Speed\-Mode}()~Bit\-Is\-Set(USBSTA, SPEED)\item \#define {\bf Usb\-Is\-Low\-Speed\-Mode}()~Bit\-Is\-Clear(USBSTA, SPEED)\item \#define {\bf Usb\-Is\-UID\_\-Pin\-High}()~Bit\-Is\-Set(USBSTA, ID)\item \#define {\bf Usb\-Is\-VBUS\_\-Pin\-High}()~Bit\-Is\-Set(USBSTA, VBUS)\item \#define {\bf Usb\-Is\-IDTI\_\-Flag\-Set}()~Bit\-Is\-Set(USBINT, IDTI)\item \#define {\bf Usb\-Clear\-IDTI\_\-Flag}()~Clear\-Bit(USBINT, IDTI)\item \#define {\bf Usb\-Is\-VBUSTI\_\-Flag\-Set}()~Bit\-Is\-Set(USBINT, VBUSTI)\item \#define {\bf Usb\-Clear\-VBUSTI\_\-Flag}()~Clear\-Bit(USBINT, VBUSTI)\end{CompactItemize}\subsection{Define Documentation}\index{at90usb1287.h@{at90usb1287.h}!BitIsClear@{BitIsClear}}\index{BitIsClear@{BitIsClear}!at90usb1287.h@{at90usb1287.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define Bit\-Is\-Clear(adr, bit)~(!(adr \& (1$<$$<$bit)))}\label{at90usb1287_8h_e5ac4a63677734ada817b794e121fefa}\index{at90usb1287.h@{at90usb1287.h}!BitIsSet@{BitIsSet}}\index{BitIsSet@{BitIsSet}!at90usb1287.h@{at90usb1287.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define Bit\-Is\-Set(adr, bit)~(adr \& (1$<$$<$bit))}\label{at90usb1287_8h_97a2247046a24dadd3cbb21b3f3c1971}\index{at90usb1287.h@{at90usb1287.h}!ClearBit@{ClearBit}}\index{ClearBit@{ClearBit}!at90usb1287.h@{at90usb1287.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define Clear\-Bit(adr, bit)~(adr \&= $\sim$(1$<$$<$bit))}\label{at90usb1287_8h_bf6927dc822d11d0191cb3c5d962839d}\index{at90usb1287.h@{at90usb1287.h}!SetBit@{SetBit}}\index{SetBit@{SetBit}!at90usb1287.h@{at90usb1287.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define Set\-Bit(adr, bit)~(adr $|$=  (1$<$$<$bit))}\label{at90usb1287_8h_66c75fe041d39f7198ac5d8a1a8f3f77}\index{at90usb1287.h@{at90usb1287.h}!UsbClearIDTI_Flag@{UsbClearIDTI\_\-Flag}}\index{UsbClearIDTI_Flag@{UsbClearIDTI\_\-Flag}!at90usb1287.h@{at90usb1287.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define Usb\-Clear\-IDTI\_\-Flag()~Clear\-Bit(USBINT, IDTI)}\label{at90usb1287_8h_8e63c5c4b3422ed6aa62924cecc9ecd8}\index{at90usb1287.h@{at90usb1287.h}!UsbClearVBUSTI_Flag@{UsbClearVBUSTI\_\-Flag}}\index{UsbClearVBUSTI_Flag@{UsbClearVBUSTI\_\-Flag}!at90usb1287.h@{at90usb1287.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define Usb\-Clear\-VBUSTI\_\-Flag()~Clear\-Bit(USBINT, VBUSTI)}\label{at90usb1287_8h_48ab78bc582b9fb0a59bf73cee952690}\index{at90usb1287.h@{at90usb1287.h}!UsbDisableController@{UsbDisableController}}\index{UsbDisableController@{UsbDisableController}!at90usb1287.h@{at90usb1287.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define Usb\-Disable\-Controller()~Clear\-Bit(USBCON, USBE)}\label{at90usb1287_8h_ecdc04e3a7e0f05a212586a26762757b}\index{at90usb1287.h@{at90usb1287.h}!UsbDisableID_TransitionInt@{UsbDisableID\_\-TransitionInt}}\index{UsbDisableID_TransitionInt@{UsbDisableID\_\-TransitionInt}!at90usb1287.h@{at90usb1287.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define Usb\-Disable\-ID\_\-Transition\-Int()~Clear\-Bit(USBCON, IDTE)}\label{at90usb1287_8h_e6e62df5204701da60fc0339dfeff474}\index{at90usb1287.h@{at90usb1287.h}!UsbDisableOTG_Pad@{UsbDisableOTG\_\-Pad}}\index{UsbDisableOTG_Pad@{UsbDisableOTG\_\-Pad}!at90usb1287.h@{at90usb1287.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define Usb\-Disable\-OTG\_\-Pad()~Clear\-Bit(USBCON, OTGPADE)}\label{at90usb1287_8h_7fcf78671ffb50a3a96f463e0f2bad01}\index{at90usb1287.h@{at90usb1287.h}!UsbDisablePadsRegulator@{UsbDisablePadsRegulator}}\index{UsbDisablePadsRegulator@{UsbDisablePadsRegulator}!at90usb1287.h@{at90usb1287.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define Usb\-Disable\-Pads\-Regulator()~Clear\-Bit(UHWCON, UVREGE)}\label{at90usb1287_8h_d6011b8832ead5417050acfdff065a24}\index{at90usb1287.h@{at90usb1287.h}!UsbDisablePLL@{UsbDisablePLL}}\index{UsbDisablePLL@{UsbDisablePLL}!at90usb1287.h@{at90usb1287.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define Usb\-Disable\-PLL()~Clear\-Bit(PLLCSR, PLLE)}\label{at90usb1287_8h_b74fb663701287cc0ebc5aa38aff6d9d}\index{at90usb1287.h@{at90usb1287.h}!UsbDisableUID_ModeSelection@{UsbDisableUID\_\-ModeSelection}}\index{UsbDisableUID_ModeSelection@{UsbDisableUID\_\-ModeSelection}!at90usb1287.h@{at90usb1287.h}}

⌨️ 快捷键说明

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