Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages

This module handles the functionalities of the Initiator in PER mode.

Modules

 PER mode Receptor
 This module handles the functionalities of the receptor in PER mode.
 

Data Structures

struct  set_param_cb_t
 Structure used for updating the parameters after sending them to peer. More...
 

Functions

static float calculate_net_data_rate (float per_test_duration_sec)
 Function to calculate net data rate for the current PER test. More...
 
static float calculate_time_duration (void)
 Function to Calculate the time taken for PER Test. More...
 
uint8_t check_error_conditions (void)
 Function to check the error conditions before. More...
 
static void config_ack_request (bool config_value)
 To set or reset ACK request value. More...
 
static void config_crc_peer_node (bool config_value)
 To configure CRC settings on peer node. More...
 
static void config_csma (bool config_value)
 To configure CSMA Setting in the transceiver. More...
 
static void config_frame_retry (bool config_value)
 To configure frame retry Setting. More...
 
static void config_frequency (float frequency)
 Function to configure the ISM frequency based on the request. More...
 
static void config_rpc_mode (bool config_value)
 toggle RPC mode request More...
 
static void config_rx_desensitization (bool config_value)
 To configure rx desensitization level in the transceiver. More...
 
static void configure_frame_sending (void)
 To Configure the frame sending. More...
 
static void configure_range_test_frame_sending (void)
 To Configure the frame sending. More...
 
void disconnect_peer_node (void)
 Function to request the peer to get disconnected from source node. More...
 
 FLASH_DECLARE (uint8_t perf_config_param_size[])
 
void get_board_details (void)
 prints the hardware details More...
 
static void get_crc_settings_peer_node (void)
 Function used to query CRC settings in remote node. More...
 
void get_current_configuration (void)
 To Get the updated/latest values of all configurable parameters on source and peer node. More...
 
uint8_t get_param_length (uint8_t parameter_type)
 
void get_sensor_data (void)
 To get the Sensor data like Battery voltage. More...
 
void identify_peer_node (void)
 Identifying peer node. More...
 
void initiate_per_test (void)
 Initiates the test procedure. More...
 
void initiate_range_test (void)
 Initiates the Range test procedure. More...
 
void per_mode_initiator_ed_end_cb (uint8_t energy_level)
 User call back function after ED Scan completion. More...
 
void per_mode_initiator_init (void *parameter)
 Initialize the application in PER Measurement mode as Initiator. More...
 
void per_mode_initiator_rx_cb (frame_info_t *frame)
 Callback that is called if data has been received by trx in the PER_FOUND_PER_INITIATOR state. More...
 
void per_mode_initiator_task (void)
 Application task for PER Measurement mode as initiator. More...
 
void per_mode_initiator_tx_done_cb (retval_t status, frame_info_t *frame)
 Callback that is called once tx is done in the PER_FOUND_PER_INITIATOR state . More...
 
void perf_get_req (uint8_t param_type_data)
 Function to get the various configuaration paramters for PER Test. More...
 
void perf_set_req (uint8_t set_param_type, param_value_t *param_value)
 
More...
 
static void range_test_timer_handler_cb (void *parameter)
 This function is called periodically by the range test timer to initiate the transmission of range test packets to the receptor. More...
 
static bool send_crc_set_req (crc_set_req_t crc_msg)
 Function used to change CRC settings on peer node. More...
 
static bool send_crc_status_req (void)
 Function used to send crc status request to get CRC settings on the peer node. More...
 
static bool send_disconnect_command (void)
 Function used to send disconnect peer node command. More...
 
static bool send_identify_command (void)
 Function used to send identify peer node command. More...
 
static void send_parameters_changed (uint8_t param, uint8_t val)
 Function to send the parameters which has been updated to the receptor node. More...
 
static bool send_peer_info_req (void)
 Function to configure and send the peer node info request. More...
 
static bool send_per_test_start_cmd (void)
 
static bool send_range_test_marker_rsp (void)
 Function to send the response packet for the marker sent from the receptor. More...
 
static bool send_range_test_start_cmd (void)
 Function to send the range test start command to the receptor to start the mode in the receptor. More...
 
static bool send_range_test_stop_cmd (void)
 Function to send the range test stop command to the receptor to stop the mode in the receptor. More...
 
void send_remote_cmd (uint8_t *serial_buf, uint8_t len, bool ack_req)
 Function to send the command to Remote node to perform remote test. More...
 
bool send_remote_reply_cmd (uint8_t *serial_buf, uint8_t len)
 This function is used to send a remote test repsonse command back to the initiator. More...
 
static bool send_result_req (void)
 Function used to request PER test result. More...
 
static bool send_set_default_config_command (void)
 Function used to send set default config peer command. More...
 
static void set_channel (uint16_t channel)
 To set the Channel. More...
 
static void set_channel_page (uint8_t channel_page)
 To set the Channel Page. More...
 
void set_default_configuration (void)
 To set the default values of all configurable parameters on source and peer node. More...
 
static void set_parameter_on_transmitter_node (retval_t status)
 Set the parameters like channel,tx power etc on transmitter node. More...
 
static void set_phy_frame_length (uint16_t frame_len)
 To set PER Test frame length. More...
 
static void set_transceiver_state (uint8_t trx_state)
 Set Transceiver state as per the state given. More...
 
static void set_tx_power (uint8_t tx_power_format, int8_t power_value)
 To set the Tx power of the Transceiver. More...
 
void start_ed_scan (uint8_t ed_scan_duration, uint32_t channel_sel_mask)
 To start the ED scan. More...
 
static void start_range_test (void)
 
static void start_test (void)
 
void stop_range_test (void)
 Function to Stop the range Test in PER Mode. More...
 
static void toggle_trx_sleep (uint8_t sleep_mode)
 To toggle between sleep /deep state. More...
 
static void wait_for_reply_timer_handler_cb (void *parameter)
 Wait for reply timer handler is called if any command sent on air times out before any response message is received. More...
 

Variables

static uint8_t channel_before_scan
 
static uint32_t end_time
 
static uint32_t frame_access_failure
 
static uint32_t frame_failure
 
static uint32_t frame_no_ack
 
static uint32_t frames_to_transmit
 
static uint32_t fw_feature_mask = 0
 This is variable is to keep track of the specific features supported. More...
 
static uint16_t no_of_roll_overs
 
static uint16_t num_channels
 
uint8_t op_mode = TX_OP_MODE
 
uint8_t set_param_cb_t::param_type
 
uint8_t set_param_cb_t::param_value
 
bool pkt_stream_stop = true
 
static uint32_t range_test_frame_cnt = 0
 
static bool range_test_in_progress = false
 
static uint32_t restart_time
 
static uint32_t scan_channel_mask
 
static uint8_t scan_duration
 
static bool scanning = false
 
static uint8_t seq_num_initiator
 
static set_param_cb_t set_param_cb
 
static uint32_t start_time
 
static bool trx_sleep_status = false
 

static float calculate_net_data_rate ( float  per_test_duration_sec)
static

Function to calculate net data rate for the current PER test.

Parameters
per_test_duration_secTime duration for PER test
Returns
net data rate as float value

References curr_trx_config_params, trx_config_params_t::number_test_frames, and trx_config_params_t::phy_frame_length.

Referenced by per_mode_initiator_rx_cb().

static float calculate_time_duration ( void  )
static

Function to Calculate the time taken for PER Test.

Returns
Time duration as float value

References end_time, MICRO_SEC_MULTIPLIER, no_of_roll_overs, start_time, and SUB_TIME.

Referenced by per_mode_initiator_rx_cb().

uint8_t check_error_conditions ( void  )

Function to check the error conditions before.

Function used to check the error conditions before.

processing the received command

Returns
the error code based on the currently ongoing operation,if any

References CONTINUOUS_TX_MODE, CW_TRANSMISSION_UNDER_PROGRESS, ED_SCAN_UNDER_PROGRESS, frames_to_transmit, MAC_SUCCESS, op_mode, PKT_STREAM_IN_PROGRESS, pkt_stream_stop, RANGE_TEST_IN_PROGRESS, range_test_in_progress, remote_serial_tx_failure, rx_on_mode, RX_ON_MODE_IN_PROGRESS, scanning, TRANSCEIVER_IN_SLEEP, TRANSMISSION_UNDER_PROGRESS, trx_sleep_status, and UNABLE_TO_CONTACT_PEER.

Referenced by handle_incoming_msg().

static void config_ack_request ( bool  config_value)
static

To set or reset ACK request value.

Parameters
config_valuevalue to be configured

References trx_config_params_t::ack_request, curr_trx_config_params, MAC_SUCCESS, PARAM_ACK_REQUEST, param_value_t::param_value_bool, and usr_perf_set_confirm().

Referenced by perf_set_req().

static void config_crc_peer_node ( bool  config_value)
static

To configure CRC settings on peer node.

Parameters
config_valueValue used to configure CRC on peer

References INVALID_CMD, op_mode, PARAM_CRC_ON_PEER, param_value_t::param_value_bool, peer_found, send_crc_set_req(), crc_set_req_t::status, TRANSMISSION_FAILURE, TX_OP_MODE, and usr_perf_set_confirm().

Referenced by perf_set_req().

static void config_csma ( bool  config_value)
static

To configure CSMA Setting in the transceiver.

Parameters
config_valuevalue to be configured

References trx_config_params_t::csma_enabled, curr_trx_config_params, MAC_SUCCESS, PARAM_CSMA, param_value_t::param_value_bool, and usr_perf_set_confirm().

Referenced by perf_set_req().

static void config_frame_retry ( bool  config_value)
static

To configure frame retry Setting.

Parameters
config_valuevalue to be configured

References curr_trx_config_params, MAC_SUCCESS, PARAM_FRAME_RETRY, param_value_t::param_value_bool, trx_config_params_t::retry_enabled, and usr_perf_set_confirm().

Referenced by perf_set_req().

static void config_rx_desensitization ( bool  config_value)
static

To configure rx desensitization level in the transceiver.

Parameters
config_valueValue used to configure Rx desensitization

References curr_trx_config_params, MAC_SUCCESS, NO_RX_DESENSITIZE_LEVEL, PARAM_DESENSITIZATION, param_value_t::param_value_bool, RX_DESENSITIZE_LEVEL, tal_set_rx_sensitivity_level(), and usr_perf_set_confirm().

Referenced by perf_set_req().

void disconnect_peer_node ( void  )
FLASH_DECLARE ( uint8_t  perf_config_param_size[])
static void get_crc_settings_peer_node ( void  )
static
void get_current_configuration ( void  )

To Get the updated/latest values of all configurable parameters on source and peer node.

Function to get the current values of the all configurable parameters.

References curr_trx_config_params, MAC_SUCCESS, and usr_get_current_config_confirm().

Referenced by handle_incoming_msg().

uint8_t get_param_length ( uint8_t  parameter_type)
void get_sensor_data ( void  )

To get the Sensor data like Battery voltage.

Function to get the Sensor data like Battery volatge.

References MAC_SUCCESS, MILLI_VOLT_MULTIPLIER, reverse_float(), tfa_get_batmon_voltage(), tfa_get_temperature(), and usr_sensor_data_get_confirm().

Referenced by handle_incoming_msg().

void identify_peer_node ( void  )
void initiate_per_test ( void  )

Initiates the test procedure.

References op_mode, PER_TEST_START, send_per_test_start_cmd(), and TX_OP_MODE.

Referenced by handle_incoming_msg().

void initiate_range_test ( void  )
void per_mode_initiator_ed_end_cb ( uint8_t  energy_level)

User call back function after ED Scan completion.

Parameters
energylevel as input

Send the ED_END_INDICATION with the no. of channels and the list with channel no and pin values

References channel_before_scan, ed_scan_result_t::channel_no, INVALID_VALUE, MAX_CHANNEL, MIN_CHANNEL, num_channels, ed_scan_result_t::p_in, phyCurrentChannel, phyCurrentPage, phyTransmitPower, pib_value_t::pib_value_8bit, RSSI_BASE_VAL_DBM, scan_channel_mask, scan_duration, scanning, tal_ed_start(), tal_pib_get(), tal_pib_set(), and usr_ed_scan_end_indication().

void per_mode_initiator_rx_cb ( frame_info_t frame)

Callback that is called if data has been received by trx in the PER_FOUND_PER_INITIATOR state.

Parameters
framePointer to received frame

References ANT_CTRL_0, ANT_CTRL_1, ANT_CTRL_2, app_led_event(), APP_TIMER_TO_TX, aver_lqi, aver_rssi, peer_info_rsp_t::board_name, calculate_net_data_rate(), calculate_time_duration(), CCPU_ENDIAN_TO_LE32, app_payload_t::cmd_id, CMD_ID_LEN, convert_ota_serial_frame_tx(), general_pkt_t::crc_stat_rsp_data, curr_trx_config_params, CW_TX_TIMER, default_trx_config_params, general_pkt_t::div_stat_rsp_data, range_tx_t::ed, ED_VAL_LEN, ENABLE_ANTENNA_1, ENABLE_ANTENNA_2, FCS_LEN, peer_info_rsp_t::feature_mask, frame_access_failure, frame_failure, frame_no_ack, FRAME_OVERHEAD, frames_with_wrong_crc, result_rsp_t::frames_with_wrong_crc, FUNC_PTR, peer_info_rsp_t::fw_version, peer_info_rsp_t::ic_type, INVALID_VALUE, LED_BLINK_RATE_IN_MICRO_SEC, LED_EVENT_RX_FRAME, LENGTH_FIELD_LEN, range_tx_t::lqi, result_rsp_t::lqi_avrg_rx, LQI_LEN, peer_info_rsp_t::mac_address, MAC_SUCCESS, marker_rsp_timer_handler_cb(), frame_info_tag::mpdu, result_rsp_t::num_of_frames_rx, number_rx_frames, op_mode, PARAM_ANT_DIVERSITY_ON_PEER, PARAM_CRC_ON_PEER, param_value_t::param_value_bool, app_payload_t::payload, PEER_INFO_RSP, general_pkt_t::peer_info_rsp_data, PEER_INFO_RSP_WAIT, RANGE_TEST_MARKER_CMD, RANGE_TEST_RSP, RANGE_TEST_TX, general_pkt_t::range_tx_data, remote_test_req_t::remote_serial_data, REMOTE_TEST_REPLY_CMD, general_pkt_t::remote_test_req_data, RESULT_RSP, reverse_float(), result_rsp_t::rssi_avrg_rx, rx_on_mode, send_range_test_marker_rsp(), app_payload_t::seq_num, SEQ_NUM_LEN, peer_info_rsp_t::soc_mcu_name, START_MODE_PER, div_stat_rsp_t::status, crc_stat_rsp_t::status, SW_TIMEOUT_RELATIVE, sw_timer_is_running(), sw_timer_start(), sw_timer_stop(), T_APP_TIMER, tal_get_rssi_base_val(), general_pkt_t::test_result_rsp_data, peer_info_rsp_t::trx_name, TX_OP_MODE, usr_per_test_end_indication(), usr_perf_get_confirm(), usr_perf_start_confirm(), usr_range_test_beacon_rsp(), usr_range_test_marker_ind(), and WAIT_FOR_TEST_RES.

void per_mode_initiator_tx_done_cb ( retval_t  status,
frame_info_t frame 
)

Callback that is called once tx is done in the PER_FOUND_PER_INITIATOR state .

Parameters
statusStatus of the transmission procedure
framePointer to the transmitted frame structure

References div_set_req_t::ant_sel, app_led_event(), app_reset(), APP_TIMER_TO_TX, APP_TIMER_TO_TX_LED_OFF, app_payload_t::cmd_id, CMD_ID_LEN, config_per_test_parameters(), CONTINUOUS_TX_MODE, convert_ota_serial_frame_rx(), general_pkt_t::crc_set_req_data, curr_trx_config_params, CW_TX_TIMER, default_trx_config_params, DISCONNECT_PEER, end_time, FCS_LEN, frame_access_failure, frame_failure, frame_no_ack, FRAME_OVERHEAD, frames_to_transmit, IDENTIFY_PEER, LED_EVENT_PEER_SEARCH_DONE, LED_EVENT_TX_FRAME, LED_TOGGLE_COUNT_FOR_PER, LENGTH_FIELD_LEN, MAC_CHANNEL_ACCESS_FAILURE, MAC_NO_ACK, MAC_SUCCESS, MICRO_SEC_MULTIPLIER, frame_info_tag::mpdu, no_of_roll_overs, node_info, NUL_VAL, op_mode, PARAM_ANT_DIVERSITY_ON_PEER, PARAM_CRC_ON_PEER, param_value_t::param_value_bool, app_payload_t::payload, PER_TEST_START, PKT_STREAM_MODE, pkt_stream_stop, range_test_frame_cnt, range_test_in_progress, RANGE_TEST_PKT, RANGE_TEST_START, RANGE_TEST_STOP, RANGE_TEST_TX, remote_test_req_t::remote_serial_data, remote_serial_tx_failure, REMOTE_TEST_MODE, general_pkt_t::remote_test_req_data, restart_time, SEQ_NUM_LEN, SET_DEFAULT_CONFIG_PEER, SET_PARAMETER, set_parameter_on_transmitter_node(), start_range_test(), start_test(), div_set_req_t::status, crc_set_req_t::status, sw_timer_get_time(), sw_timer_stop(), T_APP_TIMER_RANGE, TEST_FRAMES_SENT, node_ib_t::transmitting, node_ib_t::tx_frame_info, TX_OP_MODE, UNABLE_TO_CONTACT_PEER, usr_identify_peer_node_confirm(), usr_peer_disconnect_confirm(), usr_per_test_end_indication(), usr_perf_set_confirm(), usr_range_test_beacon_tx(), usr_range_test_start_confirm(), usr_range_test_stop_confirm(), usr_set_default_config_confirm(), and WAIT_FOR_TEST_RES.

static void range_test_timer_handler_cb ( void *  parameter)
static

This function is called periodically by the range test timer to initiate the transmission of range test packets to the receptor.

Parameters
parameterpass parameters to timer handler

References configure_range_test_frame_sending(), trx_config_params_t::csma_enabled, CSMA_UNSLOTTED, curr_trx_config_params, FUNC_PTR, NO_CSMA_NO_IFS, node_info, RANGE_TX_BEACON_INTERVAL, trx_config_params_t::retry_enabled, SW_TIMEOUT_RELATIVE, sw_timer_start(), T_APP_TIMER_RANGE, tal_tx_frame(), node_ib_t::transmitting, and node_ib_t::tx_frame_info.

Referenced by start_range_test().

static bool send_crc_set_req ( crc_set_req_t  crc_msg)
static

Function used to change CRC settings on peer node.

Parameters
crc_msgCRC settings for peer node
Returns
Transmission status - success/failure

References app_payload_t::cmd_id, general_pkt_t::crc_set_req_data, FCF_SHORT_ADDR, MAC_SUCCESS, node_info, app_payload_t::payload, node_ib_t::peer_short_addr, app_payload_t::seq_num, seq_num_initiator, and transmit_frame().

Referenced by config_crc_peer_node().

static bool send_crc_status_req ( void  )
static

Function used to send crc status request to get CRC settings on the peer node.

Returns
Transmission status - success/failure

References app_payload_t::cmd_id, data, DUMMY_PAYLOAD, FCF_SHORT_ADDR, MAC_SUCCESS, node_info, app_payload_t::payload, node_ib_t::peer_short_addr, app_payload_t::seq_num, seq_num_initiator, crc_stat_req_t::status, and transmit_frame().

Referenced by get_crc_settings_peer_node().

static bool send_disconnect_command ( void  )
static

Function used to send disconnect peer node command.

Returns
Transmission status - success/failure

References app_payload_t::cmd_id, DISCONNECT_NODE, FCF_SHORT_ADDR, MAC_SUCCESS, node_info, node_ib_t::peer_short_addr, app_payload_t::seq_num, seq_num_initiator, and transmit_frame().

Referenced by disconnect_peer_node().

static bool send_identify_command ( void  )
static

Function used to send identify peer node command.

Returns
Transmission status - success/failure

References app_payload_t::cmd_id, FCF_SHORT_ADDR, IDENTIFY_NODE, MAC_SUCCESS, node_info, node_ib_t::peer_short_addr, app_payload_t::seq_num, seq_num_initiator, and transmit_frame().

Referenced by identify_peer_node().

static void send_parameters_changed ( uint8_t  param,
uint8_t  val 
)
static

Function to send the parameters which has been updated to the receptor node.

Parameters
paramParameters being modified i.e. Channel,channel page,etc
valValue of the parameter being modified

References app_payload_t::cmd_id, data, FCF_SHORT_ADDR, MAC_SUCCESS, node_info, op_mode, set_param_cb_t::param_type, set_parm_req_t::param_type, set_param_cb_t::param_value, set_parm_req_t::param_value, app_payload_t::payload, node_ib_t::peer_short_addr, app_payload_t::seq_num, seq_num_initiator, SET_PARAM, SET_PARAMETER, and transmit_frame().

Referenced by config_frequency(), set_channel(), and set_channel_page().

static bool send_peer_info_req ( void  )
static

Function to configure and send the peer node info request.

Returns
Transmission status - success/failure

References app_payload_t::cmd_id, FCF_SHORT_ADDR, MAC_SUCCESS, node_info, PEER_INFO_REQ, node_ib_t::peer_short_addr, app_payload_t::seq_num, seq_num_initiator, and transmit_frame().

Referenced by per_mode_initiator_init().

static bool send_range_test_start_cmd ( void  )
static
static bool send_range_test_stop_cmd ( void  )
static

Function to send the range test stop command to the receptor to stop the mode in the receptor.

References result_req_t::cmd, app_payload_t::cmd_id, data, DUMMY_PAYLOAD, FCF_SHORT_ADDR, MAC_SUCCESS, node_info, app_payload_t::payload, node_ib_t::peer_short_addr, RANGE_TEST_STOP_PKT, app_payload_t::seq_num, seq_num_initiator, and transmit_frame().

Referenced by stop_range_test().

void send_remote_cmd ( uint8_t *  serial_buf,
uint8_t  len,
bool  ack_req 
)
bool send_remote_reply_cmd ( uint8_t *  serial_buf,
uint8_t  len 
)

This function is used to send a remote test repsonse command back to the initiator.

This function is used to send a remote test repsonse command back to the initiator.

References app_payload_t::cmd_id, FCF_SHORT_ADDR, MAC_SUCCESS, node_info, app_payload_t::payload, node_ib_t::peer_short_addr, REMOTE_MSG_BUF_SIZE, remote_test_req_t::remote_serial_data, REMOTE_TEST_REPLY_CMD, general_pkt_t::remote_test_req_data, app_payload_t::seq_num, seq_num_receptor, and transmit_frame().

Referenced by serial_data_handler().

static bool send_result_req ( void  )
static

Function used to request PER test result.

Returns
true if request was sent successfully, false if not.

References result_req_t::cmd, app_payload_t::cmd_id, data, DUMMY_PAYLOAD, FCF_SHORT_ADDR, MAC_SUCCESS, node_info, app_payload_t::payload, node_ib_t::peer_short_addr, RESULT_REQ, app_payload_t::seq_num, seq_num_initiator, and transmit_frame().

Referenced by per_mode_initiator_task().

static bool send_set_default_config_command ( void  )
static

Function used to send set default config peer command.

Returns
Transmission status - success/failure

References app_payload_t::cmd_id, FCF_SHORT_ADDR, MAC_SUCCESS, node_info, node_ib_t::peer_short_addr, app_payload_t::seq_num, seq_num_initiator, SET_DEFAULT_REQ, and transmit_frame().

Referenced by set_default_configuration().

void set_default_configuration ( void  )

To set the default values of all configurable parameters on source and peer node.

Function to set the default values of.

References config_per_test_parameters(), default_trx_config_params, MAC_SUCCESS, op_mode, peer_found, send_set_default_config_command(), SET_DEFAULT_CONFIG_PEER, TRANSMISSION_FAILURE, TX_OP_MODE, and usr_set_default_config_confirm().

Referenced by handle_incoming_msg().

static void set_phy_frame_length ( uint16_t  frame_len)
static
static void set_tx_power ( uint8_t  tx_power_format,
int8_t  power_value 
)
static
void start_ed_scan ( uint8_t  ed_scan_duration,
uint32_t  channel_sel_mask 
)

To start the ED scan.

Function to start the ED scan.

Parameters
ed_scan_durationScan duration parameter which is used to calculate the scan time on each channel
channel_sel_maskSelected channel mask for which the Energy should be detected

References aBaseSuperframeDuration, channel_before_scan, MAC_SUCCESS, MAX_CHANNEL, MAX_SCAN_DURATION, MIN_CHANNEL, NUL_VAL, num_channels, phyCurrentChannel, phyTransmitPower, pib_value_t::pib_value_8bit, reverse_float(), scan_channel_mask, scan_duration, scanning, TAL_CONVERT_SYMBOLS_TO_US, tal_ed_start(), tal_pib, tal_pib_get(), tal_pib_set(), usr_ed_scan_start_confirm(), and VALUE_OUT_OF_RANGE.

Referenced by handle_incoming_msg().

void stop_range_test ( void  )
static void toggle_trx_sleep ( uint8_t  sleep_mode)
static

To toggle between sleep /deep state.

Parameters
sleep_modeType of sleep mode as input in case of RF233

References DEEP_SLEEP_MODE, MAC_SUCCESS, SLEEP_MODE_1, tal_trx_sleep(), tal_trx_wakeup(), and trx_sleep_status.

Referenced by set_transceiver_state().

static void wait_for_reply_timer_handler_cb ( void *  parameter)
static

Wait for reply timer handler is called if any command sent on air times out before any response message is received.

This function handles all the scenarios if the remote node is not accessible

Parameters
parameterpass parameters to timer handler

References app_reset(), convert_ota_serial_frame_rx(), default_trx_config_params, NO_PEER_FOUND, NUL_VAL, op_mode, PARAM_ANT_DIVERSITY_ON_PEER, PARAM_CRC_ON_PEER, param_value_t::param_value_bool, PEER_INFO_RSP_WAIT, remote_serial_tx_failure, REMOTE_TEST_MODE, START_MODE_PER, TX_OP_MODE, UNABLE_TO_CONTACT_PEER, usr_per_test_end_indication(), usr_perf_get_confirm(), usr_perf_start_confirm(), and WAIT_FOR_TEST_RES.

Referenced by get_crc_settings_peer_node(), per_mode_initiator_init(), per_mode_initiator_task(), and send_remote_cmd().

uint8_t channel_before_scan
static
uint32_t end_time
static
uint32_t frame_access_failure
static
uint32_t frame_failure
static
uint32_t frame_no_ack
static
uint32_t frames_to_transmit
static
uint32_t fw_feature_mask = 0
static

This is variable is to keep track of the specific features supported.

Referenced by get_board_details(), and usr_identify_board_confirm().

uint16_t no_of_roll_overs
static
uint16_t num_channels
static
uint8_t set_param_cb_t::param_type
uint8_t set_param_cb_t::param_value
uint32_t range_test_frame_cnt = 0
static
uint32_t restart_time
static
uint32_t scan_channel_mask
static
uint8_t scan_duration
static
set_param_cb_t set_param_cb
static
uint32_t start_time
static
bool trx_sleep_status = false
static