usbd_cdc_vcp.h
Go to the documentation of this file.
1 
22 /* Define to prevent recursive inclusion -------------------------------------*/
23 #ifndef __USBD_CDC_VCP_H
24 #define __USBD_CDC_VCP_H
25 
26 /* Includes ------------------------------------------------------------------*/
27 #include "stm32f4xx_conf.h"
28 
29 #include "usbd_cdc_core.h"
30 #include "usbd_conf.h"
31 #include <stdint.h>
32 
33 #include "usbd_core.h"
34 #include "usbd_usr.h"
35 #include "usbd_desc.h"
36 
38 
39 uint32_t CDC_Send_DATA(const uint8_t *ptrBuffer, uint32_t sendLength);
40 uint32_t CDC_Send_FreeBytes(void);
41 uint32_t CDC_Receive_DATA(uint8_t* recvBuf, uint32_t len); // HJI
42 uint32_t CDC_Receive_BytesAvailable(void);
43 
44 uint8_t usbIsConfigured(void); // HJI
45 uint8_t usbIsConnected(void); // HJI
46 uint32_t CDC_BaudRate(void);
47 void CDC_SetCtrlLineStateCb(void (*cb)(void *context, uint16_t ctrlLineState), void *context);
48 void CDC_SetBaudRateCb(void (*cb)(void *context, uint32_t baud), void *context);
49 
50 /* External variables --------------------------------------------------------*/
51 extern __IO uint32_t bDeviceState; /* USB device status */
52 
53 typedef enum _DEVICE_STATE {
60 } DEVICE_STATE;
61 
62 /* Exported typef ------------------------------------------------------------*/
63 /* The following structures groups all needed parameters to be configured for the
64  ComPort. These parameters can modified on the fly by the host through CDC class
65  command class requests. */
66 typedef struct __attribute__ ((packed))
67 {
68  uint32_t bitrate;
69  uint8_t format;
70  uint8_t paritytype;
71  uint8_t datatype;
73 
74 
75 #endif /* __USBD_CDC_VCP_H */
void CDC_SetCtrlLineStateCb(void(*cb)(void *context, uint16_t ctrlLineState), void *context)
Definition: usbd_cdc_vcp.c:338
uint32_t CDC_Send_DATA(const uint8_t *ptrBuffer, uint32_t sendLength)
Definition: usbd_cdc_vcp.c:181
__IO uint32_t bDeviceState
Definition: usbd_cdc_vcp.c:37
uint8_t usbIsConfigured(void)
Definition: usbd_cdc_vcp.c:289
_DEVICE_STATE
Definition: usbd_cdc_vcp.h:53
header file for the usbd_cdc_core.c file.
enum _DEVICE_STATE DEVICE_STATE
uint8_t usbIsConnected(void)
Definition: usbd_cdc_vcp.c:301
uint32_t CDC_Receive_DATA(uint8_t *recvBuf, uint32_t len)
Definition: usbd_cdc_vcp.c:235
uint32_t CDC_Receive_BytesAvailable(void)
Definition: usbd_cdc_vcp.c:247
const char * datatype()
#define __IO
Definition: core_cm0.h:198
uint32_t CDC_BaudRate(void)
Definition: usbd_cdc_vcp.c:313
static void cb(uint8_t result)
Definition: ms4525.cpp:36
USB_OTG_CORE_HANDLE USB_OTG_dev
Definition: usbd_cdc_vcp.c:34
uint32_t CDC_Send_FreeBytes(void)
Definition: usbd_cdc_vcp.c:187
Header file for usbd_usr.c.
struct __attribute__((packed))
Definition: usbd_cdc_vcp.h:66
LINE_CODING
Definition: usbd_cdc_vcp.h:72
void CDC_SetBaudRateCb(void(*cb)(void *context, uint32_t baud), void *context)
Definition: usbd_cdc_vcp.c:325
USB Device configuration file.
Header file for usbd_core.c.
header file for the usbd_desc.c file


rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Thu Oct 24 2019 03:17:20