| Electronic Components Datasheet Search |
|
AN1325 Datasheet(PDF) 8 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN1325 Datasheet(HTML) 8 Page - STMicroelectronics |
|
8 / 15 page ![]() 8/15 USING THE ST7 USB LOW-SPEED LIBRARY V4.2x 4.1 SHARED VARIABLES Here is a description of the variables shared between the USB Library and the Application code layer :. Variable Declaration/ Aliases Description USBLibStatus USB_Var.c USB_Def.h Used to exchange USB status information between the Library and the Application. Possible values are : PRODUCT1 (0x01) : always defined PRODUCT2 (0x02) : alternate product DFU_MODE (0x40) : DFU code loader device APP_REQUEST (0x08) : set by Library when a non standard re- quest has been received on EP0 USB_STALL (0x10) : set by Application to stall a non standard request USB_SUSPEND (0x20) : set by Library when suspended mode is requested USB_REMOTE_WAKEUP_ENABLE (0x40) : set by Library when host enables the remote wakeup USB_CONFIGURED (0x80) : set by Library when host config- ured the peripheral USBTransferStatus USB_Var.c USB_Var.h Specifies the current Control Transfer transaction stages. Pos- sible values are : NO_DATA_STAGE (0x01) : an IN status will follow the setup to- ken DATA_STAGE_IN (0x02) : Transfer with IN data phase DATA_STAGE_OUT (0x04) : Transfer with OUT data phase ONE_MORE (0x08) : Last data IN transfer before status out ADDRESS2SET (0x10) : device address SET_TX0_VALID (0x20) : request to set EP0 Tx buffer to valid SET_RX0_VALID (0x40) : request to set EP0 Rx buffer to valid USBbmRequestType USB_Var.c USB_Var.h Contains the characteristic of the request sent by the host. Re- fer to USB spec ver 1.1, chap 9.3, page 183 for more informa- tions. Possible values are : RECIPIENT (0x03) REDEVICE (0x00) REINTERFACE (0x01) REENDPOINT (0x02) |
|
|
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 |