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

PHY Test Functions using MAC Functions for Data Reliablity. More...

#include <stdio.h>
#include <string.h>
#include "cascoda-util/cascoda_rand.h"
#include "ca821x_api.h"
#include "test15_4_phy_tests.h"
Include dependency graph for test15_4_phy_tests_mac.c:

Macros

#define PHY_PANID   0xCA5C
 
#define PHY_TX_SHORTADD   0xCA51
 
#define PHY_RX_SHORTADD   0xCA52
 
#define PHY_TX_LONGADD
 
#define PHY_RX_LONGADD
 

Functions

void PHYTestMACAddInit (void)
 Address Initialisation. More...
 
uint8_t PHYTestMACTxInitialise (struct ca821x_dev *pDeviceRef)
 Initialisation for using MAC layer in EVBME (Tx) More...
 
uint8_t PHYTestMACRxInitialise (struct ca821x_dev *pDeviceRef)
 Initialisation for using MAC layer in EVBME (Rx) More...
 
uint8_t PHYTestMACDeinitialise (struct ca821x_dev *pDeviceRef)
 Denitialisation for using MAC layer in EVBME. More...
 
uint8_t PHY_TXPKT_MAC_request (struct MAC_Message *msg, struct ca821x_dev *pDeviceRef)
 
uint8_t PHY_TXPKT_MAC_confirm (struct MCPS_DATA_confirm_pset *params, struct ca821x_dev *pDeviceRef)
 PHY Test Wrapper for MCPS_DATA_confirm() More...
 
uint8_t PHY_RXPKT_MAC_indication (struct MCPS_DATA_indication_pset *params, struct ca821x_dev *pDeviceRef)
 PHY Test Wrapper for MCPS_DATA_indication() More...
 

Variables

uint16_t PHYPANId
 
uint16_t PHYTxShortAddress
 
uint16_t PHYRxShortAddress
 
uint8_t PHYTxLongAddress [8]
 
uint8_t PHYRxLongAddress [8]
 
uint8_t DSN_OLD
 

Detailed Description

PHY Test Functions using MAC Functions for Data Reliablity.

Macro Definition Documentation

◆ PHY_PANID

#define PHY_PANID   0xCA5C

◆ PHY_RX_LONGADD

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

◆ PHY_RX_SHORTADD

#define PHY_RX_SHORTADD   0xCA52

◆ PHY_TX_LONGADD

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

◆ PHY_TX_SHORTADD

#define PHY_TX_SHORTADD   0xCA51

Function Documentation

◆ PHY_RXPKT_MAC_indication()

uint8_t PHY_RXPKT_MAC_indication ( struct MCPS_DATA_indication_pset params,
struct ca821x_dev pDeviceRef 
)

PHY Test Wrapper for MCPS_DATA_indication()

Parameters
params- MCPS data indication buffer
pDeviceRef- Device Reference
Returns
Status

◆ PHY_TXPKT_MAC_confirm()

uint8_t PHY_TXPKT_MAC_confirm ( struct MCPS_DATA_confirm_pset params,
struct ca821x_dev pDeviceRef 
)

PHY Test Wrapper for MCPS_DATA_confirm()

Parameters
params- MCPS data confirm buffer
pDeviceRef- Device Reference
Returns
Status

◆ PHY_TXPKT_MAC_request()

uint8_t PHY_TXPKT_MAC_request ( struct MAC_Message msg,
struct ca821x_dev pDeviceRef 
)

◆ PHYTestMACAddInit()

void PHYTestMACAddInit ( void  )

Address Initialisation.

◆ PHYTestMACDeinitialise()

uint8_t PHYTestMACDeinitialise ( struct ca821x_dev pDeviceRef)

Denitialisation for using MAC layer in EVBME.

Parameters
pDeviceRef- Device Reference
Returns
Status

◆ PHYTestMACRxInitialise()

uint8_t PHYTestMACRxInitialise ( struct ca821x_dev pDeviceRef)

Initialisation for using MAC layer in EVBME (Rx)

Parameters
pDeviceRef- Device Reference
Returns
Status

◆ PHYTestMACTxInitialise()

uint8_t PHYTestMACTxInitialise ( struct ca821x_dev pDeviceRef)

Initialisation for using MAC layer in EVBME (Tx)

Parameters
pDeviceRef- Device Reference
Returns
Status

Variable Documentation

◆ DSN_OLD

uint8_t DSN_OLD

◆ PHYPANId

uint16_t PHYPANId

◆ PHYRxLongAddress

uint8_t PHYRxLongAddress[8]

◆ PHYRxShortAddress

uint16_t PHYRxShortAddress

◆ PHYTxLongAddress

uint8_t PHYTxLongAddress[8]

◆ PHYTxShortAddress

uint16_t PHYTxShortAddress