Public Member Functions | List of all members
async_comm::CommListener Class Referenceabstract

Abstract base class for getting comm events via a listener interface. More...

#include <comm.h>

Public Member Functions

virtual void receive_callback (const uint8_t *buf, size_t size)=0
 Callback for data received. More...
 

Detailed Description

Abstract base class for getting comm events via a listener interface.

Definition at line 61 of file comm.h.

Member Function Documentation

virtual void async_comm::CommListener::receive_callback ( const uint8_t *  buf,
size_t  size 
)
pure virtual

Callback for data received.

Warning
The data buffer passed to the callback function will be invalid after the callback function exits. If you want to store the data for later processing, you must copy the data to a new buffer rather than storing the pointer to the buffer.
Parameters
bufAddress of buffer containing received bytes
sizeNumber of bytes in the receive buffer

The documentation for this class was generated from the following file:


async_comm
Author(s):
autogenerated on Fri May 14 2021 02:35:38