Microchip® Advanced Software Framework

at86rf212/src/tal_pib.c File Reference
#include <stdint.h>
#include <string.h>
#include <stdbool.h>
#include <stdlib.h>
#include "pal.h"
#include "return_val.h"
#include "tal.h"
#include "ieee_const.h"
#include "tal_constants.h"
#include "tal_pib.h"
#include "at86rf212.h"
#include "tal_internal.h"
#include "tfa.h"

Macros

#define GET_CHINA_FREQ(x)   (11 + (2 * x))
 

Functions

static bool apply_channel_page_configuration (uint8_t ch_page)
 Apply channel page configuartion to transceiver. More...
 
uint8_t convert_phyTransmitPower_to_reg_value (uint8_t phyTransmitPower_value)
 Converts a phyTransmitPower value to a register value. More...
 
static FLASH_DECLARE (uint8_t tx_pwr_table_NA[TX_PWR_TABLE_SIZE]) = { TX_PWR_TABLE_CHINA }
 Tx power table in flash. More...
 
void init_tal_pib (void)
 Initialize the TAL PIB. More...
 
static void limit_tx_pwr (void)
 Limit the phyTransmitPower to the trx limits. More...
 
retval_t tal_pib_get (uint8_t attribute, uint8_t *value)
 
retval_t tal_pib_set (uint8_t attribute, pib_value_t *value)
 
void write_all_tal_pib_to_trx (void)
 Write all shadow PIB variables to the transceiver. More...