| Electronic Components Datasheet Search |
|
AN1325 Datasheet(PDF) 10 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN1325 Datasheet(HTML) 10 Page - STMicroelectronics |
|
10 / 15 page ![]() 10/15 USING THE ST7 USB LOW-SPEED LIBRARY V4.2x Test_EP_Ready USB_Lib.c Check if the EndPoint buffer (passed as argument) is ready to be written or read. Return TRUE if the End- Point is ready. For IN direction (ST7 to Host) “ready” means the buffer has been sent and is available for sending new data. For OUT direction (Host to ST7) “ready” means the buffer contains new data to be read. Set_EP_Ready USB_Lib.c This function informs the Library that there is data in the EPxInBuffer ready to be sent (IN direction) or that the Application has read/consumed the data in the EPxOutBuffer (OUT direction). For IN direction (ST7 to Host) update the Transmit byte counter and set EPTx to VALID. For OUT direc- tion (Host to ST7) set the EPRx to VALID and ignore the data length passed as argument. Write_EP_Buffer USB_Lib.c Write the data (pointer passed as argument) into the USB DMA RAM transmit buffer of the selected End- Point. Read_EP_Buffer USB_Lib.c Read data from the USB DMA RAM receive buffer into the data (pointer passed as argument). Do_USB_RemoteWU USB_Rwu.c Send a complete Remote WakeUp signaling se- quence to the Host (reset USB_SUSPEND flag). While sending the resume signaling, all interrupts are disable for 10ms (due to K state that must be main- tain). If you don’t want all interrupts to be masked for 10ms, when exiting suspend, use the “Start_USB_RemoteWU” and “Stop_USB_RemoteWU” functions instead (see be- low). Start_USB_RemoteWU USB_Rwu.c Start a Remote WakeUp signaling to the Host. Take care that Application code must call the “Stop_USB_RemoteWU” function after a 10ms de- lay. Stop_USB_RemoteWU USB_Rwu.c End the Remote WakeUp signaling initiated by the “Start_USB_RemoteWU” function. Reset also the USB_SUSPEND flag. Function File Description |
|
|
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 |