Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
test.c File Reference

Simple test program for ca821x api. More...

#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include "ca821x_api.h"
Include dependency graph for test.c:

Classes

struct  dispatch_flags
 Flags for ensuring correct dispatch has been called for each message. More...
 
struct  test_context
 Private data for test application. More...
 

Macros

#define TEST_DSTADDR   0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88
 
#define TEST_CHANNEL   (13)
 
#define TEST_PANID   0x5C, 0xCA
 
#define TEST_MSDULENGTH   (4)
 
#define TEST_MSDUHANDLE   (0xAA)
 
#define TEST_MSDU   0xDE, 0xAD, 0xBE, 0xEF
 
#define TEST_SECURITYLEVEL   (7)
 
#define TEST_KEYIDMODE   (3)
 
#define TEST_KEYSOURCE   0x99, 0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff, 0x00
 
#define TEST_KEYINDEX   (0x01)
 
#define TEST_PIBATTRIBUTE   (phyCurrentChannel)
 
#define TEST_PIBATTRIBUTEVALUE   (TEST_CHANNEL)
 
#define TEST_HWATTRIBUTE   (HWME_EDTHRESHOLD)
 
#define TEST_HWATTRIBUTEVALUE   (100)
 
#define TEST_TDMEATTRIBUTE   (TDME_CHANNEL)
 
#define TEST_TDMEATTRIBUTEVALUE   (TEST_CHANNEL)
 
#define TEST_HAESMODE   (HAES_MODE_ENCRYPT)
 
#define TEST_HAESDATA   0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x99, 0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff
 
#define TEST_SFRPAGE   (1)
 
#define TEST_SFRADDRESS   (0xBF)
 
#define TEST_SFRVALUE   (0xAE)
 
#define TEST_TESTMODE   (TDME_TEST_IDLE)
 
#define TEST_SEQUENCENUM   (0)
 
#define ANSI_COLOR_RED   "\x1b[31m"
 
#define ANSI_COLOR_GREEN   "\x1b[32m"
 
#define ANSI_COLOR_YELLOW   "\x1b[33m"
 
#define ANSI_COLOR_BLUE   "\x1b[34m"
 
#define ANSI_COLOR_MAGENTA   "\x1b[35m"
 
#define ANSI_COLOR_CYAN   "\x1b[36m"
 
#define ANSI_COLOR_RESET   "\x1b[0m"
 

Functions

void ca_log (ca_loglevel loglevel, const char *format, va_list argp)
 Function to process logs depending on platform. More...
 
ca_error verify_command (const uint8_t *buf, size_t len, uint8_t *response, struct ca821x_dev *pDeviceRef)
 Verifies the command frame produced by an API function. More...
 
ca_error ca821x_api_downstream (const uint8_t *buf, uint8_t *response, struct ca821x_dev *pDeviceRef)
 Function for downstream api interface. More...
 
void print_result (uint8_t result)
 Prints the result of an API function call. More...
 
int api_functions_test (void)
 API functions test. More...
 
ca_error test_MCPS_DATA_indication (struct MCPS_DATA_indication_pset *params, struct ca821x_dev *pDeviceRef)
 MCPS-DATA.indication callback function. More...
 
ca_error test_MCPS_DATA_confirm (struct MCPS_DATA_confirm_pset *params, struct ca821x_dev *pDeviceRef)
 MCPS-DATA.confirm callback function. More...
 
ca_error test_MLME_ASSOCIATE_indication (struct MLME_ASSOCIATE_indication_pset *params, struct ca821x_dev *pDeviceRef)
 MLME-ASSOCIATE.indication callback function. More...
 
ca_error test_MLME_ASSOCIATE_confirm (struct MLME_ASSOCIATE_confirm_pset *params, struct ca821x_dev *pDeviceRef)
 MLME-ASSOCIATE.confirm callback function. More...
 
ca_error test_MLME_DISASSOCIATE_indication (struct MLME_DISASSOCIATE_indication_pset *params, struct ca821x_dev *pDeviceRef)
 MLME-DISASSOCIATE.indication callback function. More...
 
ca_error test_MLME_DISASSOCIATE_confirm (struct MLME_DISASSOCIATE_confirm_pset *params, struct ca821x_dev *pDeviceRef)
 MLME-DISASSOCIATE.confirm callback function. More...
 
ca_error test_MLME_BEACON_NOTIFY_indication (struct MLME_BEACON_NOTIFY_indication_pset *params, struct ca821x_dev *pDeviceRef)
 MLME-BEACON-NOTIFY.indication callback function. More...
 
ca_error test_MLME_ORPHAN_indication (struct MLME_ORPHAN_indication_pset *params, struct ca821x_dev *pDeviceRef)
 MLME-ORPHAN.indication callback function. More...
 
ca_error test_MLME_SCAN_confirm (struct MLME_SCAN_confirm_pset *params, struct ca821x_dev *pDeviceRef)
 MLME-SCAN.confirm callback function. More...
 
ca_error test_MLME_COMM_STATUS_indication (struct MLME_COMM_STATUS_indication_pset *params, struct ca821x_dev *pDeviceRef)
 MLME-COMM-STATUS.indication callback function. More...
 
ca_error test_MLME_SYNC_LOSS_indication (struct MLME_SYNC_LOSS_indication_pset *params, struct ca821x_dev *pDeviceRef)
 MLME-SYNC-LOSS.indication callback function. More...
 
ca_error test_HWME_WAKEUP_indication (struct HWME_WAKEUP_indication_pset *params, struct ca821x_dev *pDeviceRef)
 HWME-WAKEUP.indication callback function. More...
 
ca_error test_TDME_RXPKT_indication (struct TDME_RXPKT_indication_pset *params, struct ca821x_dev *pDeviceRef)
 TDME-RXPKT.indication callback function. More...
 
ca_error test_TDME_EDDET_indication (struct TDME_EDDET_indication_pset *params, struct ca821x_dev *pDeviceRef)
 TDME-EDDET.indication callback function. More...
 
ca_error test_TDME_ERROR_indication (struct TDME_ERROR_indication_pset *params, struct ca821x_dev *pDeviceRef)
 TDME-ERROR.indication callback function. More...
 
ca_error test_generic_dispatch (const struct MAC_Message *msg, struct ca821x_dev *pDeviceRef)
 Generic callback function. More...
 
void call_dispatch (struct MAC_Message *msg, struct ca821x_dev *pDeviceRef)
 Wrapper for ca821x_upstream_dispatch. More...
 
int api_callbacks_test (void)
 Callbacks test. More...
 
int main (void)
 

Variables

uint8_t ref_mcps_data_req []
 MCPS-DATA.request reference buffer. More...
 
uint8_t ref_mcps_purge_req []
 MCPS-PURGE.request reference buffer. More...
 
uint8_t ref_mcps_purge_cnf []
 MCPS-PURGE.confirm reference buffer. More...
 
uint8_t ref_mlme_associate_req []
 MLME-ASSOCIATE.request reference buffer. More...
 
uint8_t ref_mlme_associate_resp []
 MLME-ASSOCIATE.response reference buffer. More...
 
uint8_t ref_mlme_disassociate_req []
 MLME-DISASSOCIATE.request reference buffer. More...
 
uint8_t ref_mlme_get_req []
 MLME-GET.request reference buffer. More...
 
uint8_t ref_mlme_get_cnf []
 MLME-GET.confirm reference buffer. More...
 
uint8_t ref_mlme_orphan_resp []
 MLME-ORPHAN.response reference buffer. More...
 
uint8_t ref_mlme_reset_req []
 MLME-RESET.request reference buffer. More...
 
uint8_t ref_mlme_reset_cnf []
 MLME-RESET.confirm reference buffer. More...
 
uint8_t ref_mlme_rx_enable_req []
 MLME-RX-ENABLE.request reference buffer. More...
 
uint8_t ref_mlme_rx_enable_cnf []
 MLME-RX-ENABLE.confirm reference buffer. More...
 
uint8_t ref_mlme_scan_req []
 MLME-SCAN.request reference buffer. More...
 
uint8_t ref_mlme_set_req []
 MLME-SET.request reference buffer. More...
 
uint8_t ref_mlme_set_cnf []
 MLME-SET.confirm reference buffer. More...
 
uint8_t ref_mlme_start_req []
 MLME-START.request reference buffer. More...
 
uint8_t ref_mlme_start_cnf []
 MLME-START.confirm reference buffer. More...
 
uint8_t ref_mlme_poll_req []
 MLME-POLL.request reference buffer. More...
 
uint8_t ref_mlme_poll_cnf []
 MLME-POLL.confirm reference buffer. More...
 
uint8_t ref_hwme_set_req []
 HWME-SET.request reference buffer. More...
 
uint8_t ref_hwme_set_cnf []
 HWME-SET.confirm reference buffer. More...
 
uint8_t ref_hwme_get_req []
 HWME-GET.request reference buffer. More...
 
uint8_t ref_hwme_get_cnf []
 HWME-GET.confirm reference buffer. More...
 
uint8_t ref_hwme_haes_req []
 HWME-HAES.request reference buffer. More...
 
uint8_t ref_hwme_haes_cnf []
 HWME-HAES.confirm reference buffer. More...
 
uint8_t ref_tdme_setsfr_req []
 TDME-SETSFR.request reference buffer. More...
 
uint8_t ref_tdme_setsfr_cnf []
 TDME-SETSFR.confirm reference buffer. More...
 
uint8_t ref_tdme_getsfr_req []
 TDME-GETSFR.request reference buffer. More...
 
uint8_t ref_tdme_getsfr_cnf []
 TDME-GETSFR.confirm reference buffer. More...
 
uint8_t ref_tdme_testmode_req []
 TDME-TESTMODE.request reference buffer. More...
 
uint8_t ref_tdme_testmode_cnf []
 TDME-TESTMODE.confirm reference buffer. More...
 
uint8_t ref_tdme_set_req []
 TDME-SET.request reference buffer. More...
 
uint8_t ref_tdme_set_cnf []
 TDME-SET.confirm reference buffer. More...
 
uint8_t ref_tdme_txpkt_req []
 TDME-TXPKT.request reference buffer. More...
 
uint8_t ref_tdme_txpkt_cnf []
 TDME-TXPKT.confirm reference buffer. More...
 
uint8_t ref_tdme_lotlk_req []
 TDME-LOTLK.request reference buffer. More...
 
uint8_t ref_tdme_lotlk_cnf []
 TDME-LOTLK.confirm reference buffer. More...
 

Detailed Description

Simple test program for ca821x api.

Macro Definition Documentation

◆ ANSI_COLOR_BLUE

#define ANSI_COLOR_BLUE   "\x1b[34m"

◆ ANSI_COLOR_CYAN

#define ANSI_COLOR_CYAN   "\x1b[36m"

◆ ANSI_COLOR_GREEN

#define ANSI_COLOR_GREEN   "\x1b[32m"

◆ ANSI_COLOR_MAGENTA

#define ANSI_COLOR_MAGENTA   "\x1b[35m"

◆ ANSI_COLOR_RED

#define ANSI_COLOR_RED   "\x1b[31m"

◆ ANSI_COLOR_RESET

#define ANSI_COLOR_RESET   "\x1b[0m"

◆ ANSI_COLOR_YELLOW

#define ANSI_COLOR_YELLOW   "\x1b[33m"

◆ TEST_CHANNEL

#define TEST_CHANNEL   (13)

◆ TEST_DSTADDR

#define TEST_DSTADDR   0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88

◆ TEST_HAESDATA

#define TEST_HAESDATA   0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x99, 0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff

◆ TEST_HAESMODE

#define TEST_HAESMODE   (HAES_MODE_ENCRYPT)

◆ TEST_HWATTRIBUTE

#define TEST_HWATTRIBUTE   (HWME_EDTHRESHOLD)

◆ TEST_HWATTRIBUTEVALUE

#define TEST_HWATTRIBUTEVALUE   (100)

◆ TEST_KEYIDMODE

#define TEST_KEYIDMODE   (3)

◆ TEST_KEYINDEX

#define TEST_KEYINDEX   (0x01)

◆ TEST_KEYSOURCE

#define TEST_KEYSOURCE   0x99, 0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff, 0x00

◆ TEST_MSDU

#define TEST_MSDU   0xDE, 0xAD, 0xBE, 0xEF

◆ TEST_MSDUHANDLE

#define TEST_MSDUHANDLE   (0xAA)

◆ TEST_MSDULENGTH

#define TEST_MSDULENGTH   (4)

◆ TEST_PANID

#define TEST_PANID   0x5C, 0xCA

◆ TEST_PIBATTRIBUTE

#define TEST_PIBATTRIBUTE   (phyCurrentChannel)

◆ TEST_PIBATTRIBUTEVALUE

#define TEST_PIBATTRIBUTEVALUE   (TEST_CHANNEL)

◆ TEST_SECURITYLEVEL

#define TEST_SECURITYLEVEL   (7)

◆ TEST_SEQUENCENUM

#define TEST_SEQUENCENUM   (0)

◆ TEST_SFRADDRESS

#define TEST_SFRADDRESS   (0xBF)

◆ TEST_SFRPAGE

#define TEST_SFRPAGE   (1)

◆ TEST_SFRVALUE

#define TEST_SFRVALUE   (0xAE)

◆ TEST_TDMEATTRIBUTE

#define TEST_TDMEATTRIBUTE   (TDME_CHANNEL)

◆ TEST_TDMEATTRIBUTEVALUE

#define TEST_TDMEATTRIBUTEVALUE   (TEST_CHANNEL)

◆ TEST_TESTMODE

#define TEST_TESTMODE   (TDME_TEST_IDLE)

Function Documentation

◆ api_callbacks_test()

int api_callbacks_test ( void  )

Callbacks test.

Returns
0

◆ api_functions_test()

int api_functions_test ( void  )

API functions test.

Tests the cascoda_api command functions to ensure that they produce valid command frames for the transceiver.

Returns
0

◆ call_dispatch()

void call_dispatch ( struct MAC_Message msg,
struct ca821x_dev pDeviceRef 
)

Wrapper for ca821x_upstream_dispatch.

Calls ca821x_upstream_dispatch and prints the result

Parameters
msg- Message buffer
pDeviceRef- Device reference

◆ main()

int main ( void  )

◆ print_result()

void print_result ( uint8_t  result)

Prints the result of an API function call.

Parameters
result- The function's return code

◆ test_generic_dispatch()

ca_error test_generic_dispatch ( const struct MAC_Message msg,
struct ca821x_dev pDeviceRef 
)

Generic callback function.

Parameters
msg- Message buffer
pDeviceRef- Device reference
Returns
CA_ERROR_SUCCESS if this callback was expected, CA_ERROR_NOT_HANDLED otherwise

◆ test_HWME_WAKEUP_indication()

ca_error test_HWME_WAKEUP_indication ( struct HWME_WAKEUP_indication_pset params,
struct ca821x_dev pDeviceRef 
)

HWME-WAKEUP.indication callback function.

Parameters
params- Primitive parameters
pDeviceRef- Device reference
Returns
CA_ERROR_SUCCESS if this callback was expected, CA_ERROR_NOT_HANDLED otherwise

◆ test_MCPS_DATA_confirm()

ca_error test_MCPS_DATA_confirm ( struct MCPS_DATA_confirm_pset params,
struct ca821x_dev pDeviceRef 
)

MCPS-DATA.confirm callback function.

Parameters
params- Primitive parameters
pDeviceRef- Device reference
Returns
CA_ERROR_SUCCESS if this callback was expected, CA_ERROR_NOT_HANDLED otherwise

◆ test_MCPS_DATA_indication()

ca_error test_MCPS_DATA_indication ( struct MCPS_DATA_indication_pset params,
struct ca821x_dev pDeviceRef 
)

MCPS-DATA.indication callback function.

Parameters
params- Primitive parameters
pDeviceRef- Device reference
Returns
CA_ERROR_SUCCESS if this callback was expected, CA_ERROR_NOT_HANDLED otherwise

◆ test_MLME_ASSOCIATE_confirm()

ca_error test_MLME_ASSOCIATE_confirm ( struct MLME_ASSOCIATE_confirm_pset params,
struct ca821x_dev pDeviceRef 
)

MLME-ASSOCIATE.confirm callback function.

Parameters
params- Primitive parameters
pDeviceRef- Device reference
Returns
CA_ERROR_SUCCESS if this callback was expected, CA_ERROR_NOT_HANDLED otherwise

◆ test_MLME_ASSOCIATE_indication()

ca_error test_MLME_ASSOCIATE_indication ( struct MLME_ASSOCIATE_indication_pset params,
struct ca821x_dev pDeviceRef 
)

MLME-ASSOCIATE.indication callback function.

Parameters
params- Primitive parameters
pDeviceRef- Device reference
Returns
CA_ERROR_SUCCESS if this callback was expected, CA_ERROR_NOT_HANDLED otherwise

◆ test_MLME_BEACON_NOTIFY_indication()

ca_error test_MLME_BEACON_NOTIFY_indication ( struct MLME_BEACON_NOTIFY_indication_pset params,
struct ca821x_dev pDeviceRef 
)

MLME-BEACON-NOTIFY.indication callback function.

Parameters
params- Primitive parameters
pDeviceRef- Device reference
Returns
CA_ERROR_SUCCESS if this callback was expected, CA_ERROR_NOT_HANDLED otherwise

◆ test_MLME_COMM_STATUS_indication()

ca_error test_MLME_COMM_STATUS_indication ( struct MLME_COMM_STATUS_indication_pset params,
struct ca821x_dev pDeviceRef 
)

MLME-COMM-STATUS.indication callback function.

Parameters
params- Primitive parameters
pDeviceRef- Device reference
Returns
CA_ERROR_SUCCESS if this callback was expected, CA_ERROR_NOT_HANDLED otherwise

◆ test_MLME_DISASSOCIATE_confirm()

ca_error test_MLME_DISASSOCIATE_confirm ( struct MLME_DISASSOCIATE_confirm_pset params,
struct ca821x_dev pDeviceRef 
)

MLME-DISASSOCIATE.confirm callback function.

Parameters
params- Primitive parameters
pDeviceRef- Device reference
Returns
CA_ERROR_SUCCESS if this callback was expected, CA_ERROR_NOT_HANDLED otherwise

◆ test_MLME_DISASSOCIATE_indication()

ca_error test_MLME_DISASSOCIATE_indication ( struct MLME_DISASSOCIATE_indication_pset params,
struct ca821x_dev pDeviceRef 
)

MLME-DISASSOCIATE.indication callback function.

Parameters
params- Primitive parameters
pDeviceRef- Device reference
Returns
CA_ERROR_SUCCESS if this callback was expected, CA_ERROR_NOT_HANDLED otherwise

◆ test_MLME_ORPHAN_indication()

ca_error test_MLME_ORPHAN_indication ( struct MLME_ORPHAN_indication_pset params,
struct ca821x_dev pDeviceRef 
)

MLME-ORPHAN.indication callback function.

Parameters
params- Primitive parameters
pDeviceRef- Device reference
Returns
CA_ERROR_SUCCESS if this callback was expected, CA_ERROR_NOT_HANDLED otherwise

◆ test_MLME_SCAN_confirm()

ca_error test_MLME_SCAN_confirm ( struct MLME_SCAN_confirm_pset params,
struct ca821x_dev pDeviceRef 
)

MLME-SCAN.confirm callback function.

Parameters
params- Primitive parameters
pDeviceRef- Device reference
Returns
CA_ERROR_SUCCESS if this callback was expected, CA_ERROR_NOT_HANDLED otherwise

◆ test_MLME_SYNC_LOSS_indication()

ca_error test_MLME_SYNC_LOSS_indication ( struct MLME_SYNC_LOSS_indication_pset params,
struct ca821x_dev pDeviceRef 
)

MLME-SYNC-LOSS.indication callback function.

Parameters
params- Primitive parameters
pDeviceRef- Device reference
Returns
CA_ERROR_SUCCESS if this callback was expected, CA_ERROR_NOT_HANDLED otherwise

◆ test_TDME_EDDET_indication()

ca_error test_TDME_EDDET_indication ( struct TDME_EDDET_indication_pset params,
struct ca821x_dev pDeviceRef 
)

TDME-EDDET.indication callback function.

Parameters
params- Primitive parameters
pDeviceRef- Device reference
Returns
CA_ERROR_SUCCESS if this callback was expected, CA_ERROR_NOT_HANDLED otherwise

◆ test_TDME_ERROR_indication()

ca_error test_TDME_ERROR_indication ( struct TDME_ERROR_indication_pset params,
struct ca821x_dev pDeviceRef 
)

TDME-ERROR.indication callback function.

Parameters
params- Primitive parameters
pDeviceRef- Device reference
Returns
CA_ERROR_SUCCESS if this callback was expected, CA_ERROR_NOT_HANDLED otherwise

◆ test_TDME_RXPKT_indication()

ca_error test_TDME_RXPKT_indication ( struct TDME_RXPKT_indication_pset params,
struct ca821x_dev pDeviceRef 
)

TDME-RXPKT.indication callback function.

Parameters
params- Primitive parameters
pDeviceRef- Device reference
Returns
CA_ERROR_SUCCESS if this callback was expected, CA_ERROR_NOT_HANDLED otherwise

◆ verify_command()

ca_error verify_command ( const uint8_t *  buf,
size_t  len,
uint8_t *  response,
struct ca821x_dev pDeviceRef 
)

Verifies the command frame produced by an API function.

This function is called by the API functions with their constructed frame. This frame is then compared to an expected reference.

Parameters
buf- Constructed command frame
len- Length of frame
response- Buffer to populate with synchronous response
pDeviceRef- Device reference

Variable Documentation

◆ ref_hwme_get_cnf

uint8_t ref_hwme_get_cnf[]
Initial value:
= {
4,
1,
}
@ MAC_SUCCESS
Definition: ieee_802_15_4.h:83
@ SPI_HWME_GET_CONFIRM
Definition: mac_messages.h:1164
#define TEST_HWATTRIBUTE
Definition: test.c:55
#define TEST_HWATTRIBUTEVALUE
Definition: test.c:56

HWME-GET.confirm reference buffer.

◆ ref_hwme_get_req

uint8_t ref_hwme_get_req[]
Initial value:
= {
1,
}
@ SPI_HWME_GET_REQUEST
Definition: mac_messages.h:1161

HWME-GET.request reference buffer.

◆ ref_hwme_haes_cnf

uint8_t ref_hwme_haes_cnf[]
Initial value:
= {
17,
}
@ SPI_HWME_HAES_CONFIRM
Definition: mac_messages.h:1165
#define TEST_HAESDATA
Definition: test.c:61
#define TEST_HAESMODE
Definition: test.c:60

HWME-HAES.confirm reference buffer.

◆ ref_hwme_haes_req

uint8_t ref_hwme_haes_req[]
Initial value:
= {
17,
}
@ SPI_HWME_HAES_REQUEST
Definition: mac_messages.h:1162

HWME-HAES.request reference buffer.

◆ ref_hwme_set_cnf

uint8_t ref_hwme_set_cnf[]
Initial value:
= {
2,
}
@ SPI_HWME_SET_CONFIRM
Definition: mac_messages.h:1163

HWME-SET.confirm reference buffer.

◆ ref_hwme_set_req

uint8_t ref_hwme_set_req[]
Initial value:
= {
3,
1,
}
@ SPI_HWME_SET_REQUEST
Definition: mac_messages.h:1160

HWME-SET.request reference buffer.

◆ ref_mcps_data_req

uint8_t ref_mcps_data_req[]
Initial value:
= {
0x00,
}
@ MAC_MODE_LONG_ADDR
64-bit extended address
Definition: ieee_802_15_4.h:135
@ MAC_MODE_SHORT_ADDR
16-bit short address
Definition: ieee_802_15_4.h:134
@ SPI_MCPS_DATA_REQUEST
Definition: mac_messages.h:1108
#define TEST_SECURITYLEVEL
Definition: test.c:48
#define TEST_MSDU
Definition: test.c:46
#define TEST_MSDUHANDLE
Definition: test.c:45
#define TEST_PANID
Definition: test.c:42
#define TEST_KEYINDEX
Definition: test.c:51
#define TEST_MSDULENGTH
Definition: test.c:44
#define TEST_DSTADDR
Definition: test.c:40
#define TEST_KEYSOURCE
Definition: test.c:50
#define TEST_KEYIDMODE
Definition: test.c:49

MCPS-DATA.request reference buffer.

◆ ref_mcps_purge_cnf

uint8_t ref_mcps_purge_cnf[]
Initial value:
= {
2,
}
@ SPI_MCPS_PURGE_CONFIRM
Definition: mac_messages.h:1112

MCPS-PURGE.confirm reference buffer.

◆ ref_mcps_purge_req

uint8_t ref_mcps_purge_req[]
Initial value:
= {
1,
}
@ SPI_MCPS_PURGE_REQUEST
Definition: mac_messages.h:1109

MCPS-PURGE.request reference buffer.

◆ ref_mlme_associate_req

uint8_t ref_mlme_associate_req[]
Initial value:
= {
24,
0x00,
}
@ SPI_MLME_ASSOCIATE_REQUEST
Definition: mac_messages.h:1120
#define TEST_CHANNEL
Definition: test.c:41

MLME-ASSOCIATE.request reference buffer.

◆ ref_mlme_associate_resp

uint8_t ref_mlme_associate_resp[]
Initial value:
= {
22,
0x01,
0xCA,
0x00,
}
@ SPI_MLME_ASSOCIATE_RESPONSE
Definition: mac_messages.h:1121

MLME-ASSOCIATE.response reference buffer.

◆ ref_mlme_disassociate_req

uint8_t ref_mlme_disassociate_req[]
Initial value:
= {
24,
0,
}
@ DISASSOC_REASON_EVICT
The coordinator wishes the device to leave the PAN.
Definition: ieee_802_15_4.h:234
@ SPI_MLME_DISASSOCIATE_REQUEST
Definition: mac_messages.h:1122

MLME-DISASSOCIATE.request reference buffer.

◆ ref_mlme_get_cnf

uint8_t ref_mlme_get_cnf[]
Initial value:
5,
0x00,
0x01,
@ SPI_MLME_GET_CONFIRM
Definition: mac_messages.h:1141
#define TEST_PIBATTRIBUTE
Definition: test.c:53
#define TEST_PIBATTRIBUTEVALUE
Definition: test.c:54

MLME-GET.confirm reference buffer.

◆ ref_mlme_get_req

uint8_t ref_mlme_get_req[]
Initial value:
= {
2,
0x00
}
@ SPI_MLME_GET_REQUEST
Definition: mac_messages.h:1123

MLME-GET.request reference buffer.

◆ ref_mlme_orphan_resp

uint8_t ref_mlme_orphan_resp[]
Initial value:
= {
22,
0x01,
0xCA,
0,
}
@ SPI_MLME_ORPHAN_RESPONSE
Definition: mac_messages.h:1124

MLME-ORPHAN.response reference buffer.

◆ ref_mlme_poll_cnf

uint8_t ref_mlme_poll_cnf[]
Initial value:
= {
1,
}
@ SPI_MLME_POLL_CONFIRM
Definition: mac_messages.h:1154

MLME-POLL.confirm reference buffer.

◆ ref_mlme_poll_req

uint8_t ref_mlme_poll_req[]
Initial value:

MLME-POLL.request reference buffer.

◆ ref_mlme_reset_cnf

uint8_t ref_mlme_reset_cnf[]
Initial value:
= {
1,
}
@ SPI_MLME_RESET_CONFIRM
Definition: mac_messages.h:1143

MLME-RESET.confirm reference buffer.

◆ ref_mlme_reset_req

uint8_t ref_mlme_reset_req[]
Initial value:
= {
1,
0
}
@ SPI_MLME_RESET_REQUEST
Definition: mac_messages.h:1125

MLME-RESET.request reference buffer.

◆ ref_mlme_rx_enable_cnf

uint8_t ref_mlme_rx_enable_cnf[]
Initial value:
= {
1,
}
@ SPI_MLME_RX_ENABLE_CONFIRM
Definition: mac_messages.h:1144

MLME-RX-ENABLE.confirm reference buffer.

◆ ref_mlme_rx_enable_req

uint8_t ref_mlme_rx_enable_req[]
Initial value:
= {
9,
0x00,
0x0A,
0x00,
0x00,
0xA0,
0x0B,
0x00,
0x00,
0xB0
}
@ SPI_MLME_RX_ENABLE_REQUEST
Definition: mac_messages.h:1126

MLME-RX-ENABLE.request reference buffer.

◆ ref_mlme_scan_req

uint8_t ref_mlme_scan_req[]
Initial value:
= {
17,
0x00,
0xF8,
0xFF,
0x07,
0x01,
}
@ ACTIVE_SCAN
Definition: ieee_802_15_4.h:175
@ SPI_MLME_SCAN_REQUEST
Definition: mac_messages.h:1127

MLME-SCAN.request reference buffer.

◆ ref_mlme_set_cnf

uint8_t ref_mlme_set_cnf[]
Initial value:
= {
3,
0x00
}
@ SPI_MLME_SET_CONFIRM
Definition: mac_messages.h:1147

MLME-SET.confirm reference buffer.

◆ ref_mlme_set_req

uint8_t ref_mlme_set_req[]
Initial value:
4,
0x00,
0x01,
@ SPI_MLME_SET_REQUEST
Definition: mac_messages.h:1128

MLME-SET.request reference buffer.

◆ ref_mlme_start_cnf

uint8_t ref_mlme_start_cnf[]
Initial value:
= {
1,
}
@ SPI_MLME_START_CONFIRM
Definition: mac_messages.h:1148

MLME-START.confirm reference buffer.

◆ ref_mlme_start_req

uint8_t ref_mlme_start_req[]
Initial value:

MLME-START.request reference buffer.

◆ ref_tdme_getsfr_cnf

uint8_t ref_tdme_getsfr_cnf[]
Initial value:
= {
4,
}
@ SPI_TDME_GETSFR_CONFIRM
Definition: mac_messages.h:1175
#define TEST_SFRVALUE
Definition: test.c:65
#define TEST_SFRPAGE
Definition: test.c:63
#define TEST_SFRADDRESS
Definition: test.c:64

TDME-GETSFR.confirm reference buffer.

◆ ref_tdme_getsfr_req

uint8_t ref_tdme_getsfr_req[]
Initial value:
= {
2,
}
@ SPI_TDME_GETSFR_REQUEST
Definition: mac_messages.h:1169

TDME-GETSFR.request reference buffer.

◆ ref_tdme_lotlk_cnf

uint8_t ref_tdme_lotlk_cnf[]
Initial value:
= {
6,
0,
0,
0,
0
}
@ SPI_TDME_LOTLK_CONFIRM
Definition: mac_messages.h:1182

TDME-LOTLK.confirm reference buffer.

◆ ref_tdme_lotlk_req

uint8_t ref_tdme_lotlk_req[]
Initial value:
= {
2,
0
}
@ SPI_TDME_LOTLK_REQUEST
Definition: mac_messages.h:1173

TDME-LOTLK.request reference buffer.

◆ ref_tdme_set_cnf

uint8_t ref_tdme_set_cnf[]
Initial value:
= {
2,
}
@ SPI_TDME_SET_CONFIRM
Definition: mac_messages.h:1177
#define TEST_TDMEATTRIBUTE
Definition: test.c:57

TDME-SET.confirm reference buffer.

◆ ref_tdme_set_req

uint8_t ref_tdme_set_req[]
Initial value:
= {
3,
1,
}
@ SPI_TDME_SET_REQUEST
Definition: mac_messages.h:1171
#define TEST_TDMEATTRIBUTEVALUE
Definition: test.c:58

TDME-SET.request reference buffer.

◆ ref_tdme_setsfr_cnf

uint8_t ref_tdme_setsfr_cnf[]
Initial value:
= {
3,
}
@ SPI_TDME_SETSFR_CONFIRM
Definition: mac_messages.h:1174

TDME-SETSFR.confirm reference buffer.

◆ ref_tdme_setsfr_req

uint8_t ref_tdme_setsfr_req[]
Initial value:
= {
3,
}
@ SPI_TDME_SETSFR_REQUEST
Definition: mac_messages.h:1168

TDME-SETSFR.request reference buffer.

◆ ref_tdme_testmode_cnf

uint8_t ref_tdme_testmode_cnf[]
Initial value:
= {
1,
}
@ SPI_TDME_TESTMODE_CONFIRM
Definition: mac_messages.h:1176
#define TEST_TESTMODE
Definition: test.c:67

TDME-TESTMODE.confirm reference buffer.

◆ ref_tdme_testmode_req

uint8_t ref_tdme_testmode_req[]
Initial value:
= {
1,
}
@ SPI_TDME_TESTMODE_REQUEST
Definition: mac_messages.h:1170

TDME-TESTMODE.request reference buffer.

◆ ref_tdme_txpkt_cnf

uint8_t ref_tdme_txpkt_cnf[]
Initial value:
= {
}
@ SPI_TDME_TXPKT_CONFIRM
Definition: mac_messages.h:1178
#define TEST_SEQUENCENUM
Definition: test.c:69

TDME-TXPKT.confirm reference buffer.

◆ ref_tdme_txpkt_req

uint8_t ref_tdme_txpkt_req[]
Initial value:
= {
}
@ TDME_TXD_APPENDED
Data external and appended to TDME-TXPKT Request.
Definition: hwme_tdme.h:222
@ SPI_TDME_TXPKT_REQUEST
Definition: mac_messages.h:1172

TDME-TXPKT.request reference buffer.