Download uC-USB-Device User`s Manual v4.05 - Doc
Transcript
µC/USB Device User's Manual
void
USBD_CDC_EEM_InstanceInit (CPU_INT08U
USBD_CDC_EEM_CFG
USBD_CDC_EEM_DRV
void
USBD_ERR
class_nbr,
*p_cfg,
*p_cdc_eem_drv,
*p_arg,
*p_err)
(1)
(2)
(3)
Listing - CDC EEM Instance init function
(1)
Takes a pointer to a structure that contains the desired size of the receive and transmit
buffers queue . Following listing gives the prototype of the configuration structure.
typedef struct usbd_cdc_eem_cfg {
CPU_INT08U RxBufQSize;
*/
CPU_INT08U TxBufQSize;
*/
} USBD_CDC_EEM_CFG;
(2)
/* Size of rx buffer Q.
/* Size of tx buffer Q.
Takes a pointer to the CDC EEM driver. Following listing gives the details of the CDC
EEM driver API.
typedef
const
struct
usbd_cdc_eem_drv {
/* Retrieve a Rx buffer.
*/
CPU_INT08U
*(*RxBufGet)
(CPU_INT08U
void
CPU_INT16U
class_nbr,
*p_arg,
*p_buf_len);
/* Signal that a rx buffer is
ready.
void
*/
(*RxBufRdy)
(CPU_INT08U
void
class_nbr,
*p_arg);
/* Free a tx buffer.
*/
void
(*TxBufFree)
(CPU_INT08U
void
CPU_INT08U
CPU_INT16U
class_nbr,
*p_arg,
*p_buf,
buf_len);
} USBD_CDC_EEM_DRV;
(3)
Pointer to network driver data.
Configuration of Network Driver
The network driver used to interact with the CDC EEM class MUST follow some guidelines
for the configuration of its buffers.
Copyright 2015 Micrium Inc.
267
Related documents
Mettre un article en page d`accueil - Rotary Club : Manuel d`utilisation
BT Drive Free 311
Case Logic Compact Portable Hard Drive Case
Atmel AT89C51SND1 Datasheet
µC/USB-Device User`s Manual
Request AudioReQuest N.Series Hardware manual
Water Worker G12L Installation Guide
Installation instruction Bluetooth hands free kit FISCON
Guía de instalación del sistema operativo de la estación de trabajo
Sun Microsystems X2100 User's Manual
MG5 - Primo-elektro.be
Les blocs d`informations de la page d`accueil [v3]