Prusa MINI Firmware overview
usbd_cdc.h File Reference

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

#include "usbd_ioreq.h"

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   0x81 /* EP1 for data IN */
 
#define CDC_OUT_EP   0x01 /* EP1 for data OUT */
 
#define CDC_CMD_EP   0x82 /* EP2 for CDC commands */
 
#define CDC_DATA_HS_MAX_PACKET_SIZE   512 /* Endpoint IN & OUT Packet size */
 
#define CDC_DATA_FS_MAX_PACKET_SIZE   64 /* Endpoint IN & OUT Packet size */
 
#define CDC_CMD_PACKET_SIZE   8 /* Control Endpoint Packet size */
 
#define USB_CDC_CONFIG_DESC_SIZ   67
 
#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_SEND_ENCAPSULATED_COMMAND   0x00
 
#define CDC_GET_ENCAPSULATED_RESPONSE   0x01
 
#define CDC_SET_COMM_FEATURE   0x02
 
#define CDC_GET_COMM_FEATURE   0x03
 
#define CDC_CLEAR_COMM_FEATURE   0x04
 
#define CDC_SET_LINE_CODING   0x20
 
#define CDC_GET_LINE_CODING   0x21
 
#define CDC_SET_CONTROL_LINE_STATE   0x22
 
#define CDC_SEND_BREAK   0x23
 
#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. More...
 
uint8_t USBD_CDC_SetTxBuffer (USBD_HandleTypeDef *pdev, uint8_t *pbuff, uint16_t length)
 USBD_CDC_SetTxBuffer. More...
 
uint8_t USBD_CDC_SetRxBuffer (USBD_HandleTypeDef *pdev, uint8_t *pbuff)
 USBD_CDC_SetRxBuffer. More...
 
uint8_t USBD_CDC_ReceivePacket (USBD_HandleTypeDef *pdev)
 USBD_CDC_ReceivePacket prepare OUT Endpoint for reception. More...
 
uint8_t USBD_CDC_TransmitPacket (USBD_HandleTypeDef *pdev)
 USBD_CDC_DataOut Data received on non-control Out endpoint. More...
 

Variables

USBD_ClassTypeDef USBD_CDC
 

Detailed Description

header file for the usbd_cdc.c file.

Author
MCD Application Team
Version
V2.4.2
Date
11-December-2015
Attention

© COPYRIGHT 2015 STMicroelectronics

Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:

   http://www.st.com/software_license_agreement_liberty_v2

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.