Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
devboard_app_aerial_adapter_sed.c File Reference
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "cascoda-bm/cascoda_aerial_adapter.h"
#include "cascoda-bm/cascoda_evbme.h"
#include "cascoda-bm/cascoda_interface.h"
#include "cascoda-bm/cascoda_sensorif.h"
#include "cascoda-bm/cascoda_serial.h"
#include "cascoda-bm/cascoda_spi.h"
#include "cascoda-bm/cascoda_types.h"
#include "cascoda-bm/cascoda_wait.h"
#include "cascoda-util/cascoda_tasklet.h"
#include "cascoda-util/cascoda_time.h"
#include "ca821x_api.h"
#include "devboard_btn.h"
Include dependency graph for devboard_app_aerial_adapter_sed.c:

Macros

#define POLL_PERIOD   10
 
#define MEASUREMENT_PERIOD   10
 
#define NR_OF_DATA_VALUES   1
 
#define ONLY_ONE_PACKET   1
 
#define ENABLE_SECURITY   1
 
#define MSDULENGTH1   102
 
#define MSDULENGTH2   27
 
#define AIR_CHANNEL   15
 
#define MAC_CHANNEL   13
 
#define MAC_PANID   0xCA5C
 
#define MAC_LONGADD_ROUTER
 
#define MAC_SHORTADD_ROUTER   0xCA01
 
#define MAC_LONGADD_SED
 
#define MAC_SHORTADD_SED   0xCA02
 

Typedefs

typedef int(* printf_function) (const char *format,...)
 

Functions

int main (void)
 Main Program Endless Loop. More...
 

Variables

uint8_t sMacSecurityEnabled = 1
 
uint8_t sMacKeyTableEntries = 2
 
uint8_t sMacKeyTable0 [52]
 
uint8_t sMacKeyTable1 [52]
 
uint8_t sMacDeviceTableEntries = 2
 
uint8_t sMacDeviceTable0 [17]
 
uint8_t sMacDeviceTable1 [17]
 
uint8_t sMacDefaultKeySource [8] = {0xCA, 0x5C, 0x0D, 0xA0, 0x00, 0x00, 0x00, 0x02}
 
printf_function xprintf
 
struct ca821x_dev g_deviceref
 

Macro Definition Documentation

◆ AIR_CHANNEL

#define AIR_CHANNEL   15

◆ ENABLE_SECURITY

#define ENABLE_SECURITY   1

◆ MAC_CHANNEL

#define MAC_CHANNEL   13

◆ MAC_LONGADD_ROUTER

#define MAC_LONGADD_ROUTER
Value:
{ \
0x01, 0x00, 0x00, 0x00, 0xA0, 0x0D, 0x5C, 0xCA \
}

◆ MAC_LONGADD_SED

#define MAC_LONGADD_SED
Value:
{ \
0x02, 0x00, 0x00, 0x00, 0xA0, 0x0D, 0x5C, 0xCA \
}

◆ MAC_PANID

#define MAC_PANID   0xCA5C

◆ MAC_SHORTADD_ROUTER

#define MAC_SHORTADD_ROUTER   0xCA01

◆ MAC_SHORTADD_SED

#define MAC_SHORTADD_SED   0xCA02

◆ MEASUREMENT_PERIOD

#define MEASUREMENT_PERIOD   10

◆ MSDULENGTH1

#define MSDULENGTH1   102

◆ MSDULENGTH2

#define MSDULENGTH2   27

◆ NR_OF_DATA_VALUES

#define NR_OF_DATA_VALUES   1

◆ ONLY_ONE_PACKET

#define ONLY_ONE_PACKET   1

◆ POLL_PERIOD

#define POLL_PERIOD   10

Typedef Documentation

◆ printf_function

typedef int(* printf_function) (const char *format,...)

Function Documentation

◆ main()

int main ( void  )

Main Program Endless Loop.

Returns
Does not return

Variable Documentation

◆ g_deviceref

struct ca821x_dev g_deviceref

◆ sMacDefaultKeySource

uint8_t sMacDefaultKeySource[8] = {0xCA, 0x5C, 0x0D, 0xA0, 0x00, 0x00, 0x00, 0x02}

◆ sMacDeviceTable0

uint8_t sMacDeviceTable0[17]
Initial value:
=
{0x5C, 0xCA, 0x01, 0xCA, 0x01, 0x00, 0x00, 0x00, 0xA0, 0x0D, 0x5C, 0xCA, 0x00, 0x00, 0x00, 0x00, 0x00}

◆ sMacDeviceTable1

uint8_t sMacDeviceTable1[17]
Initial value:
=
{0x5C, 0xCA, 0x02, 0xCA, 0x02, 0x00, 0x00, 0x00, 0xA0, 0x0D, 0x5C, 0xCA, 0x00, 0x00, 0x00, 0x00, 0x00}

◆ sMacDeviceTableEntries

uint8_t sMacDeviceTableEntries = 2

◆ sMacKeyTable0

uint8_t sMacKeyTable0[52]
Initial value:
= {
0x02, 0x01, 0x0C,
0xAD, 0x44, 0x3B, 0xEF, 0x80, 0xB7, 0x33, 0x6F, 0x2F, 0xF8, 0xB9, 0xA7, 0xA4, 0x7F, 0x01, 0x6A,
0x00, 0x01, 0xCA, 0x5C, 0xCA, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x01, 0x00, 0x00, 0x00, 0xA0, 0x0D, 0x5C, 0xCA, 0x01,
0x00,
0x00, 0x01, 0x02, 0x13, 0x23, 0x33, 0x43, 0x53, 0x63, 0x73, 0x83, 0x93
}

◆ sMacKeyTable1

uint8_t sMacKeyTable1[52]
Initial value:
= {
0x02, 0x01, 0x0C,
0xAD, 0x44, 0x3B, 0xEF, 0x80, 0xB7, 0x33, 0x6F, 0x2F, 0xF8, 0xB9, 0xA7, 0xA4, 0x7F, 0x01, 0x6A,
0x00, 0x02, 0xCA, 0x5C, 0xCA, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x02, 0x00, 0x00, 0x00, 0xA0, 0x0D, 0x5C, 0xCA, 0x01,
0x01,
0x00, 0x01, 0x02, 0x13, 0x23, 0x33, 0x43, 0x53, 0x63, 0x73, 0x83, 0x93
}

◆ sMacKeyTableEntries

uint8_t sMacKeyTableEntries = 2

◆ sMacSecurityEnabled

uint8_t sMacSecurityEnabled = 1

◆ xprintf

printf_function xprintf