Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
lwipcli.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "cascoda-bm/cascoda_evbme.h"
#include "cascoda-bm/cascoda_interface.h"
#include "cascoda-bm/cascoda_serial.h"
#include "cascoda-bm/cascoda_types.h"
#include "cascoda-util/cascoda_time.h"
#include "openthread/cli.h"
#include "openthread/instance.h"
#include "openthread/link.h"
#include "openthread/thread.h"
#include "platform.h"
#include "lwip/api.h"
#include "lwip/dns.h"
#include "lwip/netdb.h"
#include "lwip/opt.h"
#include "lwip/sockets.h"
#include "lwip/sys.h"
#include "lwip/tcp.h"
#include "lwip/tcpip.h"
#include "lwip-port.h"
#include "lwip_freertos_demo.h"
Include dependency graph for lwipcli.c:

Classes

struct  CliCommand
 

Enumerations

enum  { DEMO_PORT = 51700 , CLI_MAXARGS = 32 , CLI_MAXLEN = 256 }
 

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_freertos (otInstance *aInstance, struct ca821x_dev *pDeviceRef)
 Initialise the lwip demo cli. More...
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
DEMO_PORT 
CLI_MAXARGS 
CLI_MAXLEN 

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_freertos()

ca_error init_lwipdemo_freertos ( otInstance *  aInstance,
struct ca821x_dev pDeviceRef 
)

Initialise the lwip demo cli.

Parameters
aInstanceOpenthread instance
pDeviceRefCascoda initialised device struct
Returns
CA_ERROR_SUCCESS upon success