数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

AN1325 数据表(PDF) 9 Page - STMicroelectronics

部件名 AN1325
功能描述  This application note describes
PDF  15 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

AN1325 数据表(HTML) 9 Page - STMicroelectronics

Back Button AN1325 Datasheet HTML 5Page - STMicroelectronics AN1325 Datasheet HTML 6Page - STMicroelectronics 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 Next Button
Zoom Inzoom in Zoom Outzoom out
 9 / 15 page
background image
9/15
USING THE ST7 USB LOW-SPEED LIBRARY V4.2x
4.2 SHARED FUNCTIONS
The table below shows all the functions shared between the Library and the Application. Some
functions have been written especially to transfer data over the USB. In order to improve the
flexibility and control over the USB flow some functions have been changed compared to the
Library Version 3. These new functions will allow also to build a report directly into the End-
Point buffer in case the RAM size is critical. The most important functions are described in de-
tail below.
USBbRequest
USB_Var.c
USB_Def.h
Specific request. Refer to USB spec ver 1.1, chap 9.3, page
183. Possible values are :
GET_STATUS, CLEAR_FEATURE_STALL,
SET_FEATURE_STALL, SET_ADDRESS,
GET_DESCRIPTOR, SET_DESCRIPTOR,
GET_CONFIGURATION, SET_CONFIGURATION,
GET_INTERFACE, SET_INTERFACE
USBwValue[2]
USB_Var.c
Word-sized field that varies from request. It is used to pass a pa-
rameter to the device, specific to the request. Refer to USB spec
ver 1.1, chap 9.3, page 183.
USBwIndex
USB_Var.c
Word-sized field that varies from request. Typically used to pass
an index or offset. Refer to USB spec ver 1.1, chap 9.3, page
183.
USBwLength
USB_Var.c
Number of bytes to transfer if there is a data stage. Refer to USB
spec ver 1.1, chap 9.3, page 183
USBDataXferStatus
USB_Var.c
USB_Def.h
Used to send and receive more than 8 bytes for HID requests
(i.e. SetFeature, GetFeature, etc.)
Function
File
Description
Init_USB_HW
USB_Lib.c
Switch ON the USB cell (connect the peripheral to
the bus) and initialize Library variables.
Disable_USB_HW
USB_Lib.c
Switch OFF the USB cell (disconnect the peripheral
from the bus) and reset Library variables.
Handle_USB_Events
USB_Lib.c
Manage USB flow (interrupts) on EndPoint0 and
process standard requests only. Manage also all re-
quests for HID class descriptors (HID, Report or
Physical). It’s also responsible for STALLing all un-
supported and invalid USB requests.
Enable_STATUS_Stage
USB_Lib.c
Allow ST7 to ACK or STALL incoming status stage
after completion of a non standard request. This
function is called by Application once the
APP_REQUESTS processing is done in the
Handle_APP_Requests function.
Variable
Declaration/
Aliases
Description



Html Pages

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


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
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