CDI SDK
SDK for transporting chunks of data reliably and with low latency using a polled mode network driver.
|
This file contains definitions and functions for the receive-side CDI minimal test application. More...
#include <assert.h>
#include <stdbool.h>
#include "cdi_avm_api.h"
#include "cdi_core_api.h"
#include "cdi_raw_api.h"
#include "test_common.h"
Data Structures | |
struct | TestSettings |
A structure that holds all the test settings for a connection as set from the command line. More... | |
struct | TestConnectionInfo |
A structure for storing all info related to a specific connection, including test settings, connection configuration data from the SDK, and state information for the test connection. More... | |
Macros | |
#define | TestConsoleLog SimpleConsoleLog |
Define TestConsoleLog. | |
Functions | |
void | PrintHelp (void) |
static bool | ParseCommandLine (int argc, const char **argv, TestSettings *test_settings_ptr) |
static void | TestConnectionCallback (const CdiCoreConnectionCbData *cb_data_ptr) |
static void | TestAvmRxCallback (const CdiAvmRxCbData *cb_data_ptr) |
static void | TestRawRxCallback (const CdiRawRxCbData *cb_data_ptr) |
int | main (int argc, const char **argv) |
This file contains definitions and functions for the receive-side CDI minimal test application.
int main | ( | int | argc, |
const char ** | argv ) |
C main entry function.
argc | Number of command line arguments. |
argv | Pointer to array of pointers to command line arguments. |
|
static |
Parse command line and write to the specified TestSettings structure.
argc | Number of command line arguments. |
argv | Pointer to array of pointers to command line arguments. |
test_settings_ptr | Address where to write returned settings. |
void PrintHelp | ( | void | ) |
Output command line help message.
|
static |
Handle the Rx AVM callback.
cb_data_ptr | Pointer to Tx RAW callback data. |
|
static |
Handle the connection callback.
cb_data_ptr | Pointer to CdiCoreConnectionCbData callback data. |
|
static |
Handle the Rx RAW callback.
cb_data_ptr | Pointer to Tx RAW callback data. |