}
}
-/* See virtual_com.h for documentation of this function. */
-void USB_VcomWriteBlocking(usb_device_handle baseAddr, const uint8_t *buf, size_t count)
-{
- while ((s_cdcVcom.attach != 1) || (s_cdcVcom.startTransactions != 1))
- {
- };
- USB_DeviceSendRequest((usb_device_handle)baseAddr, USB_CDC_VCOM_BULK_IN_ENDPOINT, (uint8_t *)buf, count);
- while (!s_sendComplete)
- {
- };
- s_sendComplete = 0;
-}
-
static ssize_t
flush_tx_buffer (void *user_data, void *vbuf, size_t bufsiz, size_t count)
{
*/
void USB_VcomDeinit(usb_device_handle deviceHandle);
-/*!
- * @brief USB send data to host using a blocking method.
- *
- * This function sends data to host by usb cdc protocol
- * @param baseAddr pointer to USB device handle.
- * @param buf pointer to the data.
- * @param count size of the transfer.
- *
- * @return None.
- */
-void USB_VcomWriteBlocking(usb_device_handle baseAddr, const uint8_t *buf, size_t count);
-
#endif /* _USB_CDC_VCOM_H_ */