전자부품 데이터시트 검색엔진
  Korean  ▼
ALLDATASHEET.CO.KR

X  

UM0290 데이터시트(PDF) 19 Page - STMicroelectronics

부품명 UM0290
상세설명  This document presents a description
PDF  76 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
제조업체  STMICROELECTRONICS [STMicroelectronics]
홈페이지  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

UM0290 데이터시트(HTML) 19 Page - STMicroelectronics

Back Button UM0290 Datasheet HTML 15Page - STMicroelectronics UM0290 Datasheet HTML 16Page - STMicroelectronics UM0290 Datasheet HTML 17Page - STMicroelectronics UM0290 Datasheet HTML 18Page - STMicroelectronics UM0290 Datasheet HTML 19Page - STMicroelectronics UM0290 Datasheet HTML 20Page - STMicroelectronics UM0290 Datasheet HTML 21Page - STMicroelectronics UM0290 Datasheet HTML 22Page - STMicroelectronics UM0290 Datasheet HTML 23Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 19 / 76 page
background image
UM0290
STR7/STR9 USB firmware library
19/76
1.
Device property implementation
The device property structure fields are described below:
–
void Init(void): Init procedure of the USB IP. It is called once at the start of the
application to manage the initialization process.
–
void Reset(void): Reset procedure of the USB IP. It is called when the macrocell
receives a RESET signal from the bus. The user program should set up the
endpoints in this procedure, in order to set the default control endpoint and enable
them to receive.
–
void Process_Status_IN(void): Callback procedure, it is called when a status in a
stage is finished. The user program can take control with this callback to perform
class and application related processes.
–
void Process_Status_OUT(void): Callback procedure, it is called when a status
out stage is finished. As with Process_Status_IN, the user program can perform
actions after a status out stage.
–
RESULT(a) *(Class_Data_Setup)(BYTE RequestNo): Callback procedure, it is
called when a class request is recognized and this request needs a data stage.
The core can not process such requests. In this case, the user program gets the
chance to use custom procedures to analyze the request, and prepare the data
and pass the data to the USB core to exchange with the host. The parameter
RequestNo indicates the request number. The return parameter of this function
has the type: RESULT. It indicates to the core the result of the request processing.
–
RESULT (*Class_NoData_Setup)(BYTE RequestNo) Callback procedure, it is
called when a non-standard device request is recognized which does not need a
data stage. The core can not process such requests. The user program can have
the chance to use custom procedures to analyze the request and take action. The
return parameter of this function has type: RESULT. It indicates to the core the
result of the request processing.
–
RESULT (*Class_GET_Interface_Setting)(u8 Interface, u8 AlternateSetting):
This routine is used to test the received set interface standard request. The user
must verify the "Interface" and "AlternateSetting" depending on the specific
implementation and return the USB_UNSUPPORT(a) and in case of error in this two
fields.
–
BYTE* GetDeviceDescriptor(WORD Length): The core gets the device
descriptor.
–
BYTE* GetConfigDescriptor(WORD Length): The core gets the configuration
descriptor.
–
BYTE* GetStringDescriptor(WORD Length): The core gets the string descriptor.
–
WORD MaxPacketSize: The maximum packet size of the device default control
endpoint.
a.
* The RESULT type is the following:
typedef enum _RESULT {
USB_SUCCESS = 0,/* request process sucessfully */
USB_ERROR,
/* error
USB_UNSUPPORT,
/* request not supported
USB_NOT_READY/* The request process has not been finished,*/
/* endpoint will be NAK to further requests*/
} RESULT;



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76


데이터시트 다운로드

Go To PDF Page


링크 URL



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