M471M/R1/S BSP V3.01.000
The Board Support Package for M4521
Macros | Functions | Variables
cdc_core.c File Reference

M471M/R1/S MCU USB Host CDC library core. More...

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "NuMicro.h"
#include "usb.h"
#include "usbh_lib.h"
#include "usbh_cdc.h"
Include dependency graph for cdc_core.c:

Go to the source code of this file.

Macros

#define USB_XFER_TIMEOUT   100
 

Functions

int32_t usbh_cdc_get_line_coding (CDC_DEV_T *cdev, LINE_CODING_T *line_code)
 GET_LINE_CODING request. More...
 
int32_t usbh_cdc_set_line_coding (CDC_DEV_T *cdev, LINE_CODING_T *line_code)
 SET_LINE_CODING request. More...
 
int32_t usbh_cdc_set_control_line_state (CDC_DEV_T *cdev, int active_carrier, int DTE_present)
 SET_CONTROL_LINE_STATE request. More...
 
HIDDEN_SYMBOLS int32_t usbh_cdc_start_polling_status (CDC_DEV_T *cdev, CDC_CB_FUNC *func)
 Start purge the CDC device's interrupt-in transfer pipe. More...
 
static void cdc_bulk_in_irq (UTR_T *utr)
 
int32_t usbh_cdc_start_to_receive_data (CDC_DEV_T *cdev, CDC_CB_FUNC *func)
 HIDDEN_SYMBOLS. More...
 
static void cdc_bulk_out_irq (UTR_T *utr)
 
int32_t usbh_cdc_send_data (CDC_DEV_T *cdev, uint8_t *buff, int buff_len)
 Send a block of data via CDC device's bulk-out transfer pipe. More...
 

Variables

static volatile int bulk_out_done
 

Detailed Description

M471M/R1/S MCU USB Host CDC library core.

SPDX-License-Identifier: Apache-2.0

Definition in file cdc_core.c.