#include <stdint.h>
#include <string.h>
#include <stdbool.h>
#include <stdlib.h>
#include "pal.h"
#include "return_val.h"
#include "tal.h"
#include "tal_constants.h"
#include "tal_internal.h"
#include "ieee_const.h"
#include "at86rf212.h"
#include "tfa.h"
Macros | |
#define | CLIP_VALUE_REG (62) |
Functions | |
static void | init_tfa_pib (void) |
phy_enum_t | tfa_cca_perform (void) |
void | tfa_continuous_tx_start (continuous_tx_mode_t tx_mode, bool random_content) |
void | tfa_continuous_tx_stop (void) |
uint8_t | tfa_ed_sample (void) |
uint16_t | tfa_get_batmon_voltage (void) |
Gets the transceiver's supply voltage. More... | |
retval_t | tfa_init (void) |
Initializes the TFA. More... | |
retval_t | tfa_pib_get (tfa_pib_t tfa_pib_attribute, void *value) |
Gets a TFA PIB attribute. More... | |
retval_t | tfa_pib_set (tfa_pib_t tfa_pib_attribute, void *value) |
Sets a TFA PIB attribute. More... | |
void | tfa_reset (bool set_default_pib) |
Reset the TFA. More... | |
static void | write_all_tfa_pibs_to_trx (void) |
Write all shadow PIB variables to the transceiver. More... | |
Variables | |
static int8_t | tfa_pib_rx_sens |
TFA PIB attribute to reduce the Rx sensitivity. More... | |
#define CLIP_VALUE_REG (62) |
Referenced by tfa_ed_sample().
|
static |
References tfa_pib_rx_sens, and TFA_PIB_RX_SENS_DEF.
Referenced by tfa_init(), and tfa_reset().
phy_enum_t tfa_cca_perform | ( | void | ) |
References CCA_CH_IDLE, CCA_COMPLETED, CCA_DURATION_SYM, CCA_START, CMD_RX_ON, CMD_TRX_OFF, pal_timer_delay, PHY_BUSY, PHY_IDLE, RX_DISABLE, RX_ENABLE, RX_ON, set_trx_state(), SR_CCA_DONE, SR_CCA_REQUEST, SR_CCA_STATUS, SR_RX_PDT_DIS, TAL_CONVERT_SYMBOLS_TO_US, trx_bit_read(), trx_bit_write(), and TRX_OFF.
void tfa_continuous_tx_start | ( | continuous_tx_mode_t | tx_mode, |
bool | random_content | ||
) |
References CMD_PLL_ON, CMD_TRX_OFF, CW_MODE, RG_PART_NUM, RG_TRX_CTRL_2, RG_TRX_STATE, set_trx_state(), tal_pib, trx_frame_write(), trx_reg_write(), TRX_SLP_TR_HIGH, and TRX_SLP_TR_LOW.
void tfa_continuous_tx_stop | ( | void | ) |
References tal_reset().
uint8_t tfa_ed_sample | ( | void | ) |
|
static |
Write all shadow PIB variables to the transceiver.
This function writes all shadow PIB variables to the transceiver. It is assumed that the radio does not sleep.
References TFA_PIB_RX_SENS, tfa_pib_rx_sens, and tfa_pib_set().
Referenced by tfa_init(), and tfa_reset().
|
static |
TFA PIB attribute to reduce the Rx sensitivity.
Represents the Rx sensitivity value in dBm; example: -52
Referenced by init_tfa_pib(), tfa_pib_get(), tfa_pib_set(), and write_all_tfa_pibs_to_trx().