Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
|
#include "ca821x_api.h"
Go to the source code of this file.
Functions | |
void | handle_cli_actuatordemo (void *aContext, uint8_t aArgsLength, char *aArgs[]) |
Process a CLI command to change the state of the actuator demo. More... | |
ca_error | init_actuatordemo (otInstance *aInstance, struct ca821x_dev *pDeviceRef) |
Initialise the actuator demo. More... | |
ca_error | handle_actuatordemo (struct ca821x_dev *pDeviceRef) |
Handle all actuatordemo functionality. More... | |
ca_error handle_actuatordemo | ( | struct ca821x_dev * | pDeviceRef | ) |
Handle all actuatordemo functionality.
Should be called regularly by the program main loop.
pDeviceRef | - Pointer to initialised ca821x_device_ref struct. |
void handle_cli_actuatordemo | ( | void * | aContext, |
uint8_t | aArgsLength, | ||
char * | aArgs[] | ||
) |
Process a CLI command to change the state of the actuator demo.
Should be linked to the openthread CLI using otCliSetUserCommands.
ca_error init_actuatordemo | ( | otInstance * | aInstance, |
struct ca821x_dev * | pDeviceRef | ||
) |
Initialise the actuator demo.
Should be called once at program startup.
aInstance | - Pointer to an OpenThread instance. |
pDeviceRef | - Pointer to initialised ca821x_device_ref struct. |