STSW-STLKT01: Projects/SensorTile/Applications/DataLog/Inc/usbd_cdc_interface.h Source File

STSW-STLKT01

usbd_cdc_interface.h
Go to the documentation of this file.
1 
48 /* Define to prevent recursive inclusion -------------------------------------*/
49 #ifndef __USBD_CDC_IF_H
50 #define __USBD_CDC_IF_H
51 
52 /* Includes ------------------------------------------------------------------*/
53 #include "usbd_cdc.h"
54 
55 /* Exported types ------------------------------------------------------------*/
56 /* Exported constants --------------------------------------------------------*/
57 #define USB_RxBufferDim 2048
58 
59 /* Definition for TIMx clock resources */
60 #define TIMx TIM3
61 #define TIMx_CLK_ENABLE __HAL_RCC_TIM3_CLK_ENABLE
62 #define TIMx_FORCE_RESET() __HAL_RCC_USART3_FORCE_RESET()
63 #define TIMx_RELEASE_RESET() __HAL_RCC_USART3_RELEASE_RESET()
64 
65 /* Definition for TIMx's NVIC */
66 #define TIMx_IRQn TIM3_IRQn
67 #define TIMx_IRQHandler TIM3_IRQHandler
68 
69 /* Periodically, the state of the buffer "UserTxBuffer" is checked.
70  The period depends on CDC_POLLING_INTERVAL */
71 #define CDC_POLLING_INTERVAL 5 /* in ms. The max is 65 and the min is 1 */
72 
73 extern USBD_CDC_ItfTypeDef USBD_CDC_fops;
74 
75 /* Exported macro ------------------------------------------------------------*/
76 /* Exported functions ------------------------------------------------------- */
77 uint8_t CDC_Fill_Buffer(uint8_t* Buf, uint32_t TotalLen);
78 
79 #endif /* __USBD_CDC_IF_H */
80 
81 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
header file for the usbd_cdc.c file.
uint8_t CDC_Fill_Buffer(uint8_t *Buf, uint32_t TotalLen)
Fill the usb tx buffer.
Generated by   doxygen 1.8.13