| Electronic Components Datasheet Search |
|
UM0290 Datasheet(PDF) 18 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0290 Datasheet(HTML) 18 Page - STMicroelectronics |
|
18 / 76 page ![]() STR7/STR9 USB firmware library UM0290 18/76 Table 3. Application interface modules 1.3.1 usb_istr(.c) USB_istr module provides a function named USB_Istr() which handles all USB macrocell interrupts. For each USB interrupt source a callback routine named XXX_Callback (for example, RESET_Callback ) is provided in order to implement a user interrupt handler. To enable the processing of each callback routines, a preprocessor switch named XXX_Callback must be defined in the USB configuration file USB_conf.h. 1.3.2 usb_conf(.h) The usb_conf.h is used to: ● Select the microcontroller: the user has to select the microcontroller. For the STR91x the user has also to select the access mode to the USB IP (buffered or non-buffered) by uncommenting the dedicated line: //#define STR7xx //#define STR71x //#definr STR75x //#define STR91x //#define STR91x_USB_BUFFERED //#define STR91x_USB_NON_BUFFERED ● Define the BTABLE and all endpoint addresses in the PMA. ● Define the interrupt mask according to the needed events. 1.3.3 usb_endp (.c) USB_endp module is used for handling the CTR “correct transfer” routines for endpoints different from endpoint 0 (EP0). For enabling the processing of these call-back handlers a pre-processor switch named EPx_IN_Callback (for IN transfer) or EPx_OUT_Callback (for OUT transfer) must be defined in the USB_conf.h file. 1.3.4 usb_prop (.c , .h) The USB_prop module is used for implementing the Device_Property, Device_Table and USER_STANDARD_REQUEST structures used by the USB core. File Description usb_istr (.c,.h) USB interrupt handler functions usb_conf.h USB configuration file usb_prop (.c, .h) USB application specific properties usb_endp.c CTR interrupt handlers routines for non control endpoints usb_pwr (.h, .c) USB power management module usb_desc (.c, .h) USB descriptors |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |