This file handles the TAL PIB attributes, set/get and initialization.
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 "ieee_const.h"
#include "tal_constants.h"
#include "tal_pib.h"
#include "at86rf212b.h"
#include "tal_internal.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... | |
static 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_EU } |
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... | |
static void | set_default_tx_pwr (void) |
Set the default Power Values For Respective Pages and Channels. More... | |
retval_t | tal_pib_set (uint8_t attribute, pib_value_t *value) |
Sets a TAL PIB attribute. More... | |
void | write_all_tal_pib_to_trx (void) |
Write all shadow PIB variables to the transceiver. More... | |