![]() |
snickerdoodle Platform Controller
firmware for STM32F0 platform controller
|
Functions | |
uint8_t | sd_cdc_transmit (uint8_t *buf, uint16_t len) |
USB Communications Class Device Transmit Data send over USB IN endpoint are sent over CDC interface through this function. More... | |
uint8_t | sd_cdc_get_state (void) |
static int8_t | sd_cdc_init (void) |
CDC_Init_FS Initializes the CDC media low layer over the FS USB IP. More... | |
static int8_t | sd_cdc_deinit (void) |
CDC_DeInit_FS DeInitializes the CDC media low layer. More... | |
static int8_t | sd_cdc_control (uint8_t cmd, uint8_t *pbuf, uint16_t length) |
USB Communications Class Device Control Request Manage the CDC class requests. More... | |
static int8_t | sd_cdc_receive (uint8_t *buf, uint32_t *len) |
USB Communications Class Device Receive Data received over USB OUT endpoint are sent over CDC interface through this function. More... | |
|
static |
#include <Src/sd_usbd_cdc_if.c>
USB Communications Class Device Control Request Manage the CDC class requests.
cmd | Command code |
pbuf | Buffer containing command data (request parameters) |
length | Number of data to be sent (in bytes) |
USBD_OK | if all operations are successful else USBD_FAIL or USBD_BUSY |
|
static |
#include <Src/sd_usbd_cdc_if.c>
CDC_DeInit_FS DeInitializes the CDC media low layer.
None |
USBD_OK | if all operations are successful else USBD_FAIL or USBD_BUSY |
|
static |
#include <Src/sd_usbd_cdc_if.c>
CDC_Init_FS Initializes the CDC media low layer over the FS USB IP.
None |
USBD_OK | if all operations are successful else USBD_FAIL or USBD_BUSY |
|
static |
#include <Src/sd_usbd_cdc_if.c>
USB Communications Class Device Receive Data received over USB OUT endpoint are sent over CDC interface through this function.
buf | Buffer of data to be received |
len | Number of data received (in bytes) |
USBD_OK | if all operations are successful else USBD_FAIL or USBD_BUSY |
uint8_t sd_cdc_transmit | ( | uint8_t * | buf, |
uint16_t | len | ||
) |
#include <Src/sd_usbd_cdc_if.c>
USB Communications Class Device Transmit Data send over USB IN endpoint are sent over CDC interface through this function.
buf | Buffer of data to be send |
len | Number of data to be send (in bytes) |
USBD_OK | if all operations are successful else USBD_FAIL or USBD_BUSY |