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

📄 at90usb1287_8h.tex

📁 开源的usbport 的usb主机协议栈,本协议栈可以支持多种不同的usb控制芯片
💻 TEX
📖 第 1 页 / 共 2 页
字号:
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define Usb\-Disable\-UID\_\-Mode\-Selection()~Clear\-Bit(UHWCON, UIDE)}\label{at90usb1287_8h_6dbce2df7363e97acf1a3b0fa1fffd96}\index{at90usb1287.h@{at90usb1287.h}!UsbDisableUVCON_PinControl@{UsbDisableUVCON\_\-PinControl}}\index{UsbDisableUVCON_PinControl@{UsbDisableUVCON\_\-PinControl}!at90usb1287.h@{at90usb1287.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define Usb\-Disable\-UVCON\_\-Pin\-Control()~Clear\-Bit(UHWCON, UVCONE)}\label{at90usb1287_8h_b243ad708547e8fd98c8cc5d62954955}\index{at90usb1287.h@{at90usb1287.h}!UsbDisableVBUS_TransitionInt@{UsbDisableVBUS\_\-TransitionInt}}\index{UsbDisableVBUS_TransitionInt@{UsbDisableVBUS\_\-TransitionInt}!at90usb1287.h@{at90usb1287.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define Usb\-Disable\-VBUS\_\-Transition\-Int()~Clear\-Bit(USBCON, VBUSTE)}\label{at90usb1287_8h_59c2d06da4f4a4086b3ce31f2ccfc91c}\index{at90usb1287.h@{at90usb1287.h}!UsbEnableClock@{UsbEnableClock}}\index{UsbEnableClock@{UsbEnableClock}!at90usb1287.h@{at90usb1287.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define Usb\-Enable\-Clock()~Clear\-Bit(USBCON, FRZCLK)}\label{at90usb1287_8h_7fff55826a16d37ff120586f647e60be}\index{at90usb1287.h@{at90usb1287.h}!UsbEnableClock@{UsbEnableClock}}\index{UsbEnableClock@{UsbEnableClock}!at90usb1287.h@{at90usb1287.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define Usb\-Enable\-Clock()~Clear\-Bit(USBCON, FRZCLK)}\label{at90usb1287_8h_7fff55826a16d37ff120586f647e60be}\index{at90usb1287.h@{at90usb1287.h}!UsbEnableController@{UsbEnableController}}\index{UsbEnableController@{UsbEnableController}!at90usb1287.h@{at90usb1287.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define Usb\-Enable\-Controller()~Set\-Bit(USBCON, USBE)}\label{at90usb1287_8h_d30258b3727c819f50ba618b9f4c0331}\index{at90usb1287.h@{at90usb1287.h}!UsbEnableID_TransitionInt@{UsbEnableID\_\-TransitionInt}}\index{UsbEnableID_TransitionInt@{UsbEnableID\_\-TransitionInt}!at90usb1287.h@{at90usb1287.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define Usb\-Enable\-ID\_\-Transition\-Int()~Set\-Bit(USBCON, IDTE)}\label{at90usb1287_8h_4475fba351838ccd4c219598e843ad2f}\index{at90usb1287.h@{at90usb1287.h}!UsbEnableOTG_Pad@{UsbEnableOTG\_\-Pad}}\index{UsbEnableOTG_Pad@{UsbEnableOTG\_\-Pad}!at90usb1287.h@{at90usb1287.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define Usb\-Enable\-OTG\_\-Pad()~Set\-Bit(USBCON, OTGPADE)}\label{at90usb1287_8h_90c696b9a99fc871213613e95403dc9c}\index{at90usb1287.h@{at90usb1287.h}!UsbEnablePadsRegulator@{UsbEnablePadsRegulator}}\index{UsbEnablePadsRegulator@{UsbEnablePadsRegulator}!at90usb1287.h@{at90usb1287.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define Usb\-Enable\-Pads\-Regulator()~Set\-Bit(UHWCON, UVREGE)}\label{at90usb1287_8h_0659d6e10d82795daf57a4ebf033f388}\index{at90usb1287.h@{at90usb1287.h}!UsbEnablePLL@{UsbEnablePLL}}\index{UsbEnablePLL@{UsbEnablePLL}!at90usb1287.h@{at90usb1287.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define Usb\-Enable\-PLL()~Set\-Bit(PLLCSR, PLLE)}\label{at90usb1287_8h_e4ce2818c094ba7197f7ee3c55ed6975}\index{at90usb1287.h@{at90usb1287.h}!UsbEnableUID_ModeSelection@{UsbEnableUID\_\-ModeSelection}}\index{UsbEnableUID_ModeSelection@{UsbEnableUID\_\-ModeSelection}!at90usb1287.h@{at90usb1287.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define Usb\-Enable\-UID\_\-Mode\-Selection()~Set\-Bit(UHWCON, UIDE)}\label{at90usb1287_8h_7a4079853629dced7f373de393a5a5f9}\index{at90usb1287.h@{at90usb1287.h}!UsbEnableUVCON_PinControl@{UsbEnableUVCON\_\-PinControl}}\index{UsbEnableUVCON_PinControl@{UsbEnableUVCON\_\-PinControl}!at90usb1287.h@{at90usb1287.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define Usb\-Enable\-UVCON\_\-Pin\-Control()~Set\-Bit(UHWCON, UVCONE)}\label{at90usb1287_8h_50cf6ab6f0c9878f9a18c9fe183912eb}\index{at90usb1287.h@{at90usb1287.h}!UsbEnableVBUS_TransitionInt@{UsbEnableVBUS\_\-TransitionInt}}\index{UsbEnableVBUS_TransitionInt@{UsbEnableVBUS\_\-TransitionInt}!at90usb1287.h@{at90usb1287.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define Usb\-Enable\-VBUS\_\-Transition\-Int()~Set\-Bit(USBCON, VBUSTE)}\label{at90usb1287_8h_501696b65dee917c4a1d46fd1306d62e}\index{at90usb1287.h@{at90usb1287.h}!UsbFreezeClock@{UsbFreezeClock}}\index{UsbFreezeClock@{UsbFreezeClock}!at90usb1287.h@{at90usb1287.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define Usb\-Freeze\-Clock()~Set\-Bit(USBCON, FRZCLK)}\label{at90usb1287_8h_d0df5e513f5427a9903eb037ac600fe4}\index{at90usb1287.h@{at90usb1287.h}!UsbIsClockFreezed@{UsbIsClockFreezed}}\index{UsbIsClockFreezed@{UsbIsClockFreezed}!at90usb1287.h@{at90usb1287.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define Usb\-Is\-Clock\-Freezed()~Bit\-Is\-Set(USBCON, FRZCLK)}\label{at90usb1287_8h_2e53291cfe94a16559b3e764a435f20d}\index{at90usb1287.h@{at90usb1287.h}!UsbIsControllerEnabled@{UsbIsControllerEnabled}}\index{UsbIsControllerEnabled@{UsbIsControllerEnabled}!at90usb1287.h@{at90usb1287.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define Usb\-Is\-Controller\-Enabled()~Bit\-Is\-Set(USBCON, USBE)}\label{at90usb1287_8h_330212cd8a2053bd2162048f024dc4f5}\index{at90usb1287.h@{at90usb1287.h}!UsbIsFullSpeedMode@{UsbIsFullSpeedMode}}\index{UsbIsFullSpeedMode@{UsbIsFullSpeedMode}!at90usb1287.h@{at90usb1287.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define Usb\-Is\-Full\-Speed\-Mode()~Bit\-Is\-Set(USBSTA, SPEED)}\label{at90usb1287_8h_127eae50fd60ee77c3ee8ee2517ff93f}\index{at90usb1287.h@{at90usb1287.h}!UsbIsIDTI_FlagSet@{UsbIsIDTI\_\-FlagSet}}\index{UsbIsIDTI_FlagSet@{UsbIsIDTI\_\-FlagSet}!at90usb1287.h@{at90usb1287.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define Usb\-Is\-IDTI\_\-Flag\-Set()~Bit\-Is\-Set(USBINT, IDTI)}\label{at90usb1287_8h_39e7d835684bc48f5d94e0c640435777}\index{at90usb1287.h@{at90usb1287.h}!UsbIsLowSpeedMode@{UsbIsLowSpeedMode}}\index{UsbIsLowSpeedMode@{UsbIsLowSpeedMode}!at90usb1287.h@{at90usb1287.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define Usb\-Is\-Low\-Speed\-Mode()~Bit\-Is\-Clear(USBSTA, SPEED)}\label{at90usb1287_8h_f16928470d4ef6f10899be2ff090e310}\index{at90usb1287.h@{at90usb1287.h}!UsbIsPLL_Locked@{UsbIsPLL\_\-Locked}}\index{UsbIsPLL_Locked@{UsbIsPLL\_\-Locked}!at90usb1287.h@{at90usb1287.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define Usb\-Is\-PLL\_\-Locked()~Bit\-Is\-Set(PLLCSR, PLOCK)}\label{at90usb1287_8h_70ceadcb5d3b15213555e6822c0d9e06}\index{at90usb1287.h@{at90usb1287.h}!UsbIsUID_PinHigh@{UsbIsUID\_\-PinHigh}}\index{UsbIsUID_PinHigh@{UsbIsUID\_\-PinHigh}!at90usb1287.h@{at90usb1287.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define Usb\-Is\-UID\_\-Pin\-High()~Bit\-Is\-Set(USBSTA, ID)}\label{at90usb1287_8h_a148bfc03f31aead10bc5b41f43bbc00}\index{at90usb1287.h@{at90usb1287.h}!UsbIsVBUS_PinHigh@{UsbIsVBUS\_\-PinHigh}}\index{UsbIsVBUS_PinHigh@{UsbIsVBUS\_\-PinHigh}!at90usb1287.h@{at90usb1287.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define Usb\-Is\-VBUS\_\-Pin\-High()~Bit\-Is\-Set(USBSTA, VBUS)}\label{at90usb1287_8h_4f56eb8512f2dd75b80603f7697d9c3a}\index{at90usb1287.h@{at90usb1287.h}!UsbIsVBUSTI_FlagSet@{UsbIsVBUSTI\_\-FlagSet}}\index{UsbIsVBUSTI_FlagSet@{UsbIsVBUSTI\_\-FlagSet}!at90usb1287.h@{at90usb1287.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define Usb\-Is\-VBUSTI\_\-Flag\-Set()~Bit\-Is\-Set(USBINT, VBUSTI)}\label{at90usb1287_8h_47b74a292e7a4684eaa7b866c86e8231}\index{at90usb1287.h@{at90usb1287.h}!UsbSetDeviceMode@{UsbSetDeviceMode}}\index{UsbSetDeviceMode@{UsbSetDeviceMode}!at90usb1287.h@{at90usb1287.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define Usb\-Set\-Device\-Mode()~Set\-Bit(UHWCON, UIMOD)}\label{at90usb1287_8h_4b5e764f8a0390494ffa735b419a734b}\index{at90usb1287.h@{at90usb1287.h}!UsbSetDeviceModeReg@{UsbSetDeviceModeReg}}\index{UsbSetDeviceModeReg@{UsbSetDeviceModeReg}!at90usb1287.h@{at90usb1287.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define Usb\-Set\-Device\-Mode\-Reg()~Clear\-Bit(USBCON, HOST)}\label{at90usb1287_8h_1cf7478c0ad09bd307dba17c50f368ad}\index{at90usb1287.h@{at90usb1287.h}!UsbSetHostMode@{UsbSetHostMode}}\index{UsbSetHostMode@{UsbSetHostMode}!at90usb1287.h@{at90usb1287.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define Usb\-Set\-Host\-Mode()~Clear\-Bit(UHWCON, UIMOD)}\label{at90usb1287_8h_d0c2c5bba0e9cdcecaf36bd698b4d6d7}\index{at90usb1287.h@{at90usb1287.h}!UsbSetHostModeReg@{UsbSetHostModeReg}}\index{UsbSetHostModeReg@{UsbSetHostModeReg}!at90usb1287.h@{at90usb1287.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define Usb\-Set\-Host\-Mode\-Reg()~Set\-Bit(USBCON, HOST)}\label{at90usb1287_8h_d5db2c8d360299e048bcf29f352711c6}\index{at90usb1287.h@{at90usb1287.h}!UsbSetPLL_CPU_Frequency@{UsbSetPLL\_\-CPU\_\-Frequency}}\index{UsbSetPLL_CPU_Frequency@{UsbSetPLL\_\-CPU\_\-Frequency}!at90usb1287.h@{at90usb1287.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define Usb\-Set\-PLL\_\-CPU\_\-Frequency()~PLLCSR = (\_\-pre\_\-$<$$<$2)}\label{at90usb1287_8h_df01ce81a9e439634ef15058b61d8c4e}\index{at90usb1287.h@{at90usb1287.h}!UsbWaitPLL_Locked@{UsbWaitPLL\_\-Locked}}\index{UsbWaitPLL_Locked@{UsbWaitPLL\_\-Locked}!at90usb1287.h@{at90usb1287.h}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define Usb\-Wait\-PLL\_\-Locked()~while (!(PLLCSR \& (1$<$$<$PLOCK)));}\label{at90usb1287_8h_703c1cf94f2c6aa1bb4593e2adc13647}

⌨️ 快捷键说明

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