Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
|
Chili Module Production Test Modes. More...
#include "cascoda-bm/cascoda_types.h"
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... | |
Chili Module Production Test Modes.
#define CHILI_TEST_CHANNEL 11 |
Channel.
#define CHILI_TEST_CS_LIMIT 200 |
CS (LQI) Limit.
#define CHILI_TEST_CST_DONE 0x00 |
communication completed
#define CHILI_TEST_CST_DUT_D_CONFIRMED 0x02 |
data pkt confirmed (dut)
#define CHILI_TEST_CST_DUT_D_REQUESTED 0x01 |
data pkt requested (dut)
#define CHILI_TEST_CST_DUT_DISPLAY 0x03 |
display test result (dut)
#define CHILI_TEST_CST_DUT_FINISHED 0x04 |
test complete (dut)
#define CHILI_TEST_DUT 1 |
DUT.
#define CHILI_TEST_DUT_SHORTADD 0xCAFE |
Short Address for DUT.
#define CHILI_TEST_DUT_TIMEOUT 400 |
DUT Timeout [ms].
#define CHILI_TEST_ED_LIMIT 100 |
ED (RSSI) Limit.
#define CHILI_TEST_OFF 0 |
No Test Mode.
#define CHILI_TEST_PANID 0xCA5C |
PanID.
#define CHILI_TEST_REF 2 |
Reference Device.
#define CHILI_TEST_REF_SHORTADD 0xCAFF |
Short Address for Reference Device.
#define CHILI_TEST_ST_CS_DUT_LOW 0x0D |
CS low on DUT Side.
#define CHILI_TEST_ST_CS_REF_LOW 0x0C |
CS low on REF Side.
#define CHILI_TEST_ST_DATA_CNF_CHACCF 0x05 |
Data Confirm Ch.
Access Fail
#define CHILI_TEST_ST_DATA_CNF_NO_ACK 0x04 |
Data Confirm No Ack.
#define CHILI_TEST_ST_DATA_CNF_OTHERS 0x07 |
Data Confirm Status Others.
#define CHILI_TEST_ST_DATA_CNF_TIMEOUT 0x03 |
Data Confirm Timeout.
#define CHILI_TEST_ST_DATA_CNF_TROVFL 0x06 |
Data Confirm Transaction Ovfl.
#define CHILI_TEST_ST_DATA_CNF_UNEXP 0x02 |
Data Confirm Unexpected.
#define CHILI_TEST_ST_DATA_IND_ID 0x0A |
Data Indication Id wrong.
#define CHILI_TEST_ST_DATA_IND_TIMEOUT 0x09 |
Data Indication Timeout.
#define CHILI_TEST_ST_DATA_IND_UNEXP 0x08 |
Data Indication Unexpected.
#define CHILI_TEST_ST_ED_DUT_LOW 0x0F |
ED low on DUT Side.
#define CHILI_TEST_ST_ED_REF_LOW 0x0E |
ED low on REF Side.
#define CHILI_TEST_ST_NOCOMMS 0x01 |
No Communication between Chips.
#define CHILI_TEST_ST_SUCCESS 0x00 |
Success / Test Pass.
#define CHILI_TEST_ST_TIMEOUT 0x0B |
Overall Timeout.
#define EVBME_TEST_DATA0 (0x5A) |
#define EVBME_TEST_DATA1 (0xA5) |
#define EVBME_TEST_DATA2 (0x81) |
#define EVBME_TEST_LEN (3) |
#define EVBME_TEST_SETUP_REF (0x9D) /* configure reference device */ |
#define EVBME_TEST_START_TEST (0x9F) /* start test (automatic by GUI) */ |
#define EVBME_TEST_START_TEST_2 (0x9E) /* start test (manual command) */ |
#define PT_MSDU_TEST_DUT 0xAA |
packet from DUT
#define PT_MSDU_TEST_REF 0xBB |
packet from Reference Device
void CHILI_TEST_Handler | ( | struct ca821x_dev * | pDeviceRef | ) |
Chili Production Test Handler.
void CHILI_TEST_Initialise | ( | u8_t | status, |
struct ca821x_dev * | pDeviceRef | ||
) |
Chili Production Test Initialisation.
u8_t CHILI_TEST_IsInTestMode | ( | void | ) |
Checks if Device is in Production Test Mode (yes if non-zero)
int CHILI_TEST_UpStreamDispatch | ( | struct SerialBuffer * | SerialRxBuffer, |
struct ca821x_dev * | pDeviceRef | ||
) |
Chili Test Dispatch Branch (UpStream, Serial)