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

Go to the source code of this file.

Macros

#define AERIAL_ADAPTER_DUT_SHORTADD   0xCAFE /* Short Address for DUT */
 
#define AERIAL_ADAPTER_REF_SHORTADD   0xCAFF /* Short Address for Reference Device */
 
#define AERIAL_ADAPTER_PANID   0xCA5C /* PanID */
 
#define AERIAL_ADAPTER_MSDU_HANDLE   0x05 /* Fixed Msdu handle for reference device (only one data request) */
 
#define AERIAL_ADAPTER_EDTHRESHOLD   128 /* Increase ED treshold to get rid of interference (default 60) */
 
#define AERIAL_ADAPTER_CSTHRESHOLD   128 /* Increase CS treshold to get rid of interference (default 80) */
 
#define AERIAL_ADAPTER_MSDU_POS_ID   0 /* Byte 0 - Test Packet Identifier */
 
#define AERIAL_ADAPTER_MSDU_POS_TYPE   1 /* Byte 1 - Test Packet Type */
 
#define AERIAL_ADAPTER_MSDU_POS_ED   2 /* Byte 2 - ED of last received Packet */
 
#define AERIAL_ADAPTER_MSDU_POS_CS   3 /* Byte 3 - CS of last received Packet */
 
#define AERIAL_ADAPTER_MSDU_POS_STATUS   4 /* Byte 4 - Test Status */
 
#define AERIAL_ADAPTER_MSDU_POS_MESSAGE   5 /* from Byte 5: Message if attached */
 
#define AERIAL_ADAPTER_PKT_ID   0xA5
 
#define AERIAL_ADAPTER_TYPE_REQUEST   0x01 /* DUT -> REF: Test Initialisation Request */
 
#define AERIAL_ADAPTER_TYPE_CONFIRM   0x02 /* REF -> DUT: Test Initialisation Confirm */
 
#define AERIAL_ADAPTER_TYPE_MESSAGE   0x03 /* DUT -> REF: Test Message for Terminal */
 
#define AERIAL_ADAPTER_TYPE_COMPLETE   0x04 /* DUT -> REF: Test Complete */
 
#define AERIAL_ADAPTER_MAX_MESSAGE   100
 

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...
 

Macro Definition Documentation

◆ AERIAL_ADAPTER_CSTHRESHOLD

#define AERIAL_ADAPTER_CSTHRESHOLD   128 /* Increase CS treshold to get rid of interference (default 80) */

◆ AERIAL_ADAPTER_DUT_SHORTADD

#define AERIAL_ADAPTER_DUT_SHORTADD   0xCAFE /* Short Address for DUT */

◆ AERIAL_ADAPTER_EDTHRESHOLD

#define AERIAL_ADAPTER_EDTHRESHOLD   128 /* Increase ED treshold to get rid of interference (default 60) */

◆ AERIAL_ADAPTER_MAX_MESSAGE

#define AERIAL_ADAPTER_MAX_MESSAGE   100

◆ AERIAL_ADAPTER_MSDU_HANDLE

#define AERIAL_ADAPTER_MSDU_HANDLE   0x05 /* Fixed Msdu handle for reference device (only one data request) */

◆ AERIAL_ADAPTER_MSDU_POS_CS

#define AERIAL_ADAPTER_MSDU_POS_CS   3 /* Byte 3 - CS of last received Packet */

◆ AERIAL_ADAPTER_MSDU_POS_ED

#define AERIAL_ADAPTER_MSDU_POS_ED   2 /* Byte 2 - ED of last received Packet */

◆ AERIAL_ADAPTER_MSDU_POS_ID

#define AERIAL_ADAPTER_MSDU_POS_ID   0 /* Byte 0 - Test Packet Identifier */

◆ AERIAL_ADAPTER_MSDU_POS_MESSAGE

#define AERIAL_ADAPTER_MSDU_POS_MESSAGE   5 /* from Byte 5: Message if attached */

◆ AERIAL_ADAPTER_MSDU_POS_STATUS

#define AERIAL_ADAPTER_MSDU_POS_STATUS   4 /* Byte 4 - Test Status */

◆ AERIAL_ADAPTER_MSDU_POS_TYPE

#define AERIAL_ADAPTER_MSDU_POS_TYPE   1 /* Byte 1 - Test Packet Type */

◆ AERIAL_ADAPTER_PANID

#define AERIAL_ADAPTER_PANID   0xCA5C /* PanID */

◆ AERIAL_ADAPTER_PKT_ID

#define AERIAL_ADAPTER_PKT_ID   0xA5

◆ AERIAL_ADAPTER_REF_SHORTADD

#define AERIAL_ADAPTER_REF_SHORTADD   0xCAFF /* Short Address for Reference Device */

◆ AERIAL_ADAPTER_TYPE_COMPLETE

#define AERIAL_ADAPTER_TYPE_COMPLETE   0x04 /* DUT -> REF: Test Complete */

◆ AERIAL_ADAPTER_TYPE_CONFIRM

#define AERIAL_ADAPTER_TYPE_CONFIRM   0x02 /* REF -> DUT: Test Initialisation Confirm */

◆ AERIAL_ADAPTER_TYPE_MESSAGE

#define AERIAL_ADAPTER_TYPE_MESSAGE   0x03 /* DUT -> REF: Test Message for Terminal */

◆ AERIAL_ADAPTER_TYPE_REQUEST

#define AERIAL_ADAPTER_TYPE_REQUEST   0x01 /* DUT -> REF: Test Initialisation Request */

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