Certification Protocol Commands header.
Copyright (c) 2020 Microchip Technology Inc. and its subsidiaries.
Functions | |
void | enddevice_cpc_execute_command (uint8_t *buffer, uint8_t buflen) |
bool | enddevice_cpc_is_payload_valid (uint8_t *buffer, uint8_t len) |
#define CERT_PROTOCOL_PACKAGE_IDENTIFIER (6) |
Referenced by enddevice_cpc_execute_command().
#define CERT_PROTOCOL_PACKAGE_VERSION (1) |
Referenced by enddevice_cpc_execute_command().
#define CPC_ADR_BIT_CHANGE_REQ (0x04) |
Referenced by enddevice_cpc_execute_command(), and enddevice_cpc_is_payload_valid().
#define CPC_ADR_BIT_CHANGE_REQ_LEN (2) |
#define CPC_DEVICE_TIME_REQ (0x21) |
Referenced by enddevice_cpc_execute_command(), and enddevice_cpc_is_payload_valid().
#define CPC_DEVICE_TIME_REQ_LEN (1) |
#define CPC_DUT_FPORT224_DISABLE_REQ (0x7E) |
Referenced by enddevice_cpc_execute_command(), and enddevice_cpc_is_payload_valid().
#define CPC_DUT_FPORT224_DISABLE_REQ_LEN (1) |
#define CPC_DUT_JOIN_REQ (0x02) |
Referenced by enddevice_cpc_execute_command(), and enddevice_cpc_is_payload_valid().
#define CPC_DUT_JOIN_REQ_LEN (1) |
#define CPC_DUT_RESET_ANS CPC_DUT_RESET_REQ |
#define CPC_DUT_RESET_REQ (0x01) |
Referenced by enddevice_cpc_execute_command(), and enddevice_cpc_is_payload_valid().
#define CPC_DUT_RESET_REQ_LEN (1) |
#define CPC_DUT_VERSIONS_ANS CPC_DUT_VERSIONS_REQ |
Referenced by enddevice_cpc_execute_command().
#define CPC_DUT_VERSIONS_REQ (0x7F) |
Referenced by enddevice_cpc_execute_command(), and enddevice_cpc_is_payload_valid().
#define CPC_DUT_VERSIONS_REQ_LEN (1) |
#define CPC_ECHO_INC_PAYLOAD_ANS CPC_ECHO_INC_PAYLOAD_REQ |
Referenced by enddevice_cpc_execute_command().
#define CPC_ECHO_INC_PAYLOAD_REQ (0x08) |
Referenced by enddevice_cpc_execute_command(), and enddevice_cpc_is_payload_valid().
#define CPC_ECHO_INC_PAYLOAD_REQ_LEN (1) |
#define CPC_LINK_CHECK_REQ (0x20) |
Referenced by enddevice_cpc_execute_command(), and enddevice_cpc_is_payload_valid().
#define CPC_LINK_CHECK_REQ_LEN (1) |
#define CPC_PACKAGE_VERSION_ANS CPC_PACKAGE_VERSION_REQ |
Referenced by enddevice_cpc_execute_command().
#define CPC_PACKAGE_VERSION_REQ (0x00) |
Referenced by enddevice_cpc_execute_command(), and enddevice_cpc_is_payload_valid().
#define CPC_PACKAGE_VERSION_REQ_LEN (1) |
#define CPC_PING_SLOT_INFO_REQ (0x22) |
Referenced by enddevice_cpc_execute_command(), and enddevice_cpc_is_payload_valid().
#define CPC_PING_SLOT_INFO_REQ_LEN (2) |
#define CPC_REGIONAL_DUTYCYCLE_CTRL_REQ (0x05) |
Referenced by enddevice_cpc_execute_command(), and enddevice_cpc_is_payload_valid().
#define CPC_REGIONAL_DUTYCYCLE_CTRL_REQ_LEN (2) |
#define CPC_RX_APP_CNT_ANS CPC_RX_APP_CNT_REQ |
Referenced by enddevice_cpc_execute_command().
#define CPC_RX_APP_CNT_REQ (0x09) |
Referenced by enddevice_cpc_execute_command(), and enddevice_cpc_is_payload_valid().
#define CPC_RX_APP_CNT_REQ_LEN (1) |
#define CPC_RX_APP_CNT_RESET_REQ (0x0A) |
Referenced by enddevice_cpc_execute_command(), and enddevice_cpc_is_payload_valid().
#define CPC_RX_APP_CNT_RESET_REQ_LEN (1) |
#define CPC_SWITCH_CLASS_REQ (0x03) |
Referenced by enddevice_cpc_execute_command(), and enddevice_cpc_is_payload_valid().
#define CPC_SWITCH_CLASS_REQ_LEN (2) |
#define CPC_TX_CW_REQ (0x7D) |
Referenced by enddevice_cpc_execute_command(), and enddevice_cpc_is_payload_valid().
#define CPC_TX_CW_REQ_LEN (7) |
#define CPC_TX_FRAMES_CTRL_REQ (0x07) |
Referenced by enddevice_cpc_execute_command(), and enddevice_cpc_is_payload_valid().
#define CPC_TX_FRAMES_CTRL_REQ_LEN (2) |
#define CPC_TX_PERIODICITY_CHANGE_REQ (0x06) |
Referenced by enddevice_cpc_execute_command(), and enddevice_cpc_is_payload_valid().
#define CPC_TX_PERIODICITY_CHANGE_REQ_LEN (2) |
void enddevice_cpc_execute_command | ( | uint8_t * | buffer, |
uint8_t | buflen | ||
) |
References ADR, bTxCnf, CERT_APP_TIMEOUT, cert_app_timer_callback(), CERT_PROTOCOL_PACKAGE_IDENTIFIER, CERT_PROTOCOL_PACKAGE_VERSION, certAppTimeout, certAppTimerId, CHANNEL_FREQUENCY, CPC_ADR_BIT_CHANGE_REQ, CPC_DEVICE_TIME_REQ, CPC_DUT_FPORT224_DISABLE_REQ, CPC_DUT_JOIN_REQ, CPC_DUT_RESET_REQ, CPC_DUT_VERSIONS_ANS, CPC_DUT_VERSIONS_REQ, CPC_ECHO_INC_PAYLOAD_ANS, CPC_ECHO_INC_PAYLOAD_REQ, CPC_LINK_CHECK_REQ, CPC_PACKAGE_VERSION_ANS, CPC_PACKAGE_VERSION_REQ, CPC_PING_SLOT_INFO_REQ, CPC_REGIONAL_DUTYCYCLE_CTRL_REQ, CPC_RX_APP_CNT_ANS, CPC_RX_APP_CNT_REQ, CPC_RX_APP_CNT_RESET_REQ, CPC_SWITCH_CLASS_REQ, CPC_TX_CW_REQ, CPC_TX_FRAMES_CTRL_REQ, CPC_TX_PERIODICITY_CHANGE_REQ, delay_ms, downlinkCtr, EDCLASS, enddevice_cpc_fresh_join(), enddevice_txcw_callback(), ERR_NONE, i, LORAWAN_GetAttr(), LORAWAN_SetAttr(), LORAWAN_SUCCESS, MS_TO_US, NEXT_PAYLOAD_SIZE, NULL, OUTPUT_POWER, PDS_DeleteAll(), RADIO_SetAttr(), RADIO_TransmitCW(), REGIONAL_DUTY_CYCLE, SEND_DEVICE_TIME_CMD, SEND_LINK_CHECK_CMD, sendData, sendDataLen, sendFport, SW_TIMEOUT_RELATIVE, SwTimerIsRunning(), SwTimerStart(), SwTimerStop(), TEST_MODE_ENABLE, TEST_PORT_NB, and tx_cw_timer.
Referenced by cert_handle_cert_rx_data().
bool enddevice_cpc_is_payload_valid | ( | uint8_t * | buffer, |
uint8_t | len | ||
) |
References CPC_ADR_BIT_CHANGE_REQ, CPC_DEVICE_TIME_REQ, CPC_DUT_FPORT224_DISABLE_REQ, CPC_DUT_JOIN_REQ, CPC_DUT_RESET_REQ, CPC_DUT_VERSIONS_REQ, CPC_ECHO_INC_PAYLOAD_REQ, CPC_LINK_CHECK_REQ, CPC_PACKAGE_VERSION_REQ, CPC_PING_SLOT_INFO_REQ, CPC_REGIONAL_DUTYCYCLE_CTRL_REQ, CPC_RX_APP_CNT_REQ, CPC_RX_APP_CNT_RESET_REQ, CPC_SWITCH_CLASS_REQ, CPC_TX_CW_REQ, CPC_TX_FRAMES_CTRL_REQ, and CPC_TX_PERIODICITY_CHANGE_REQ.
Referenced by cert_handle_cert_rx_data().