![]() |
M471M/R1/S BSP V3.01.000
The Board Support Package for M4521
|
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 |
#define USB_XFER_TIMEOUT 100 |
Definition at line 37 of file cdc_core.c.
|
static |
|
static |
int32_t usbh_cdc_get_line_coding | ( | CDC_DEV_T * | cdev, |
LINE_CODING_T * | line_code | ||
) |
GET_LINE_CODING request.
[in] | cdev | CDC device |
[out] | line_code | The currently configured line coding. |
0 | Success |
Otherwise | Failed |
Definition at line 49 of file cdc_core.c.
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.
[in] | cdev | CDC device |
[in] | buff | Buffer contains the data block to be send. |
[in] | buff_len | Length in byte of data to be send |
0 | Success |
Otherwise | Failed |
Definition at line 384 of file cdc_core.c.
int32_t usbh_cdc_set_control_line_state | ( | CDC_DEV_T * | cdev, |
int | active_carrier, | ||
int | DTE_present | ||
) |
SET_CONTROL_LINE_STATE request.
[in] | cdev | CDC device |
[in] | active_carrier | Carrier control for half duplex modems is activated or not. |
[in] | DTE_present | Indicates to DCE if DTE is present or not. |
0 | Success |
Otherwise | Failed |
Definition at line 137 of file cdc_core.c.
int32_t usbh_cdc_set_line_coding | ( | CDC_DEV_T * | cdev, |
LINE_CODING_T * | line_code | ||
) |
SET_LINE_CODING request.
[in] | cdev | CDC device |
[in] | line_code | The line coding configuration to be set. |
0 | Success |
Otherwise | Failed |
Definition at line 87 of file cdc_core.c.
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.
[in] | cdev | CDC device |
[in] | func | The interrupt in data receiver callback function. |
0 | Success |
Otherwise | Failed |
Definition at line 214 of file cdc_core.c.
int32_t usbh_cdc_start_to_receive_data | ( | CDC_DEV_T * | cdev, |
CDC_CB_FUNC * | func | ||
) |
HIDDEN_SYMBOLS.
Make CDC device start to receive data from bulk-in transfer pipe.
[in] | cdev | CDC device |
[in] | func | The BULK in data receiver callback function. |
0 | Success |
Otherwise | Failed |
Definition at line 307 of file cdc_core.c.
|
static |
Definition at line 369 of file cdc_core.c.