| 数据搜索系统,热门电子元器件搜索 |
|
UM0463 数据表(PDF) 23 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0463 数据表(HTML) 23 Page - STMicroelectronics |
|
23 / 30 page ![]() UM0463 USB control functions for nondata transfer 23/30 5 USB control functions for nondata transfer The user application should be aware of a few other USB functions. Same as the data transfer function, these functions are part of the USB library. 5.1 Library initialization To use the library certain initializations need to be done. If the USB support is needed in the application, then the application has to initialize the USB by calling the Init_USB function and the descriptor table pointer by the descriptor table address. The Init_USB() function initializes the USB state machine and the configuration state. This function also enables the Reset interrupt of the USB along with suspend and End of suspend interrupts. After calling this function, the library will be able to receive the reset from USB. 5.2 Device reset When the device receives a reset request from the USB, the library initializes the endpoint 0 to acknowledge the SETUP token from host. It then calls the callback function USER_USB_Reset(). In this function, the user code should reset and initialize the application on both software and hardware. This function is part of the interrupt routine. The restriction of an interrupt routine is applied. 5.3 Start of frame If the start of frame interrupt is enabled, the callback function USER_USB_SOF() is called every time a start of frame (SOF) token arrives. In this function, the user code can perform some timing related operations. This function is part of the interrupt routine. The restriction of an interrupt routine is applied. Two functions are provided to enable and disable the interrupt of arrival of SOF: void Enable_SOF(void); void Disable_SOF(void); |
|
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |