This file implements helper functions to configure transceiver.
Copyright (c) 2015-2018 Microchip Technology Inc. and its subsidiaries.
#include "pal.h"
#include "return_val.h"
#include "tal.h"
#include "tal_internal.h"
#include "ieee_const.h"
#include "tal_helper_2.h"
Functions | |
uint8_t | convert_phyTransmitPower_to_reg_value (uint8_t phyTransmitPower_value) |
Converts a phyTransmitPower value to a register value. More... | |
bool | crc_check_ok (trx_id_t trx) |
Calculates CRC manually and compares with the received and returns true if both are same,false otherwise. More... | |
FLASH_EXTERN (int8_t tx_pwr_table[16]) | |
retval_t | tal_convert_reg_value_to_dBm (uint8_t reg_value, int8_t *dbm_value) |
retval_t | tal_dump_registers (trx_id_t trx, uint16_t start_addr, uint16_t end_addr, uint8_t *value) |
retval_t | tal_get_curr_trx_config (trx_id_t trx, param_type parameter, uint8_t *param_value) |
tal_trx_status_t | tal_get_trx_status (trx_id_t trx) |
retval_t | tal_rxaack_prom_mode_ctrl (trx_id_t trx, bool prom_ctrl) |
retval_t | tal_set_rx_sensitivity_level (trx_id_t trx, uint8_t pdt_level) |
retval_t | tal_set_tx_pwr (trx_id_t trx, bool type, int8_t pwr_value) |
Enable/Disable the external RF front end control. More... | |
retval_t | tal_trx_reg_read (trx_id_t trx, uint16_t reg_addr, uint8_t *data) |
retval_t | tal_trx_reg_write (trx_id_t trx, uint16_t reg_addr, uint8_t value) |
Calculates CRC manually and compares with the received and returns true if both are same,false otherwise.
References RF_BASE_ADDR_OFFSET, SR_BBC0_PC_FCSOK, and trx_bit_read().
Referenced by per_mode_receptor_rx_cb().
FLASH_EXTERN | ( | int8_t | tx_pwr_table[16] | ) |
retval_t tal_convert_reg_value_to_dBm | ( | uint8_t | reg_value, |
int8_t * | dbm_value | ||
) |
References MAC_SUCCESS.
Referenced by set_parameter_on_transmitter_node(), set_paramter_on_recptor_node(), set_tx_power(), and tal_set_tx_pwr().
retval_t tal_dump_registers | ( | trx_id_t | trx, |
uint16_t | start_addr, | ||
uint16_t | end_addr, | ||
uint8_t * | value | ||
) |
References length, MAC_INVALID_PARAMETER, MAC_SUCCESS, MAX_REG_ADDR_VALUE, and trx_reg_read().
Referenced by dump_trx_register_values().
retval_t tal_get_curr_trx_config | ( | trx_id_t | trx, |
param_type | parameter, | ||
uint8_t * | param_value | ||
) |
References MAC_INVALID_PARAMETER, MAC_SUCCESS, RF_BASE_ADDR_OFFSET, SR_BBC0_AFC0_PM, SR_RF09_PAC_TXPWR, trx_bit_read(), and TX_PWR.
Referenced by config_per_test_parameters(), perf_get_req(), set_parameter_on_transmitter_node(), set_paramter_on_recptor_node(), and set_tx_power().
tal_trx_status_t tal_get_trx_status | ( | trx_id_t | trx | ) |
References P_ON, PLL_ON, RF_BASE_ADDR_OFFSET, RX_ON, SR_RF09_STATE_STATE, STATUS_RF_RESET, STATUS_RF_RX, STATUS_RF_TRXOFF, STATUS_RF_TXPREP, TAL_SLEEP, tal_state, trx_bit_read(), TRX_OFF, and TRX_SLEEP.
Referenced by config_rpc_mode(), perf_get_req(), and set_transceiver_state().
References FAILURE, MAC_SUCCESS, RF_BASE_ADDR_OFFSET, SR_BBC0_AFC0_PM, SR_BBC0_PC_FCSFE, temp, trx_bit_read(), and trx_bit_write().
Referenced by per_mode_receptor_rx_cb(), and set_default_configuration_peer_node().
References FAILURE, MAC_INVALID_PARAMETER, MAC_SUCCESS, MAX_PDT_LEVEL, SR_BBC1_OQPSKC1_PDT0, temp, trx_bit_read(), and trx_bit_write().
Referenced by config_per_test_parameters(), config_rx_desensitization(), and recover_all_settings().
Enable/Disable the external RF front end control.
pa_ext_sw_ctrl | true if external rf front end control has to be enabled |
References CONV_DBM_TO_phyTransmitPower, convert_phyTransmitPower_to_reg_value(), FAILURE, MAC_INVALID_PARAMETER, MAC_SUCCESS, phyTransmitPower, tal_convert_reg_value_to_dBm(), tal_pib, tal_pib_set(), and temp.
Referenced by peer_search_initiator_init(), peer_search_receptor_init(), set_paramter_on_recptor_node(), and set_tx_power().
References MAC_INVALID_PARAMETER, MAC_SUCCESS, MAX_REG_ADDR_VALUE, and trx_reg_read().
Referenced by read_trx_registers(), and set_paramter_on_recptor_node().
References MAC_INVALID_PARAMETER, MAC_SUCCESS, MAX_REG_ADDR_VALUE, trx_reg_read(), and trx_reg_write().
Referenced by config_per_test_parameters(), config_rpc_mode(), set_paramter_on_recptor_node(), and write_trx_registers().