Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
test15_4_phy_tests.h
Go to the documentation of this file.
1 
5 /*
6  * Copyright (c) 2019, Cascoda Ltd.
7  * All rights reserved.
8  *
9  * Redistribution and use in source and binary forms, with or without
10  * modification, are permitted provided that the following conditions are met:
11  * 1. Redistributions of source code must retain the above copyright
12  * notice, this list of conditions and the following disclaimer.
13  * 2. Redistributions in binary form must reproduce the above copyright
14  * notice, this list of conditions and the following disclaimer in the
15  * documentation and/or other materials provided with the distribution.
16  * 3. Neither the name of the copyright holder nor the
17  * names of its contributors may be used to endorse or promote products
18  * derived from this software without specific prior written permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
24  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30  * POSSIBILITY OF SUCH DAMAGE.
31  */
32 
33 #ifndef TEST15_4_PHY_TESTS_H
34 #define TEST15_4_PHY_TESTS_H
35 
36 #include <stddef.h>
37 #include <stdint.h>
38 
39 /******************************************************************************/
40 /****** PHY Testmode Definitions ******/
41 /******************************************************************************/
42 #define PHY_TEST_OFF 0x00
43 #define PHY_TEST_TX_PKT 0x01
44 #define PHY_TEST_TX_CONT 0x02
45 #define PHY_TEST_RX_PER 0x03
46 #define PHY_TEST_RX_PSN 0x04
47 #define PHY_TEST_RX_EDSN 0x05
48 #define PHY_TEST_LO_1 0x06
49 #define PHY_TEST_LO_2 0x07
50 #define PHY_TEST_LO_3 0x08
51 #define PHY_TEST_MAX PHY_TEST_LO_3
52 
53 /******************************************************************************/
54 /****** PHY Testmode Parameter Enumerations ******/
55 /******************************************************************************/
56 #define PHY_TESTPAR_PACKETPERIOD 0x00
57 #define PHY_TESTPAR_PACKETLENGTH 0x01
58 #define PHY_TESTPAR_NUMBEROFPKTS 0x02
59 #define PHY_TESTPAR_PACKETDATATYPE 0x03
60 #define PHY_TESTPAR_CHANNEL 0x04
61 #define PHY_TESTPAR_TXPOWER 0x05
62 #define PHY_TESTPAR_EDTHRESHOLD 0x06
63 #define PHY_TESTPAR_RX_FFSYNC 0x07
64 #define PHY_TESTPAR_LO_1_RXTXB 0x08
65 #define PHY_TESTPAR_LO_2_FDAC 0x09
66 #define PHY_TESTPAR_LO_3_LOCKS 0x0A
67 #define PHY_TESTPAR_LO_3_PERIOD 0x0B
68 #define PHY_TESTPAR_ATM 0x0C
69 #define PHY_TESTPAR_MPW2_OVWR 0x0D
70 #define PHY_TESTPAR_MACENABLED 0x0E
71 #define PHY_TESTPAR_MAX PHY_TESTPAR_MACENABLED
72 #define PHY_TESTPAR_ALL (PHY_TESTPAR_MAX + 1) // for Reporting
73 
74 #define PHY_TESTPARDEF_PACKETPERIOD 1000
75 #define PHY_TESTPARDEF_PACKETLENGTH 20
76 #define PHY_TESTPARDEF_NUMBEROFPKTS 10000
77 #define PHY_TESTPARDEF_PACKETDATATYPE TDME_TXD_RANDOM
78 #define PHY_TESTPARDEF_CHANNEL 0x12
79 #define PHY_TESTPARDEF_TXPOWER_IB 1
80 #define PHY_TESTPARDEF_TXPOWER_PB 3
81 #define PHY_TESTPARDEF_TXPOWER_BOOST 0
82 #define PHY_TESTPARDEF_TXCONT 0
83 #define PHY_TESTPARDEF_EDTHRESHOLD 0x80
84 #define PHY_TESTPARDEF_RX_FFSYNC 0
85 #define PHY_TESTPARDEF_LO_1_RXTXB 0
86 #define PHY_TESTPARDEF_LO_2_FDAC 32
87 #define PHY_TESTPARDEF_LO_3_LOCKS 20
88 #define PHY_TESTPARDEF_LO_3_PERIOD 10
89 #define PHY_TESTPARDEF_ATM 0x00
90 #define PHY_TESTPARDEF_MPW2_OVWR 0x03
91 #define PHY_TESTPARDEF_MACENABLED 0
92 
93 /* PHY Testmode Setup Parameter Structure */
94 struct PHYTestPar
95 {
96  uint16_t PACKETPERIOD;
97  uint8_t PACKETLENGTH;
98  uint32_t NUMBEROFPKTS;
99  uint8_t PACKETDATATYPE;
100  uint8_t CHANNEL;
101  uint8_t TXPOWER_IB;
102  uint8_t TXPOWER_PB;
103  uint8_t TXPOWER_BOOST;
104  uint8_t TXCONT;
105  uint8_t EDTHRESHOLD;
106  uint8_t RX_FFSYNC;
107  uint8_t LO_1_RXTXB;
108  uint8_t LO_2_FDAC;
109  uint8_t LO_3_LOCKS;
110  uint8_t LO_3_PERIOD;
111  uint8_t ATM;
112  uint8_t MPW2_OVWR;
113  uint8_t MACENABLED;
114 };
115 
116 /* PHY Testmode Results/Runtime Parameter Structure */
118 {
119  uint16_t SEQUENCENUMBER;
120  uint32_t PACKET_COUNT;
121  uint8_t PACKET_RECEIVED;
122  uint8_t TEST_RUNNING;
123  uint32_t LOERR_COUNT;
124  uint32_t CRCERR_COUNT;
125  uint32_t PHRERR_COUNT;
126  uint32_t SHRERR_COUNT;
127  uint32_t PREERR_COUNT;
128  uint32_t MISSED_COUNT;
129  int32_t FO_AVG;
130  uint32_t ED_AVG;
131  uint32_t CS_AVG;
132  int32_t FO_AVG_TOTAL;
133  uint32_t ED_AVG_TOTAL;
134  uint32_t CS_AVG_TOTAL;
135  uint8_t ED_MAX;
136  uint8_t ED_MIN;
137  uint8_t CS_MAX;
138  uint8_t CS_MIN;
139 };
140 
141 /******************************************************************************/
142 /****** Locally used Definitions for PHY Tests ******/
143 /******************************************************************************/
144 #define PHY_TEST_REPORT_PERIOD 5000
145 
146 /* Modes for PHYTestStatistics() */
147 #define TEST_STAT_ACCUM 0 /* accumulate */
148 #define TEST_STAT_INIT 1 /* initialise */
149 #define TEST_STAT_REPORT 2 /* averages for interim reporting */
150 #define TEST_STAT_FINAL 3 /* averages for final reporting */
151 
152 /******************************************************************************/
153 /****** Global Variables defined in test15_4_phy_tests.c ******/
154 /******************************************************************************/
155 extern uint8_t PHY_TESTMODE;
156 extern struct PHYTestPar PHY_TESTPAR;
157 extern struct PHYTestRes PHY_TESTRES;
158 
159 /******************************************************************************/
160 /****** Function Declarations for Externally Defined Functions ******/
161 /******************************************************************************/
162 
163 /******************************************************************************/
164 /***************************************************************************/
170 unsigned long test15_4_getms(void);
171 
172 /******************************************************************************/
173 /****** Function Declarations for test15_4_phy_tests.c ******/
174 /******************************************************************************/
175 /* PHY Test Functions */
176 
177 /******************************************************************************/
178 /***************************************************************************/
184 void PHYTestModeHandler(struct ca821x_dev *pDeviceRef);
185 
186 /******************************************************************************/
187 /***************************************************************************/
195 uint8_t PHYTestInitialise(struct ca821x_dev *pDeviceRef);
196 
197 /******************************************************************************/
198 /***************************************************************************/
204 void PHYTestDeinitialise(struct ca821x_dev *pDeviceRef);
205 
206 /******************************************************************************/
207 /***************************************************************************/
215 uint8_t PHYTestTransmitPacket(struct ca821x_dev *pDeviceRef);
216 
217 /******************************************************************************/
218 /***************************************************************************/
224 void PHYTestReceivePacketPER(struct ca821x_dev *pDeviceRef);
225 
226 /******************************************************************************/
227 /***************************************************************************/
233 void PHYTestReceivePacketPSN(struct ca821x_dev *pDeviceRef);
234 
235 /******************************************************************************/
236 /***************************************************************************/
242 void PHYTestReceiveED(struct ca821x_dev *pDeviceRef);
243 
244 /******************************************************************************/
245 /***************************************************************************/
253 uint8_t PHYTestLOLocking(struct ca821x_dev *pDeviceRef);
254 
255 /******************************************************************************/
256 /***************************************************************************/
262 void PHYTestExit(char *errmsg);
263 
264 /******************************************************************************/
265 /***************************************************************************/
269 void PHYTestInitTestResults(void);
270 
271 /******************************************************************************/
272 /***************************************************************************/
276 void PHYTestReset(void);
277 
278 /******************************************************************************/
279 /***************************************************************************/
294 void PHYTestStatistics(uint8_t mode, uint8_t ed, uint8_t cs, uint8_t fo);
295 
296 /******************************************************************************/
297 /***************************************************************************/
306 uint32_t PHYTest_divu32round(uint32_t va, uint32_t vb);
307 
308 /******************************************************************************/
309 /***************************************************************************/
318 int32_t PHYTest_divs32round(int32_t va, int32_t vb);
319 
320 /******************************************************************************/
321 /***************************************************************************/
329 uint8_t PHYTestCalculateReportTime(uint8_t init);
330 /* PHY Test Reporting Functions */
331 
332 /******************************************************************************/
333 /***************************************************************************/
337 void PHYTestReportTestMode(void);
338 
339 /******************************************************************************/
340 /***************************************************************************/
346 void PHYTestReportTestParameters(uint8_t parameter);
347 
348 /******************************************************************************/
349 /***************************************************************************/
353 void PHYTestReportPacketTransmitted(struct MAC_Message *msg, uint8_t status);
354 
355 /******************************************************************************/
356 /***************************************************************************/
361 
362 /******************************************************************************/
363 /***************************************************************************/
368 
369 /******************************************************************************/
370 /***************************************************************************/
375 
376 /******************************************************************************/
377 /***************************************************************************/
381 void PHYTestReportTestResult(void);
382 
383 /******************************************************************************/
384 /***************************************************************************/
389 
390 /******************************************************************************/
391 /***************************************************************************/
398 void PHYTestReportLOLocking(struct TDME_LOTLK_confirm_pset *params, uint8_t ntest);
399 /* PHY Functions in EVBME Attribute Control */
400 
401 /******************************************************************************/
402 /***************************************************************************/
408 void PHYTestCfg(uint8_t val);
409 /* PHY Test Wrappers for TDME Commands and Responses */
410 
411 /******************************************************************************/
412 /***************************************************************************/
421 uint8_t PHY_TESTMODE_request(uint8_t testmode, struct ca821x_dev *pDeviceRef);
422 
423 /******************************************************************************/
424 /***************************************************************************/
433 uint8_t PHY_SET_request(uint8_t evbme_attribute, struct ca821x_dev *pDeviceRef);
434 
435 /******************************************************************************/
436 /***************************************************************************/
445 uint8_t PHY_TXPKT_request(struct MAC_Message *msg, struct ca821x_dev *pDeviceRef);
446 
447 /******************************************************************************/
448 /***************************************************************************/
459 uint8_t PHY_LOTLK_request(uint8_t ch, uint8_t rx_txb, uint8_t ntest, struct ca821x_dev *pDeviceRef);
460 
461 /******************************************************************************/
462 /***************************************************************************/
471 int PHY_RXPKT_indication(struct TDME_RXPKT_indication_pset *params, struct ca821x_dev *pDeviceRef);
472 
473 /******************************************************************************/
474 /***************************************************************************/
483 int PHY_EDDET_indication(struct TDME_EDDET_indication_pset *params, struct ca821x_dev *pDeviceRef);
484 /******************************************************************************/
485 /****** Function Declarations for test15_4_phy_tests_mac.c ******/
486 /******************************************************************************/
487 /* PHY_MAC Test Functions */
488 
489 /******************************************************************************/
490 /***************************************************************************/
494 void PHYTestMACAddInit(void);
495 
496 /******************************************************************************/
497 /***************************************************************************/
505 uint8_t PHYTestMACTxInitialise(struct ca821x_dev *pDeviceRef);
506 
507 /******************************************************************************/
508 /***************************************************************************/
516 uint8_t PHYTestMACRxInitialise(struct ca821x_dev *pDeviceRef);
517 
518 /******************************************************************************/
519 /***************************************************************************/
527 uint8_t PHYTestMACDeinitialise(struct ca821x_dev *pDeviceRef);
528 /* PHY_MAC Test Wrappers for MCPS Commands and Responses */
529 uint8_t PHY_TXPKT_MAC_request(struct MAC_Message *msg, struct ca821x_dev *pDeviceRef);
530 
531 /******************************************************************************/
532 /***************************************************************************/
541 uint8_t PHY_RXPKT_MAC_indication(struct MCPS_DATA_indication_pset *params, struct ca821x_dev *pDeviceRef);
542 
543 /******************************************************************************/
544 /***************************************************************************/
553 uint8_t PHY_TXPKT_MAC_confirm(struct MCPS_DATA_confirm_pset *params, struct ca821x_dev *pDeviceRef);
554 
555 #endif /* TEST15_4_PHY_TESTS_H */
evbme_attribute
EVBME attribute ids for use with EVBME_SET_REQUEST and EVBME_GET_REQUEST.
Definition: evbme_messages.h:73
SPI Message Format Typedef.
Definition: mac_messages.h:1017
MCPS_DATA_confirm parameter set.
Definition: mac_messages.h:357
MCPS_DATA_indication parameter set.
Definition: mac_messages.h:384
Definition: test15_4_phy_tests.h:95
uint8_t ATM
TDME-PIB Analog Test Bus Configuration.
Definition: test15_4_phy_tests.h:111
uint8_t LO_3_LOCKS
LO Test 3 Number of Locks per Tx/Rx Channel.
Definition: test15_4_phy_tests.h:109
uint8_t TXCONT
Definition: test15_4_phy_tests.h:104
uint8_t TXPOWER_PB
TDME-PIB Transmit Power Amp Frequency Trim.
Definition: test15_4_phy_tests.h:102
uint8_t RX_FFSYNC
TDME-PIB Rx Flag False Sync.
Definition: test15_4_phy_tests.h:106
uint8_t LO_3_PERIOD
LO Test 3 Locking Test Period [ms].
Definition: test15_4_phy_tests.h:110
uint8_t LO_1_RXTXB
TDME-PIB LO Test 1 Tx/Rx.
Definition: test15_4_phy_tests.h:107
uint8_t PACKETDATATYPE
Packet Data Type (Payload)
Definition: test15_4_phy_tests.h:99
uint8_t EDTHRESHOLD
TDME-PIB ED Threshold.
Definition: test15_4_phy_tests.h:105
uint8_t MACENABLED
MAC Enabled for Test.
Definition: test15_4_phy_tests.h:113
uint8_t CHANNEL
TDME-PIB 802.15.4 Channel.
Definition: test15_4_phy_tests.h:100
uint16_t PACKETPERIOD
Packet Period [ms].
Definition: test15_4_phy_tests.h:96
uint8_t PACKETLENGTH
Packet Length [bytes].
Definition: test15_4_phy_tests.h:97
uint8_t TXPOWER_IB
TDME-PIB Transmit Power Amp Current.
Definition: test15_4_phy_tests.h:101
uint8_t MPW2_OVWR
TDME-PIB MPW2 Overwrite.
Definition: test15_4_phy_tests.h:112
uint8_t TXPOWER_BOOST
TDME-PIB Transmit Boost Mode.
Definition: test15_4_phy_tests.h:103
uint32_t NUMBEROFPKTS
Number of Packets for Test.
Definition: test15_4_phy_tests.h:98
uint8_t LO_2_FDAC
TDME-PIB LO Test 2 FDAC Value.
Definition: test15_4_phy_tests.h:108
Definition: test15_4_phy_tests.h:118
uint8_t CS_MAX
Maximum CS Value.
Definition: test15_4_phy_tests.h:137
uint8_t ED_MIN
Minimum ED Value.
Definition: test15_4_phy_tests.h:136
uint32_t PHRERR_COUNT
Error Counter for PHR (Packet Header) Errors.
Definition: test15_4_phy_tests.h:125
uint8_t CS_MIN
Minimum CS Value.
Definition: test15_4_phy_tests.h:138
uint32_t CS_AVG
Averaged CS Value (between Analysis Reports)
Definition: test15_4_phy_tests.h:131
uint32_t PACKET_COUNT
Packet Count.
Definition: test15_4_phy_tests.h:120
uint32_t ED_AVG
Averaged ED Value (between Analysis Reports)
Definition: test15_4_phy_tests.h:130
uint32_t LOERR_COUNT
Error Counter for LO Locking Failures.
Definition: test15_4_phy_tests.h:123
uint32_t CRCERR_COUNT
Error Counter for CRC/FCS Errors.
Definition: test15_4_phy_tests.h:124
uint8_t TEST_RUNNING
Test Running Flag.
Definition: test15_4_phy_tests.h:122
int32_t FO_AVG
Averaged Frequency Offset (between Analysis Reports)
Definition: test15_4_phy_tests.h:129
uint8_t ED_MAX
Maximum ED Value.
Definition: test15_4_phy_tests.h:135
int32_t FO_AVG_TOTAL
Total Averaged Frequency Offset.
Definition: test15_4_phy_tests.h:132
uint32_t PREERR_COUNT
Error Counter for Preamble Errors.
Definition: test15_4_phy_tests.h:127
uint32_t ED_AVG_TOTAL
Total Averaged ED Value.
Definition: test15_4_phy_tests.h:133
uint8_t PACKET_RECEIVED
Packet Received Flag.
Definition: test15_4_phy_tests.h:121
uint32_t SHRERR_COUNT
Error Counter for SHR (SFD) Errors.
Definition: test15_4_phy_tests.h:126
uint16_t SEQUENCENUMBER
Packet Sequence Number (SN)
Definition: test15_4_phy_tests.h:119
uint32_t CS_AVG_TOTAL
Total Averaged CS Value.
Definition: test15_4_phy_tests.h:134
uint32_t MISSED_COUNT
Error Counter for Missed Packets.
Definition: test15_4_phy_tests.h:128
TDME_EDDET_indication parameter set.
Definition: mac_messages.h:641
TDME_LOTLK_confirm parameter set.
Definition: mac_messages.h:656
TDME_RXPKT_indication parameter set.
Definition: mac_messages.h:630
CA-821x Device reference struct.
Definition: ca821x_api.h:123
struct PHYTestRes PHY_TESTRES
Definition: test15_4_phy_tests.c:47
void PHYTestReportPacketReceived(struct TDME_RXPKT_indication_pset *params)
Report Reception of Packet.
Definition: test15_4_phy_tests.c:739
uint8_t PHY_TESTMODE_request(uint8_t testmode, struct ca821x_dev *pDeviceRef)
PHY Test Wrapper for TDME_TESTMODE_request_sync.
Definition: test15_4_phy_tests.c:879
void PHYTestReportTestMode(void)
Report Test Mode after Initialisation is done.
Definition: test15_4_phy_tests.c:618
struct PHYTestPar PHY_TESTPAR
Definition: test15_4_phy_tests.c:46
void PHYTestDeinitialise(struct ca821x_dev *pDeviceRef)
Deinitialisation of TDME.
Definition: test15_4_phy_tests.c:173
void PHYTestReportTransmitPacketAnalysis(void)
Report Packet Transmission Analysis.
Definition: test15_4_phy_tests.c:732
uint8_t PHY_TESTMODE
Definition: test15_4_phy_tests.c:45
uint8_t PHYTestTransmitPacket(struct ca821x_dev *pDeviceRef)
PHY Test Transmit Packet.
Definition: test15_4_phy_tests.c:201
void PHYTestReportPacketTransmitted(struct MAC_Message *msg, uint8_t status)
Report Successful Transmission of Packet.
Definition: test15_4_phy_tests.c:713
uint8_t PHYTestLOLocking(struct ca821x_dev *pDeviceRef)
PHY Test LO_3 (Locking) Test.
Definition: test15_4_phy_tests.c:365
void PHYTestReceivePacketPSN(struct ca821x_dev *pDeviceRef)
PHY Test Receive Packet in in PSN Mode (Packet Sniffer)
Definition: test15_4_phy_tests.c:320
uint8_t PHY_TXPKT_MAC_confirm(struct MCPS_DATA_confirm_pset *params, struct ca821x_dev *pDeviceRef)
PHY Test Wrapper for MCPS_DATA_confirm()
Definition: test15_4_phy_tests_mac.c:251
unsigned long test15_4_getms(void)
Returns the current time.
Definition: test15_4_evbme.c:56
uint8_t PHYTestInitialise(struct ca821x_dev *pDeviceRef)
Sequential Initialisation of TDME.
Definition: test15_4_phy_tests.c:103
void PHYTestReportEDReceived(struct TDME_EDDET_indication_pset *params)
Report Reception of ED above Threshold.
Definition: test15_4_phy_tests.c:831
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.
Definition: test15_4_phy_tests.c:992
uint8_t PHYTestMACTxInitialise(struct ca821x_dev *pDeviceRef)
Initialisation for using MAC layer in EVBME (Tx)
Definition: test15_4_phy_tests_mac.c:75
void PHYTestInitTestResults(void)
PHY Test Initialise Results and Run Parameters.
Definition: test15_4_phy_tests.c:426
uint8_t PHYTestMACRxInitialise(struct ca821x_dev *pDeviceRef)
Initialisation for using MAC layer in EVBME (Rx)
Definition: test15_4_phy_tests_mac.c:126
uint8_t PHYTestMACDeinitialise(struct ca821x_dev *pDeviceRef)
Denitialisation for using MAC layer in EVBME.
Definition: test15_4_phy_tests_mac.c:168
void PHYTestReportTestParameters(uint8_t parameter)
Report Test Parameter PIB.
Definition: test15_4_phy_tests.c:657
uint8_t PHY_RXPKT_MAC_indication(struct MCPS_DATA_indication_pset *params, struct ca821x_dev *pDeviceRef)
PHY Test Wrapper for MCPS_DATA_indication()
Definition: test15_4_phy_tests_mac.c:274
void PHYTestCfg(uint8_t val)
PHY Change Test Configuration.
Definition: test15_4_phy_tests.c:861
void PHYTestModeHandler(struct ca821x_dev *pDeviceRef)
Dispatch Branch for PHY Tests including Initialisation.
Definition: test15_4_phy_tests.c:70
void PHYTestReceivePacketPER(struct ca821x_dev *pDeviceRef)
PHY Test Receive Packet in PER Mode (Packet Error Rate)
Definition: test15_4_phy_tests.c:248
uint8_t PHY_TXPKT_request(struct MAC_Message *msg, struct ca821x_dev *pDeviceRef)
PHY Test Wrapper for TDME_TXPKT_request_sync.
Definition: test15_4_phy_tests.c:967
void PHYTestStatistics(uint8_t mode, uint8_t ed, uint8_t cs, uint8_t fo)
Calculate Test Statistics.
Definition: test15_4_phy_tests.c:475
int32_t PHYTest_divs32round(int32_t va, int32_t vb)
Division of Signed 32-Bit Values with Rounding.
Definition: test15_4_phy_tests.c:568
void PHYTestReportTestResult(void)
Report Complete Test Result.
Definition: test15_4_phy_tests.c:793
uint8_t PHY_SET_request(uint8_t evbme_attribute, struct ca821x_dev *pDeviceRef)
PHY Test Wrapper for TDME_SET_request_sync.
Definition: test15_4_phy_tests.c:918
void PHYTestReportReceivedPacketAnalysis(void)
Report Packet Reception Analysis.
Definition: test15_4_phy_tests.c:764
void PHYTestReportLOLocking(struct TDME_LOTLK_confirm_pset *params, uint8_t ntest)
Report LO Test 3 Result (Locking Test)
Definition: test15_4_phy_tests.c:846
void PHYTestReceiveED(struct ca821x_dev *pDeviceRef)
PHY Test Receive in ED Detect Mode (Energy Sniffer)
Definition: test15_4_phy_tests.c:354
void PHYTestExit(char *errmsg)
PHY Test Mode Exit.
Definition: test15_4_phy_tests.c:420
uint8_t PHYTestCalculateReportTime(uint8_t init)
Calculate Time when to report Results.
Definition: test15_4_phy_tests.c:592
void PHYTestMACAddInit(void)
Address Initialisation.
Definition: test15_4_phy_tests_mac.c:66
int PHY_RXPKT_indication(struct TDME_RXPKT_indication_pset *params, struct ca821x_dev *pDeviceRef)
PHY Test Wrapper for TDME_RXPKT_indication.
Definition: test15_4_phy_tests.c:1014
uint8_t PHY_TXPKT_MAC_request(struct MAC_Message *msg, struct ca821x_dev *pDeviceRef)
Definition: test15_4_phy_tests_mac.c:185
uint32_t PHYTest_divu32round(uint32_t va, uint32_t vb)
Division of Unsigned 32-Bit Values with Rounding.
Definition: test15_4_phy_tests.c:557
void PHYTestReset(void)
PHY Test Reset Testmode PIB.
Definition: test15_4_phy_tests.c:451
int PHY_EDDET_indication(struct TDME_EDDET_indication_pset *params, struct ca821x_dev *pDeviceRef)
PHY Test Wrapper for TDME_EDDET_indication.
Definition: test15_4_phy_tests.c:1047