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

PHY Tests Definitions and Function Declarations. More...

#include <stddef.h>
#include <stdint.h>
Include dependency graph for test15_4_phy_tests.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  PHYTestPar
 
struct  PHYTestRes
 

Macros

#define PHY_TEST_OFF   0x00
 Testmode Off. More...
 
#define PHY_TEST_TX_PKT   0x01
 Transmit Periodic Packets. More...
 
#define PHY_TEST_TX_CONT   0x02
 Transmit Continuous. More...
 
#define PHY_TEST_RX_PER   0x03
 Receive PER Test. More...
 
#define PHY_TEST_RX_PSN   0x04
 Receive Packet Sniffer. More...
 
#define PHY_TEST_RX_EDSN   0x05
 Receive Energy Detect Sniffer. More...
 
#define PHY_TEST_LO_1   0x06
 LO Test 1 (Closed Loop, Tx/Rx) More...
 
#define PHY_TEST_LO_2   0x07
 LO Test 2 (VCO Open Loop) More...
 
#define PHY_TEST_LO_3   0x08
 LO Test 3 (Locking Test) More...
 
#define PHY_TEST_MAX   PHY_TEST_LO_3
 
#define PHY_TESTPAR_PACKETPERIOD   0x00
 Packet Period [ms]. More...
 
#define PHY_TESTPAR_PACKETLENGTH   0x01
 Packet Length [bytes]. More...
 
#define PHY_TESTPAR_NUMBEROFPKTS   0x02
 Number of Packets for Test. More...
 
#define PHY_TESTPAR_PACKETDATATYPE   0x03
 Packet Data Type (Payload) More...
 
#define PHY_TESTPAR_CHANNEL   0x04
 TDME-PIB 802.15.4 Channel. More...
 
#define PHY_TESTPAR_TXPOWER   0x05
 TDME-PIB Transmit Power. More...
 
#define PHY_TESTPAR_EDTHRESHOLD   0x06
 TDME-PIB ED Threshold. More...
 
#define PHY_TESTPAR_RX_FFSYNC   0x07
 TDME-PIB Rx Flag False Sync. More...
 
#define PHY_TESTPAR_LO_1_RXTXB   0x08
 TDME-PIB LO Test 1 Tx/Rx. More...
 
#define PHY_TESTPAR_LO_2_FDAC   0x09
 TDME-PIB LO Test 2 FDAC Value. More...
 
#define PHY_TESTPAR_LO_3_LOCKS   0x0A
 LO Test 3 Number of Locks per Tx/Rx Channel. More...
 
#define PHY_TESTPAR_LO_3_PERIOD   0x0B
 LO Test 3 Locking Test Period [ms]. More...
 
#define PHY_TESTPAR_ATM   0x0C
 TDME-PIB Analog Test Bus Configuration. More...
 
#define PHY_TESTPAR_MPW2_OVWR   0x0D
 TDME-PIB MPW2 Overwrite. More...
 
#define PHY_TESTPAR_MACENABLED   0x0E
 MAC Enabled for Test. More...
 
#define PHY_TESTPAR_MAX   PHY_TESTPAR_MACENABLED
 
#define PHY_TESTPAR_ALL   (PHY_TESTPAR_MAX + 1)
 
#define PHY_TESTPARDEF_PACKETPERIOD   1000
 
#define PHY_TESTPARDEF_PACKETLENGTH   20
 
#define PHY_TESTPARDEF_NUMBEROFPKTS   10000
 
#define PHY_TESTPARDEF_PACKETDATATYPE   TDME_TXD_RANDOM
 
#define PHY_TESTPARDEF_CHANNEL   0x12
 
#define PHY_TESTPARDEF_TXPOWER_IB   1
 
#define PHY_TESTPARDEF_TXPOWER_PB   3
 
#define PHY_TESTPARDEF_TXPOWER_BOOST   0
 
#define PHY_TESTPARDEF_TXCONT   0
 
#define PHY_TESTPARDEF_EDTHRESHOLD   0x80
 
#define PHY_TESTPARDEF_RX_FFSYNC   0
 
#define PHY_TESTPARDEF_LO_1_RXTXB   0
 
#define PHY_TESTPARDEF_LO_2_FDAC   32
 
#define PHY_TESTPARDEF_LO_3_LOCKS   20
 
#define PHY_TESTPARDEF_LO_3_PERIOD   10
 
#define PHY_TESTPARDEF_ATM   0x00
 
#define PHY_TESTPARDEF_MPW2_OVWR   0x03
 
#define PHY_TESTPARDEF_MACENABLED   0
 
#define PHY_TEST_REPORT_PERIOD   5000
 Report period in [ms]. More...
 
#define TEST_STAT_ACCUM   0 /* accumulate */
 
#define TEST_STAT_INIT   1 /* initialise */
 
#define TEST_STAT_REPORT   2 /* averages for interim reporting */
 
#define TEST_STAT_FINAL   3 /* averages for final reporting */
 

Functions

unsigned long test15_4_getms (void)
 Returns the current time. More...
 
void PHYTestModeHandler (struct ca821x_dev *pDeviceRef)
 Dispatch Branch for PHY Tests including Initialisation. More...
 
uint8_t PHYTestInitialise (struct ca821x_dev *pDeviceRef)
 Sequential Initialisation of TDME. More...
 
void PHYTestDeinitialise (struct ca821x_dev *pDeviceRef)
 Deinitialisation of TDME. More...
 
uint8_t PHYTestTransmitPacket (struct ca821x_dev *pDeviceRef)
 PHY Test Transmit Packet. More...
 
void PHYTestReceivePacketPER (struct ca821x_dev *pDeviceRef)
 PHY Test Receive Packet in PER Mode (Packet Error Rate) More...
 
void PHYTestReceivePacketPSN (struct ca821x_dev *pDeviceRef)
 PHY Test Receive Packet in in PSN Mode (Packet Sniffer) More...
 
void PHYTestReceiveED (struct ca821x_dev *pDeviceRef)
 PHY Test Receive in ED Detect Mode (Energy Sniffer) More...
 
uint8_t PHYTestLOLocking (struct ca821x_dev *pDeviceRef)
 PHY Test LO_3 (Locking) Test. More...
 
void PHYTestExit (char *errmsg)
 PHY Test Mode Exit. More...
 
void PHYTestInitTestResults (void)
 PHY Test Initialise Results and Run Parameters. More...
 
void PHYTestReset (void)
 PHY Test Reset Testmode PIB. More...
 
void PHYTestStatistics (uint8_t mode, uint8_t ed, uint8_t cs, uint8_t fo)
 Calculate Test Statistics. More...
 
uint32_t PHYTest_divu32round (uint32_t va, uint32_t vb)
 Division of Unsigned 32-Bit Values with Rounding. More...
 
int32_t PHYTest_divs32round (int32_t va, int32_t vb)
 Division of Signed 32-Bit Values with Rounding. More...
 
uint8_t PHYTestCalculateReportTime (uint8_t init)
 Calculate Time when to report Results. More...
 
void PHYTestReportTestMode (void)
 Report Test Mode after Initialisation is done. More...
 
void PHYTestReportTestParameters (uint8_t parameter)
 Report Test Parameter PIB. More...
 
void PHYTestReportPacketTransmitted (struct MAC_Message *msg, uint8_t status)
 Report Successful Transmission of Packet. More...
 
void PHYTestReportTransmitPacketAnalysis (void)
 Report Packet Transmission Analysis. More...
 
void PHYTestReportPacketReceived (struct TDME_RXPKT_indication_pset *params)
 Report Reception of Packet. More...
 
void PHYTestReportReceivedPacketAnalysis (void)
 Report Packet Reception Analysis. More...
 
void PHYTestReportTestResult (void)
 Report Complete Test Result. More...
 
void PHYTestReportEDReceived (struct TDME_EDDET_indication_pset *params)
 Report Reception of ED above Threshold. More...
 
void PHYTestReportLOLocking (struct TDME_LOTLK_confirm_pset *params, uint8_t ntest)
 Report LO Test 3 Result (Locking Test) More...
 
void PHYTestCfg (uint8_t val)
 PHY Change Test Configuration. More...
 
uint8_t PHY_TESTMODE_request (uint8_t testmode, struct ca821x_dev *pDeviceRef)
 PHY Test Wrapper for TDME_TESTMODE_request_sync. More...
 
uint8_t PHY_SET_request (uint8_t evbme_attribute, struct ca821x_dev *pDeviceRef)
 PHY Test Wrapper for TDME_SET_request_sync. More...
 
uint8_t PHY_TXPKT_request (struct MAC_Message *msg, struct ca821x_dev *pDeviceRef)
 PHY Test Wrapper for TDME_TXPKT_request_sync. More...
 
uint8_t PHY_LOTLK_request (uint8_t ch, uint8_t rx_txb, uint8_t ntest, struct ca821x_dev *pDeviceRef)
 PHY Test Wrapper for TDME_LOTLK_request_sync. More...
 
int PHY_RXPKT_indication (struct TDME_RXPKT_indication_pset *params, struct ca821x_dev *pDeviceRef)
 PHY Test Wrapper for TDME_RXPKT_indication. More...
 
int PHY_EDDET_indication (struct TDME_EDDET_indication_pset *params, struct ca821x_dev *pDeviceRef)
 PHY Test Wrapper for TDME_EDDET_indication. More...
 
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_RXPKT_MAC_indication (struct MCPS_DATA_indication_pset *params, struct ca821x_dev *pDeviceRef)
 PHY Test Wrapper for MCPS_DATA_indication() More...
 
uint8_t PHY_TXPKT_MAC_confirm (struct MCPS_DATA_confirm_pset *params, struct ca821x_dev *pDeviceRef)
 PHY Test Wrapper for MCPS_DATA_confirm() More...
 

Variables

uint8_t PHY_TESTMODE
 
struct PHYTestPar PHY_TESTPAR
 
struct PHYTestRes PHY_TESTRES
 

Detailed Description

PHY Tests Definitions and Function Declarations.

Macro Definition Documentation

◆ PHY_TEST_LO_1

#define PHY_TEST_LO_1   0x06

LO Test 1 (Closed Loop, Tx/Rx)

◆ PHY_TEST_LO_2

#define PHY_TEST_LO_2   0x07

LO Test 2 (VCO Open Loop)

◆ PHY_TEST_LO_3

#define PHY_TEST_LO_3   0x08

LO Test 3 (Locking Test)

◆ PHY_TEST_MAX

#define PHY_TEST_MAX   PHY_TEST_LO_3

◆ PHY_TEST_OFF

#define PHY_TEST_OFF   0x00

Testmode Off.

◆ PHY_TEST_REPORT_PERIOD

#define PHY_TEST_REPORT_PERIOD   5000

Report period in [ms].

◆ PHY_TEST_RX_EDSN

#define PHY_TEST_RX_EDSN   0x05

Receive Energy Detect Sniffer.

◆ PHY_TEST_RX_PER

#define PHY_TEST_RX_PER   0x03

Receive PER Test.

◆ PHY_TEST_RX_PSN

#define PHY_TEST_RX_PSN   0x04

Receive Packet Sniffer.

◆ PHY_TEST_TX_CONT

#define PHY_TEST_TX_CONT   0x02

Transmit Continuous.

◆ PHY_TEST_TX_PKT

#define PHY_TEST_TX_PKT   0x01

Transmit Periodic Packets.

◆ PHY_TESTPAR_ALL

#define PHY_TESTPAR_ALL   (PHY_TESTPAR_MAX + 1)

◆ PHY_TESTPAR_ATM

#define PHY_TESTPAR_ATM   0x0C

TDME-PIB Analog Test Bus Configuration.

◆ PHY_TESTPAR_CHANNEL

#define PHY_TESTPAR_CHANNEL   0x04

TDME-PIB 802.15.4 Channel.

◆ PHY_TESTPAR_EDTHRESHOLD

#define PHY_TESTPAR_EDTHRESHOLD   0x06

TDME-PIB ED Threshold.

◆ PHY_TESTPAR_LO_1_RXTXB

#define PHY_TESTPAR_LO_1_RXTXB   0x08

TDME-PIB LO Test 1 Tx/Rx.

◆ PHY_TESTPAR_LO_2_FDAC

#define PHY_TESTPAR_LO_2_FDAC   0x09

TDME-PIB LO Test 2 FDAC Value.

◆ PHY_TESTPAR_LO_3_LOCKS

#define PHY_TESTPAR_LO_3_LOCKS   0x0A

LO Test 3 Number of Locks per Tx/Rx Channel.

◆ PHY_TESTPAR_LO_3_PERIOD

#define PHY_TESTPAR_LO_3_PERIOD   0x0B

LO Test 3 Locking Test Period [ms].

◆ PHY_TESTPAR_MACENABLED

#define PHY_TESTPAR_MACENABLED   0x0E

MAC Enabled for Test.

◆ PHY_TESTPAR_MAX

#define PHY_TESTPAR_MAX   PHY_TESTPAR_MACENABLED

◆ PHY_TESTPAR_MPW2_OVWR

#define PHY_TESTPAR_MPW2_OVWR   0x0D

TDME-PIB MPW2 Overwrite.

◆ PHY_TESTPAR_NUMBEROFPKTS

#define PHY_TESTPAR_NUMBEROFPKTS   0x02

Number of Packets for Test.

◆ PHY_TESTPAR_PACKETDATATYPE

#define PHY_TESTPAR_PACKETDATATYPE   0x03

Packet Data Type (Payload)

◆ PHY_TESTPAR_PACKETLENGTH

#define PHY_TESTPAR_PACKETLENGTH   0x01

Packet Length [bytes].

◆ PHY_TESTPAR_PACKETPERIOD

#define PHY_TESTPAR_PACKETPERIOD   0x00

Packet Period [ms].

◆ PHY_TESTPAR_RX_FFSYNC

#define PHY_TESTPAR_RX_FFSYNC   0x07

TDME-PIB Rx Flag False Sync.

◆ PHY_TESTPAR_TXPOWER

#define PHY_TESTPAR_TXPOWER   0x05

TDME-PIB Transmit Power.

◆ PHY_TESTPARDEF_ATM

#define PHY_TESTPARDEF_ATM   0x00

◆ PHY_TESTPARDEF_CHANNEL

#define PHY_TESTPARDEF_CHANNEL   0x12

◆ PHY_TESTPARDEF_EDTHRESHOLD

#define PHY_TESTPARDEF_EDTHRESHOLD   0x80

◆ PHY_TESTPARDEF_LO_1_RXTXB

#define PHY_TESTPARDEF_LO_1_RXTXB   0

◆ PHY_TESTPARDEF_LO_2_FDAC

#define PHY_TESTPARDEF_LO_2_FDAC   32

◆ PHY_TESTPARDEF_LO_3_LOCKS

#define PHY_TESTPARDEF_LO_3_LOCKS   20

◆ PHY_TESTPARDEF_LO_3_PERIOD

#define PHY_TESTPARDEF_LO_3_PERIOD   10

◆ PHY_TESTPARDEF_MACENABLED

#define PHY_TESTPARDEF_MACENABLED   0

◆ PHY_TESTPARDEF_MPW2_OVWR

#define PHY_TESTPARDEF_MPW2_OVWR   0x03

◆ PHY_TESTPARDEF_NUMBEROFPKTS

#define PHY_TESTPARDEF_NUMBEROFPKTS   10000

◆ PHY_TESTPARDEF_PACKETDATATYPE

#define PHY_TESTPARDEF_PACKETDATATYPE   TDME_TXD_RANDOM

◆ PHY_TESTPARDEF_PACKETLENGTH

#define PHY_TESTPARDEF_PACKETLENGTH   20

◆ PHY_TESTPARDEF_PACKETPERIOD

#define PHY_TESTPARDEF_PACKETPERIOD   1000

◆ PHY_TESTPARDEF_RX_FFSYNC

#define PHY_TESTPARDEF_RX_FFSYNC   0

◆ PHY_TESTPARDEF_TXCONT

#define PHY_TESTPARDEF_TXCONT   0

◆ PHY_TESTPARDEF_TXPOWER_BOOST

#define PHY_TESTPARDEF_TXPOWER_BOOST   0

◆ PHY_TESTPARDEF_TXPOWER_IB

#define PHY_TESTPARDEF_TXPOWER_IB   1

◆ PHY_TESTPARDEF_TXPOWER_PB

#define PHY_TESTPARDEF_TXPOWER_PB   3

◆ TEST_STAT_ACCUM

#define TEST_STAT_ACCUM   0 /* accumulate */

◆ TEST_STAT_FINAL

#define TEST_STAT_FINAL   3 /* averages for final reporting */

◆ TEST_STAT_INIT

#define TEST_STAT_INIT   1 /* initialise */

◆ TEST_STAT_REPORT

#define TEST_STAT_REPORT   2 /* averages for interim reporting */

Function Documentation

◆ PHY_EDDET_indication()

int PHY_EDDET_indication ( struct TDME_EDDET_indication_pset params,
struct ca821x_dev pDeviceRef 
)

PHY Test Wrapper for TDME_EDDET_indication.

Parameters
params- eddet indication buffer
pDeviceRef- Device reference
Returns
Status

◆ PHY_LOTLK_request()

uint8_t PHY_LOTLK_request ( uint8_t  ch,
uint8_t  rx_txb,
uint8_t  ntest,
struct ca821x_dev pDeviceRef 
)

PHY Test Wrapper for TDME_LOTLK_request_sync.

Parameters
ch- 802.15.4 Channel to be tested
rx_txb- rx Mode to be tested when 1, Tx Mode when 0#
ntest- Number of Test
pDeviceRef- Device reference
Returns
Status

◆ PHY_RXPKT_indication()

int PHY_RXPKT_indication ( struct TDME_RXPKT_indication_pset params,
struct ca821x_dev pDeviceRef 
)

PHY Test Wrapper for TDME_RXPKT_indication.

Parameters
params- rxpkt indication buffer
pDeviceRef- Device reference
Returns
Status

◆ 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_SET_request()

uint8_t PHY_SET_request ( uint8_t  evbme_attribute,
struct ca821x_dev pDeviceRef 
)

PHY Test Wrapper for TDME_SET_request_sync.

Parameters
evbme_attribute- TDME Attribute
pDeviceRef- Device reference
Returns
Status

◆ PHY_TESTMODE_request()

uint8_t PHY_TESTMODE_request ( uint8_t  testmode,
struct ca821x_dev pDeviceRef 
)

PHY Test Wrapper for TDME_TESTMODE_request_sync.

Parameters
testmode- Test mode
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 
)

◆ PHY_TXPKT_request()

uint8_t PHY_TXPKT_request ( struct MAC_Message msg,
struct ca821x_dev pDeviceRef 
)

PHY Test Wrapper for TDME_TXPKT_request_sync.

Parameters
msg- TDME TxPktReq MAC Message
pDeviceRef- Device reference
Returns
Status

◆ PHYTest_divs32round()

int32_t PHYTest_divs32round ( int32_t  va,
int32_t  vb 
)

Division of Signed 32-Bit Values with Rounding.

Parameters
va- Dividend
vb- Divisor
Returns
Result

◆ PHYTest_divu32round()

uint32_t PHYTest_divu32round ( uint32_t  va,
uint32_t  vb 
)

Division of Unsigned 32-Bit Values with Rounding.

Parameters
va- Dividend
vb- Divisor
Returns
Result

◆ PHYTestCalculateReportTime()

uint8_t PHYTestCalculateReportTime ( uint8_t  init)

Calculate Time when to report Results.

Parameters
init- Initialise when 1
Returns
1: report results

◆ PHYTestCfg()

void PHYTestCfg ( uint8_t  val)

PHY Change Test Configuration.

Parameters
val- Value to set the Configurations to

◆ PHYTestDeinitialise()

void PHYTestDeinitialise ( struct ca821x_dev pDeviceRef)

Deinitialisation of TDME.

Parameters
pDeviceRef- Device reference

◆ PHYTestExit()

void PHYTestExit ( char *  errmsg)

PHY Test Mode Exit.

Parameters
errmsg- Status to be reported

◆ PHYTestInitialise()

uint8_t PHYTestInitialise ( struct ca821x_dev pDeviceRef)

Sequential Initialisation of TDME.

Parameters
pDeviceRef- Device reference
Returns
Status

◆ PHYTestInitTestResults()

void PHYTestInitTestResults ( void  )

PHY Test Initialise Results and Run Parameters.

◆ PHYTestLOLocking()

uint8_t PHYTestLOLocking ( struct ca821x_dev pDeviceRef)

PHY Test LO_3 (Locking) Test.

Parameters
pDeviceRef- Device reference
Returns
Status

◆ 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

◆ PHYTestModeHandler()

void PHYTestModeHandler ( struct ca821x_dev pDeviceRef)

Dispatch Branch for PHY Tests including Initialisation.

Parameters
pDeviceRef- Device reference

◆ PHYTestReceiveED()

void PHYTestReceiveED ( struct ca821x_dev pDeviceRef)

PHY Test Receive in ED Detect Mode (Energy Sniffer)

Parameters
pDeviceRef- Device reference

◆ PHYTestReceivePacketPER()

void PHYTestReceivePacketPER ( struct ca821x_dev pDeviceRef)

PHY Test Receive Packet in PER Mode (Packet Error Rate)

Parameters
pDeviceRef- Device reference

◆ PHYTestReceivePacketPSN()

void PHYTestReceivePacketPSN ( struct ca821x_dev pDeviceRef)

PHY Test Receive Packet in in PSN Mode (Packet Sniffer)

Parameters
pDeviceRef- Device reference

◆ PHYTestReportEDReceived()

void PHYTestReportEDReceived ( struct TDME_EDDET_indication_pset params)

Report Reception of ED above Threshold.

◆ PHYTestReportLOLocking()

void PHYTestReportLOLocking ( struct TDME_LOTLK_confirm_pset params,
uint8_t  ntest 
)

Report LO Test 3 Result (Locking Test)

Parameters
ntest- Number of Test
params- TDME LOTLK confirm buffer

◆ PHYTestReportPacketReceived()

void PHYTestReportPacketReceived ( struct TDME_RXPKT_indication_pset params)

Report Reception of Packet.

◆ PHYTestReportPacketTransmitted()

void PHYTestReportPacketTransmitted ( struct MAC_Message msg,
uint8_t  status 
)

Report Successful Transmission of Packet.

◆ PHYTestReportReceivedPacketAnalysis()

void PHYTestReportReceivedPacketAnalysis ( void  )

Report Packet Reception Analysis.

◆ PHYTestReportTestMode()

void PHYTestReportTestMode ( void  )

Report Test Mode after Initialisation is done.

◆ PHYTestReportTestParameters()

void PHYTestReportTestParameters ( uint8_t  parameter)

Report Test Parameter PIB.

Parameters
parameter- Specific Parameter or PHY_TESTPAR_ALL

◆ PHYTestReportTestResult()

void PHYTestReportTestResult ( void  )

Report Complete Test Result.

◆ PHYTestReportTransmitPacketAnalysis()

void PHYTestReportTransmitPacketAnalysis ( void  )

Report Packet Transmission Analysis.

◆ PHYTestReset()

void PHYTestReset ( void  )

PHY Test Reset Testmode PIB.

◆ PHYTestStatistics()

void PHYTestStatistics ( uint8_t  mode,
uint8_t  ed,
uint8_t  cs,
uint8_t  fo 
)

Calculate Test Statistics.

Parameters
modemode: accumulation, initialisation, rollover report, final report rollover - rollover for reporting when 1 final - final calculations for end of test reporting
ed- Test Packet energy Detect Value
cs- Test Packet carrier sense value
fo- Test Packet count of falloffs

◆ PHYTestTransmitPacket()

uint8_t PHYTestTransmitPacket ( struct ca821x_dev pDeviceRef)

PHY Test Transmit Packet.

Parameters
pDeviceRef- Device reference
Returns
Status

◆ test15_4_getms()

unsigned long test15_4_getms ( void  )

Returns the current time.

Returns
ms since start of execution

Variable Documentation

◆ PHY_TESTMODE

uint8_t PHY_TESTMODE
extern

◆ PHY_TESTPAR

struct PHYTestPar PHY_TESTPAR
extern

◆ PHY_TESTRES

struct PHYTestRes PHY_TESTRES
extern