Generic media access Layer. More...
#include "usbd_cdc_if_template.h"
Go to the source code of this file.
Functions | |
static uint16_t | TEMPLATE_Ctrl (uint32_t Cmd, uint8_t *Buf, uint32_t Len) |
TEMPLATE_Ctrl Manage the CDC class requests. More... | |
static uint16_t | TEMPLATE_DataRx (uint8_t *Buf, uint32_t Len) |
TEMPLATE_DataRx Data received over USB OUT endpoint are sent over CDC interface through this function. More... | |
static uint16_t | TEMPLATE_DataTx (uint8_t *Buf, uint32_t Len) |
TEMPLATE_DataTx CDC received data to be send over USB IN endpoint are managed in this function. More... | |
static uint16_t | TEMPLATE_DeInit (void) |
TEMPLATE_DeInit DeInitializes the CDC media low layer. More... | |
static uint16_t | TEMPLATE_Init (void) |
TEMPLATE_Init Initializes the CDC media low layer. More... | |
Variables | |
uint8_t | APP_Rx_Buffer [] |
uint32_t | APP_Rx_ptr_in |
CDC_IF_Prop_TypeDef | TEMPLATE_fops |
Generic media access Layer.
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.
Definition in file usbd_cdc_if_template.c.
|
static |
TEMPLATE_Ctrl Manage the CDC class requests.
Cmd | Command code |
Buf | Buffer containing command data (request parameters) |
Len | Number of data to be sent (in bytes) |
Result | of the opeartion: USBD_OK if all operations are OK else USBD_FAIL |
Definition at line 103 of file usbd_cdc_if_template.c.
|
static |
TEMPLATE_DataRx 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) |
Result | of the opeartion: USBD_OK if all operations are OK else USBD_FAIL |
Definition at line 194 of file usbd_cdc_if_template.c.
|
static |
TEMPLATE_DataTx CDC received data to be send over USB IN endpoint are managed in this function.
Buf | Buffer of data to be sent |
Len | Number of data to be sent (in bytes) |
Result | of the opeartion: USBD_OK if all operations are OK else USBD_FAIL |
Definition at line 158 of file usbd_cdc_if_template.c.
|
static |
TEMPLATE_DeInit DeInitializes the CDC media low layer.
None |
Result | of the opeartion: USBD_OK if all operations are OK else USBD_FAIL |
Definition at line 86 of file usbd_cdc_if_template.c.
|
static |
TEMPLATE_Init Initializes the CDC media low layer.
None |
Result | of the opeartion: USBD_OK if all operations are OK else USBD_FAIL |
Definition at line 72 of file usbd_cdc_if_template.c.
CDC_IF_Prop_TypeDef TEMPLATE_fops |
Definition at line 55 of file usbd_cdc_if_template.c.