Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * @brief CDC_Transmit_FS
- * Data send over USB IN endpoint are sent over CDC interface
- * through this function.
- * @note
- *
- *
- * @param Buf: Buffer of data to be send
- * @param Len: Number of data to be send (in bytes)
- * @retval Result of the operation: USBD_OK if all operations are OK else USBD_FAIL or USBD_BUSY
- */
- uint8_t CDC_Transmit_FS(uint8_t* Buf, uint16_t Len)
- {
- uint8_t result = USBD_OK;
- /* USER CODE BEGIN 8 */
- USBD_CDC_SetTxBuffer(hUsbDevice_0, UserTxBufferFS, Len);
- result = USBD_CDC_TransmitPacket(hUsbDevice_0);
- /* USER CODE END 8 */
- return result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement