Skip to content

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.

void syn_transport_from_usb_host_cdc (
    SYN_Transport * t,
    SYN_USB_HostCDC * hcdc
) 

Parameters:


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:

  • data Output data buffer.
  • max_len Capacity.
  • out_len Pointer to receive read byte count.
  • ctx Context pointer (SYN_USB_HostCDC).

Returns:

true on success.


function host_cdc_transport_send

Internal transport send wrapper for USB Host CDC.

static bool host_cdc_transport_send (
    const uint8_t * data,
    size_t len,
    void * ctx
) 

Parameters:

  • data Packet data buffer.
  • len Byte length.
  • ctx Context 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