Microchip® Advanced Software Framework

tfa.h File Reference

This file is the interface for Transceiver Feature Access (TFA) functionality.

Id:
tfa.h 24320 2010-11-26 08:59:36Z sschneid
Author
Microchip Technology Inc: http://www.microchip.com
Support: https://www.microchip.com/support/
#include "return_val.h"
#include "ieee_const.h"

Macros

#define SUPPLY_VOLTAGE_ABOVE_UPPER_LIMIT   (0xFFFF)
 Supply voltage above upper limit. More...
 
#define SUPPLY_VOLTAGE_BELOW_LOWER_LIMIT   (0)
 Supply voltage below lower limit. More...
 
#define TFA_PIB_RX_SENS_DEF   (0)
 Default value of TFA PIB attribute to reduce the Rx sensitivity. More...
 

Typedefs

typedef enum continuous_tx_mode_tag continuous_tx_mode_t
 Continuous Transmission modes. More...
 
typedef enum tfa_pib_t tfa_pib_t
 Transceiver commands. More...
 

Enumerations

enum  continuous_tx_mode_tag {
  CW_MODE = 0,
  PRBS_MODE = 1
}
 Continuous Transmission modes. More...
 
enum  tfa_pib_t { TFA_PIB_RX_SENS = 0 }
 Transceiver commands. More...
 

Functions

void tfa_continuous_tx_start (continuous_tx_mode_t tx_mode)
 Starts continuous transmission on current channel. More...
 
void tfa_continuous_tx_stop (void)
 Stops CW transmission. More...
 
uint16_t tfa_get_batmon_voltage (void)
 Get the transceiver's supply voltage. More...
 
double tfa_get_temperature (void)
 Get the temperature value from the integrated sensor. More...
 

#define SUPPLY_VOLTAGE_ABOVE_UPPER_LIMIT   (0xFFFF)

Supply voltage above upper limit.

#define SUPPLY_VOLTAGE_BELOW_LOWER_LIMIT   (0)

Supply voltage below lower limit.

#define TFA_PIB_RX_SENS_DEF   (0)

Default value of TFA PIB attribute to reduce the Rx sensitivity.

Continuous Transmission modes.

typedef enum tfa_pib_t tfa_pib_t

Transceiver commands.

Continuous Transmission modes.

Enumerator
CW_MODE 
PRBS_MODE 
enum tfa_pib_t

Transceiver commands.

Enumerator
TFA_PIB_RX_SENS 

void tfa_continuous_tx_start ( continuous_tx_mode_t  tx_mode)

Starts continuous transmission on current channel.

Parameters
tx_modeTransmission mode
void tfa_continuous_tx_stop ( void  )

Stops CW transmission.

uint16_t tfa_get_batmon_voltage ( void  )

Get the transceiver's supply voltage.

Returns
mv Milli Volt; 0 if below threshold, 0xFFFF if above threshold

Referenced by vendor_data_ind().

double tfa_get_temperature ( void  )

Get the temperature value from the integrated sensor.

Returns
temperature value in degree Celsius