Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN1325 Datasheet(PDF) 11 Page - STMicroelectronics

Part # AN1325
Description  This application note describes
PDF  15 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN1325 Datasheet(HTML) 11 Page - STMicroelectronics

Back Button AN1325 Datasheet HTML 7Page - STMicroelectronics AN1325 Datasheet HTML 8Page - STMicroelectronics AN1325 Datasheet HTML 9Page - STMicroelectronics AN1325 Datasheet HTML 10Page - STMicroelectronics AN1325 Datasheet HTML 11Page - STMicroelectronics AN1325 Datasheet HTML 12Page - STMicroelectronics AN1325 Datasheet HTML 13Page - STMicroelectronics AN1325 Datasheet HTML 14Page - STMicroelectronics AN1325 Datasheet HTML 15Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 11 / 15 page
background image
11/15
USING THE ST7 USB LOW-SPEED LIBRARY V4.2x
4.2.1 Handle_USB_Events function
Most of the work of the USB Library is performed by this function and the private USB Library
functions that it calls. The events to be handled are the assorted USB interrupts that may
occur as a result of USB transaction or changes in the state of the bus. The interrupt service
routine (INT_Usb) copies the event information to a variable (USBCtrFlag) where the
“Handle_USB_Events” function can access it. The event processing occurs when this function
is called from the main loop of the application.
This function is responsible for handling all standard (“Chapter 9”) requests as well as all re-
quests for HID class descriptors (HID, Report or Physical). It is also responsible for STALLing
all unsupported (as indicated via the switches in USB_Opts.h) and invalid USB requests.
Note: Some USB requests will require attention from the application side of the code (non-
descriptor HID requests and all Vendor-specific requests). These requests are addressed in
the Application function “Do_App_Requests”.
Figure 2: Handle_USB_Events architecture
?
Return
YES
NO
void Handle_USB_Events (void)
Correct IT transfer
by H/W
detected
on EP0
[SETUP or IN or OUT]
Process the Correct IT Transfer
Re-enable transmission/Reception
on EndPoint0
on EndPoint0



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


Datasheet Download

Go To PDF Page


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


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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