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

Go to the source code of this file.

Macros

#define COMMS_LOCKED(x)
 Perform an action with the comms thread locked. More...
 

Functions

ca_error LockCommsThread (void)
 Lock the comms thread so that Cascoda/Openthread API calls can be made. More...
 
ca_error UnlockCommsThread (void)
 Unlock the comms thread so that Cascoda/Openthread stacks can run. More...
 
ca_error init_lwipdemo_freertos (otInstance *aInstance, struct ca821x_dev *pDeviceRef)
 Initialise the lwip demo cli. More...
 

Macro Definition Documentation

◆ COMMS_LOCKED

#define COMMS_LOCKED (   x)
Value:
do \
{ \
LockCommsThread(); \
x; \
UnlockCommsThread(); \
} while (0)

Perform an action with the comms thread locked.

Function Documentation

◆ 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

◆ LockCommsThread()

ca_error LockCommsThread ( void  )

Lock the comms thread so that Cascoda/Openthread API calls can be made.

Returns
Status of the lock
Return values
CA_ERROR_SUCCESSLock successful
CA_ERROR_BUSYLock could not be taken

◆ UnlockCommsThread()

ca_error UnlockCommsThread ( void  )

Unlock the comms thread so that Cascoda/Openthread stacks can run.

Returns
Status of the unlock
Return values
CA_ERROR_SUCCESSUnlock successful
CA_ERROR_INVALID_STATEInvalid state