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

Chili Module Production Test Modes. More...

Include dependency graph for chili_test.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define EVBME_TEST_START_TEST   (0x9F) /* start test (automatic by GUI) */
 
#define EVBME_TEST_START_TEST_2   (0x9E) /* start test (manual command) */
 
#define EVBME_TEST_SETUP_REF   (0x9D) /* configure reference device */
 
#define EVBME_TEST_LEN   (3)
 
#define EVBME_TEST_DATA0   (0x5A)
 
#define EVBME_TEST_DATA1   (0xA5)
 
#define EVBME_TEST_DATA2   (0x81)
 
#define CHILI_TEST_CS_LIMIT   200
 CS (LQI) Limit. More...
 
#define CHILI_TEST_ED_LIMIT   100
 ED (RSSI) Limit. More...
 
#define CHILI_TEST_DUT_TIMEOUT   400
 DUT Timeout [ms]. More...
 
#define CHILI_TEST_OFF   0
 No Test Mode. More...
 
#define CHILI_TEST_DUT   1
 DUT. More...
 
#define CHILI_TEST_REF   2
 Reference Device. More...
 
#define CHILI_TEST_DUT_SHORTADD   0xCAFE
 Short Address for DUT. More...
 
#define CHILI_TEST_REF_SHORTADD   0xCAFF
 Short Address for Reference Device. More...
 
#define CHILI_TEST_CHANNEL   11
 Channel. More...
 
#define CHILI_TEST_PANID   0xCA5C
 PanID. More...
 
#define CHILI_TEST_CST_DONE   0x00
 communication completed More...
 
#define CHILI_TEST_CST_DUT_D_REQUESTED   0x01
 data pkt requested (dut) More...
 
#define CHILI_TEST_CST_DUT_D_CONFIRMED   0x02
 data pkt confirmed (dut) More...
 
#define CHILI_TEST_CST_DUT_DISPLAY   0x03
 display test result (dut) More...
 
#define CHILI_TEST_CST_DUT_FINISHED   0x04
 test complete (dut) More...
 
#define PT_MSDU_TEST_DUT   0xAA
 packet from DUT More...
 
#define PT_MSDU_TEST_REF   0xBB
 packet from Reference Device More...
 
#define CHILI_TEST_ST_SUCCESS   0x00
 Success / Test Pass. More...
 
#define CHILI_TEST_ST_NOCOMMS   0x01
 No Communication between Chips. More...
 
#define CHILI_TEST_ST_DATA_CNF_UNEXP   0x02
 Data Confirm Unexpected. More...
 
#define CHILI_TEST_ST_DATA_CNF_TIMEOUT   0x03
 Data Confirm Timeout. More...
 
#define CHILI_TEST_ST_DATA_CNF_NO_ACK   0x04
 Data Confirm No Ack. More...
 
#define CHILI_TEST_ST_DATA_CNF_CHACCF   0x05
 Data Confirm Ch. More...
 
#define CHILI_TEST_ST_DATA_CNF_TROVFL   0x06
 Data Confirm Transaction Ovfl. More...
 
#define CHILI_TEST_ST_DATA_CNF_OTHERS   0x07
 Data Confirm Status Others. More...
 
#define CHILI_TEST_ST_DATA_IND_UNEXP   0x08
 Data Indication Unexpected. More...
 
#define CHILI_TEST_ST_DATA_IND_TIMEOUT   0x09
 Data Indication Timeout. More...
 
#define CHILI_TEST_ST_DATA_IND_ID   0x0A
 Data Indication Id wrong. More...
 
#define CHILI_TEST_ST_TIMEOUT   0x0B
 Overall Timeout. More...
 
#define CHILI_TEST_ST_CS_REF_LOW   0x0C
 CS low on REF Side. More...
 
#define CHILI_TEST_ST_CS_DUT_LOW   0x0D
 CS low on DUT Side. More...
 
#define CHILI_TEST_ST_ED_REF_LOW   0x0E
 ED low on REF Side. More...
 
#define CHILI_TEST_ST_ED_DUT_LOW   0x0F
 ED low on DUT Side. More...
 

Functions

void CHILI_TEST_Initialise (u8_t status, struct ca821x_dev *pDeviceRef)
 Chili Production Test Initialisation. More...
 
void CHILI_TEST_Handler (struct ca821x_dev *pDeviceRef)
 Chili Production Test Handler. More...
 
int CHILI_TEST_UpStreamDispatch (struct SerialBuffer *SerialRxBuffer, struct ca821x_dev *pDeviceRef)
 Chili Test Dispatch Branch (UpStream, Serial) More...
 
u8_t CHILI_TEST_IsInTestMode (void)
 Checks if Device is in Production Test Mode (yes if non-zero) More...
 

Detailed Description

Chili Module Production Test Modes.

Macro Definition Documentation

◆ CHILI_TEST_CHANNEL

#define CHILI_TEST_CHANNEL   11

Channel.

◆ CHILI_TEST_CS_LIMIT

#define CHILI_TEST_CS_LIMIT   200

CS (LQI) Limit.

◆ CHILI_TEST_CST_DONE

#define CHILI_TEST_CST_DONE   0x00

communication completed

◆ CHILI_TEST_CST_DUT_D_CONFIRMED

#define CHILI_TEST_CST_DUT_D_CONFIRMED   0x02

data pkt confirmed (dut)

◆ CHILI_TEST_CST_DUT_D_REQUESTED

#define CHILI_TEST_CST_DUT_D_REQUESTED   0x01

data pkt requested (dut)

◆ CHILI_TEST_CST_DUT_DISPLAY

#define CHILI_TEST_CST_DUT_DISPLAY   0x03

display test result (dut)

◆ CHILI_TEST_CST_DUT_FINISHED

#define CHILI_TEST_CST_DUT_FINISHED   0x04

test complete (dut)

◆ CHILI_TEST_DUT

#define CHILI_TEST_DUT   1

DUT.

◆ CHILI_TEST_DUT_SHORTADD

#define CHILI_TEST_DUT_SHORTADD   0xCAFE

Short Address for DUT.

◆ CHILI_TEST_DUT_TIMEOUT

#define CHILI_TEST_DUT_TIMEOUT   400

DUT Timeout [ms].

◆ CHILI_TEST_ED_LIMIT

#define CHILI_TEST_ED_LIMIT   100

ED (RSSI) Limit.

◆ CHILI_TEST_OFF

#define CHILI_TEST_OFF   0

No Test Mode.

◆ CHILI_TEST_PANID

#define CHILI_TEST_PANID   0xCA5C

PanID.

◆ CHILI_TEST_REF

#define CHILI_TEST_REF   2

Reference Device.

◆ CHILI_TEST_REF_SHORTADD

#define CHILI_TEST_REF_SHORTADD   0xCAFF

Short Address for Reference Device.

◆ CHILI_TEST_ST_CS_DUT_LOW

#define CHILI_TEST_ST_CS_DUT_LOW   0x0D

CS low on DUT Side.

◆ CHILI_TEST_ST_CS_REF_LOW

#define CHILI_TEST_ST_CS_REF_LOW   0x0C

CS low on REF Side.

◆ CHILI_TEST_ST_DATA_CNF_CHACCF

#define CHILI_TEST_ST_DATA_CNF_CHACCF   0x05

Data Confirm Ch.

Access Fail

◆ CHILI_TEST_ST_DATA_CNF_NO_ACK

#define CHILI_TEST_ST_DATA_CNF_NO_ACK   0x04

Data Confirm No Ack.

◆ CHILI_TEST_ST_DATA_CNF_OTHERS

#define CHILI_TEST_ST_DATA_CNF_OTHERS   0x07

Data Confirm Status Others.

◆ CHILI_TEST_ST_DATA_CNF_TIMEOUT

#define CHILI_TEST_ST_DATA_CNF_TIMEOUT   0x03

Data Confirm Timeout.

◆ CHILI_TEST_ST_DATA_CNF_TROVFL

#define CHILI_TEST_ST_DATA_CNF_TROVFL   0x06

Data Confirm Transaction Ovfl.

◆ CHILI_TEST_ST_DATA_CNF_UNEXP

#define CHILI_TEST_ST_DATA_CNF_UNEXP   0x02

Data Confirm Unexpected.

◆ CHILI_TEST_ST_DATA_IND_ID

#define CHILI_TEST_ST_DATA_IND_ID   0x0A

Data Indication Id wrong.

◆ CHILI_TEST_ST_DATA_IND_TIMEOUT

#define CHILI_TEST_ST_DATA_IND_TIMEOUT   0x09

Data Indication Timeout.

◆ CHILI_TEST_ST_DATA_IND_UNEXP

#define CHILI_TEST_ST_DATA_IND_UNEXP   0x08

Data Indication Unexpected.

◆ CHILI_TEST_ST_ED_DUT_LOW

#define CHILI_TEST_ST_ED_DUT_LOW   0x0F

ED low on DUT Side.

◆ CHILI_TEST_ST_ED_REF_LOW

#define CHILI_TEST_ST_ED_REF_LOW   0x0E

ED low on REF Side.

◆ CHILI_TEST_ST_NOCOMMS

#define CHILI_TEST_ST_NOCOMMS   0x01

No Communication between Chips.

◆ CHILI_TEST_ST_SUCCESS

#define CHILI_TEST_ST_SUCCESS   0x00

Success / Test Pass.

◆ CHILI_TEST_ST_TIMEOUT

#define CHILI_TEST_ST_TIMEOUT   0x0B

Overall Timeout.

◆ EVBME_TEST_DATA0

#define EVBME_TEST_DATA0   (0x5A)

◆ EVBME_TEST_DATA1

#define EVBME_TEST_DATA1   (0xA5)

◆ EVBME_TEST_DATA2

#define EVBME_TEST_DATA2   (0x81)

◆ EVBME_TEST_LEN

#define EVBME_TEST_LEN   (3)

◆ EVBME_TEST_SETUP_REF

#define EVBME_TEST_SETUP_REF   (0x9D) /* configure reference device */

◆ EVBME_TEST_START_TEST

#define EVBME_TEST_START_TEST   (0x9F) /* start test (automatic by GUI) */

◆ EVBME_TEST_START_TEST_2

#define EVBME_TEST_START_TEST_2   (0x9E) /* start test (manual command) */

◆ PT_MSDU_TEST_DUT

#define PT_MSDU_TEST_DUT   0xAA

packet from DUT

◆ PT_MSDU_TEST_REF

#define PT_MSDU_TEST_REF   0xBB

packet from Reference Device

Function Documentation

◆ CHILI_TEST_Handler()

void CHILI_TEST_Handler ( struct ca821x_dev pDeviceRef)

Chili Production Test Handler.

◆ CHILI_TEST_Initialise()

void CHILI_TEST_Initialise ( u8_t  status,
struct ca821x_dev pDeviceRef 
)

Chili Production Test Initialisation.

◆ CHILI_TEST_IsInTestMode()

u8_t CHILI_TEST_IsInTestMode ( void  )

Checks if Device is in Production Test Mode (yes if non-zero)

◆ CHILI_TEST_UpStreamDispatch()

int CHILI_TEST_UpStreamDispatch ( struct SerialBuffer SerialRxBuffer,
struct ca821x_dev pDeviceRef 
)

Chili Test Dispatch Branch (UpStream, Serial)