Advertisement
Guest User

Untitled

a guest
Jan 26th, 2015
376
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.84 KB | None | 0 0
  1. /**
  2.   * @brief  CDC_Receive_FS
  3.   *         Data received over USB OUT endpoint are sent over CDC interface
  4.   *         through this function.
  5.   *          
  6.   *         @note
  7.   *         This function will block any OUT packet reception on USB endpoint
  8.   *         untill exiting this function. If you exit this function before transfer
  9.   *         is complete on CDC interface (ie. using DMA controller) it will result
  10.   *         in receiving more data while previous ones are still not sent.
  11.   *                
  12.   * @param  Buf: Buffer of data to be received
  13.   * @param  Len: Number of data received (in bytes)
  14.   * @retval Result of the operation: USBD_OK if all operations are OK else USBD_FAIL
  15.   */
  16. static int8_t CDC_Receive_FS (uint8_t* Buf, uint32_t *Len)
  17. {
  18.   /* USER CODE BEGIN 7 */
  19.   return (USBD_OK);
  20.   /* USER CODE END 7 */
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement