| 전자부품 데이터시트 검색엔진 |
|
UM0290 데이터시트(PDF) 17 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0290 데이터시트(HTML) 17 Page - STMicroelectronics |
|
17 / 76 page ![]() UM0290 STR7/STR9 USB firmware library 17/76 3. Device Property Structure: The USB core dispatches the control to the user program whenever it is necessary. User handling procedures are given in an array of Device_Property. The structure has the type: DEVICE_PROP: typedef struct _DEVICE_PROP { void (*Init)(void); void (*Reset)(void); void (*Process_Status_IN)(void); void (*Process_Status_OUT)(void); RESULT (*Class_Data_Setup)(u8 RequestNo); RESULT (*Class_NoData_Setup)(u8 RequestNo); RESULT (*Class_Get_Interface_Setting)(u8 Interface,u8 AlternateSetting); u8* (*GetDeviceDescriptor)(u16 Length); u8* (*GetConfigDescriptor)(u16 Length); u8* (*GetStringDescriptor)(u16 Length); u8 MaxPacketSize; } DEVICE_PROP; 4. User Standard Request Structure: The User Standard Request Structure is the interface between the user code and the management of the standard request. The structure has the type: USER_STANDARD_REQUESTS: typedef struct _USER_STANDARD_REQUESTS { void(*User_GetConfiguration)(void); void(*User_SetConfiguration)(void); void(*User_GetInterface)(void); void(*User_SetInterface)(void); void(*User_GetStatus)(void); void(*User_ClearFeature)(void); void(*User_SetEndPointFeature)(void); void(*User_SetDeviceFeature)(void); void(*User_SetDeviceAddress)(void); } USER_STANDARD_REQUESTS; If the user wants to implement specific code after receiving a standard USB request he has to use the corresponding functions in this structure. An application developer must implement tree structures having the DEVICE_PROP, Device_Table and USER_STANDARD_REQUEST types in order to manage class requests and application specific controls. The different fields of these structures are described in the next section. 1.3 Application interface The modules of the Application interface are provided as a template, they must be tailored by the application developer for each application. Table 3 shows the different modules used in the application interface. |
|
링크 URL |
| 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 |