Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
cascoda_aerial_adapter.c File Reference
#include <stdio.h>
#include <string.h>
#include "cascoda-bm/cascoda_evbme.h"
#include "cascoda-bm/cascoda_types.h"
#include "cascoda-bm/cascoda_wait.h"
#include "ca821x_api.h"
#include "cascoda-bm/cascoda_aerial_adapter.h"
Include dependency graph for cascoda_aerial_adapter.c:

Classes

struct  aerial_adapter_payload_with_message_t
 
struct  aerial_adapter_payload_without_message_t
 

Typedefs

typedef struct aerial_adapter_payload_with_message_t aerial_adapter_payload_with_message_t
 
typedef struct aerial_adapter_payload_without_message_t aerial_adapter_payload_without_message_t
 

Functions

ca_error aainitialise (uint8_t channel, struct ca821x_dev *pDeviceRef)
 Initialise and start aerial adapter. More...
 
int aaprintf (const char *format,...)
 Print message over air (max. More...
 

Typedef Documentation

◆ aerial_adapter_payload_with_message_t

◆ aerial_adapter_payload_without_message_t

Function Documentation

◆ aainitialise()

ca_error aainitialise ( uint8_t  channel,
struct ca821x_dev pDeviceRef 
)

Initialise and start aerial adapter.

Parameters
channel- IEEE802.15.4 channel number (11-26)
pDeviceRef- Pointer to initialised ca821x_device_ref struct

◆ aaprintf()

int aaprintf ( const char *  format,
  ... 
)

Print message over air (max.

AERIAL_ADAPTER_MAX_MESSAGE characters)

Parameters
formatprintf-style format string, followed by printf-style arguments