STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
usbd_cdc.h File Reference

header file for the usbd_cdc.c file. More...

#include "usbd_ioreq.h"
Include dependency graph for usbd_cdc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  USBD_CDC_LineCodingTypeDef
struct  _USBD_CDC_Itf
struct  USBD_CDC_HandleTypeDef

Macros

#define CDC_IN_EP   0x81U /* EP1 for data IN */
#define CDC_OUT_EP   0x01U /* EP1 for data OUT */
#define CDC_CMD_EP   0x82U /* EP2 for CDC commands */
#define CDC_HS_BINTERVAL   0x10U
#define CDC_FS_BINTERVAL   0x10U
#define CDC_CMD_PACKET_SIZE   8U /* Control Endpoint Packet size */
#define CDC_DATA_HS_MAX_PACKET_SIZE   512U /* Endpoint IN & OUT Packet size */
#define CDC_DATA_FS_MAX_PACKET_SIZE   64U /* Endpoint IN & OUT Packet size */
#define USB_CDC_CONFIG_DESC_SIZ   67U
#define CDC_DATA_HS_IN_PACKET_SIZE   CDC_DATA_HS_MAX_PACKET_SIZE
#define CDC_DATA_HS_OUT_PACKET_SIZE   CDC_DATA_HS_MAX_PACKET_SIZE
#define CDC_DATA_FS_IN_PACKET_SIZE   CDC_DATA_FS_MAX_PACKET_SIZE
#define CDC_DATA_FS_OUT_PACKET_SIZE   CDC_DATA_FS_MAX_PACKET_SIZE
#define CDC_REQ_MAX_DATA_SIZE   0x7U
#define CDC_SEND_ENCAPSULATED_COMMAND   0x00U
#define CDC_GET_ENCAPSULATED_RESPONSE   0x01U
#define CDC_SET_COMM_FEATURE   0x02U
#define CDC_GET_COMM_FEATURE   0x03U
#define CDC_CLEAR_COMM_FEATURE   0x04U
#define CDC_SET_LINE_CODING   0x20U
#define CDC_GET_LINE_CODING   0x21U
#define CDC_SET_CONTROL_LINE_STATE   0x22U
#define CDC_SEND_BREAK   0x23U
#define USBD_CDC_CLASS   &USBD_CDC

Typedefs

typedef struct _USBD_CDC_Itf USBD_CDC_ItfTypeDef

Functions

uint8_t USBD_CDC_RegisterInterface (USBD_HandleTypeDef *pdev, USBD_CDC_ItfTypeDef *fops)
 USBD_CDC_RegisterInterface.
uint8_t USBD_CDC_SetTxBuffer (USBD_HandleTypeDef *pdev, uint8_t *pbuff, uint32_t length)
 USBD_CDC_SetTxBuffer.
uint8_t USBD_CDC_TransmitPacket (USBD_HandleTypeDef *pdev)
 USBD_CDC_TransmitPacket Transmit packet on IN endpoint.
uint8_t USBD_CDC_SetRxBuffer (USBD_HandleTypeDef *pdev, uint8_t *pbuff)
 USBD_CDC_SetRxBuffer.
uint8_t USBD_CDC_ReceivePacket (USBD_HandleTypeDef *pdev)
 USBD_CDC_ReceivePacket prepare OUT Endpoint for reception.

Variables

USBD_ClassTypeDef USBD_CDC

Detailed Description

header file for the usbd_cdc.c file.

Author
MCD Application Team
Attention

Copyright (c) 2015 STMicroelectronics. All rights reserved.

This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.

Definition in file usbd_cdc.h.