Microchip® Advanced Software Framework

tfa.c File Reference

Implementation of Transceiver Feature Access (TFA) functionality.

Copyright (c) 2013-2018 Microchip Technology Inc. and its subsidiaries.

#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 "at86rf212b.h"
#include "tfa.h"

Macros

#define CLIP_VALUE_REG   (62)
 

Functions

static void init_tfa_pib (void)
 Initialize the TFA PIB. More...
 
phy_enum_t tfa_cca_perform (void)
 Perform a CCA. More...
 
void tfa_continuous_tx_start (continuous_tx_mode_t tx_mode, bool random_content)
 Starts continuous transmission on current channel. More...
 
void tfa_continuous_tx_stop (void)
 Stops CW transmission. More...
 
uint8_t tfa_ed_sample (void)
 Perform a single ED measurement. More...
 
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().

int8_t tfa_pib_rx_sens
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().