usbd_cdc_if.h 579 B

12345678910111213141516171819202122
  1. #pragma once
  2. #ifdef __cplusplus
  3. extern "C" {
  4. #endif
  5. /* Includes ------------------------------------------------------------------*/
  6. #include "usbd_cdc.h"
  7. /* Define size for the receive and transmit buffer over CDC */
  8. /* It's up to user to redefine and/or remove those define */
  9. #define APP_RX_DATA_SIZE CDC_DATA_FS_MAX_PACKET_SIZE
  10. #define APP_TX_DATA_SIZE CDC_DATA_FS_MAX_PACKET_SIZE
  11. /** CDC Interface callback. */
  12. extern USBD_CDC_ItfTypeDef USBD_Interface_fops_FS;
  13. uint8_t CDC_Transmit_FS(uint8_t* Buf, uint16_t Len);
  14. #ifdef __cplusplus
  15. }
  16. #endif