Go to the source code of this file.
◆ COMMS_LOCKED
#define COMMS_LOCKED |
( |
|
x | ) |
|
Value: do \
{ \
LockCommsThread(); \
x; \
UnlockCommsThread(); \
} while (0)
Perform an action with the comms thread locked.
◆ init_lwipdemo_freertos()
ca_error init_lwipdemo_freertos |
( |
otInstance * |
aInstance, |
|
|
struct ca821x_dev * |
pDeviceRef |
|
) |
| |
Initialise the lwip demo cli.
- Parameters
-
aInstance | Openthread instance |
pDeviceRef | Cascoda initialised device struct |
- Returns
- CA_ERROR_SUCCESS upon success
◆ LockCommsThread()
Lock the comms thread so that Cascoda/Openthread API calls can be made.
- Returns
- Status of the lock
- Return values
-
CA_ERROR_SUCCESS | Lock successful |
CA_ERROR_BUSY | Lock could not be taken |
◆ UnlockCommsThread()
Unlock the comms thread so that Cascoda/Openthread stacks can run.
- Returns
- Status of the unlock
- Return values
-
CA_ERROR_SUCCESS | Unlock successful |
CA_ERROR_INVALID_STATE | Invalid state |