Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
lwipdemo.h File Reference
#include "ca821x_api.h"
Include dependency graph for lwipdemo.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void handle_cli_lwipdemo (void *aContext, uint8_t aArgsLength, char *aArgs[])
 Process a CLI command to change the state of the lwip demo. More...
 
ca_error init_lwipdemo (otInstance *aInstance, struct ca821x_dev *pDeviceRef)
 Initialise the lwip demo. More...
 

Function Documentation

◆ handle_cli_lwipdemo()

void handle_cli_lwipdemo ( void *  aContext,
uint8_t  aArgsLength,
char *  aArgs[] 
)

Process a CLI command to change the state of the lwip demo.

Should be linked to the openthread CLI using otCliSetUserCommands.

Parameters
aContextCLI Context
aArgsLengthsize of aArgs string array
aArgsarray of arguments

◆ init_lwipdemo()

ca_error init_lwipdemo ( otInstance *  aInstance,
struct ca821x_dev pDeviceRef 
)

Initialise the lwip demo.

Should be called once at program startup.

Parameters
aInstance- Pointer to an OpenThread instance.
pDeviceRef- Pointer to initialised ca821x_device_ref struct.
Returns
CA_ERROR_SUCCESS for success.