This file implements functions for initializing TAL.
Copyright (c) 2013-2018 Microchip Technology Inc. and its subsidiaries.
#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include "pal.h"
#include "return_val.h"
#include "tal.h"
#include "ieee_const.h"
#include "tal_pib.h"
#include "tal_irq_handler.h"
#include "stack_config.h"
#include "bmm.h"
#include "qmm.h"
#include "tal_internal.h"
#include "tal_constants.h"
#include "at86rf212b.h"
#include "tal_config.h"
#include "mac_build_config.h"
#include "sal_types.h"
#include "stb.h"
Macros | |
#define | P_ON_TO_CLKM_ATTEMPTS |
#define | SLEEP_TO_TRX_OFF_ATTEMPTS |
#define | TRX_POLL_WAIT_TIME_US (100) |
Functions | |
static retval_t | internal_tal_reset (bool set_default_pib) |
Internal TAL reset function. More... | |
void | tal_generate_rand_seed (void) |
Generates a 16-bit random number used as initial seed for srand() More... | |
retval_t | tal_init (void) |
Initializes the TAL. More... | |
retval_t | tal_reset (bool set_default_pib) |
Resets TAL state machine and sets the default PIB values if requested. More... | |
static retval_t | tal_timer_init (void) |
Initializes all timers used by the TAL module by assigning id's to each of them. More... | |
static void | tal_timers_stop (void) |
Stops all initialized TAL timers. More... | |
static void | trx_config (void) |
Configures the transceiver. More... | |
static retval_t | trx_init (void) |
Initializes the transceiver. More... | |
static retval_t | trx_reset (void) |
Reset transceiver. More... | |