File syn_transport_usb_host_cdc.c¶
FileList > drivers > syn_transport_usb_host_cdc.c
Go to the source code of this file
USB Host CDC Transport Binding Implementation.
#include "syntropic/drivers/syn_transport_usb_host_cdc.h"
Public Functions¶
| Type | Name |
|---|---|
| void | syn_transport_from_usb_host_cdc (SYN_Transport * t, SYN_USB_HostCDC * hcdc) Bind SYN_USB_HostCDC instance to aSYN_Transport interface. |
Public Static Functions¶
| Type | Name |
|---|---|
| bool | host_cdc_transport_recv (uint8_t * data, size_t max_len, size_t * out_len, void * ctx) Internal transport receive wrapper for USB Host CDC. |
| bool | host_cdc_transport_send (const uint8_t * data, size_t len, void * ctx) Internal transport send wrapper for USB Host CDC. |
Public Functions Documentation¶
function syn_transport_from_usb_host_cdc¶
Bind SYN_USB_HostCDC instance to aSYN_Transport interface.
Parameters:
tPointer to SYN_Transport struct to initialize.hcdcPointer to SYN_USB_HostCDC instance.
Public Static Functions Documentation¶
function host_cdc_transport_recv¶
Internal transport receive wrapper for USB Host CDC.
static bool host_cdc_transport_recv (
uint8_t * data,
size_t max_len,
size_t * out_len,
void * ctx
)
Parameters:
dataOutput data buffer.max_lenCapacity.out_lenPointer to receive read byte count.ctxContext pointer (SYN_USB_HostCDC).
Returns:
true on success.
function host_cdc_transport_send¶
Internal transport send wrapper for USB Host CDC.
Parameters:
dataPacket data buffer.lenByte length.ctxContext pointer (SYN_USB_HostCDC).
Returns:
true on success.
The documentation for this class was generated from the following file src/syntropic/drivers/syn_transport_usb_host_cdc.c