Microchip® Advanced Software Framework

tal_ed.c File Reference

This file implements ED Scan.

This file implements helper functions to configure transceiver.

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

#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
#include "pal.h"
#include "return_val.h"
#include "tal.h"
#include "ieee_const.h"
#include "tal_constants.h"
#include "at86rf233.h"
#include "tal_internal.h"
#include "tal_irq_handler.h"
#include "mac_build_config.h"

Macros

#define CALCULATE_SYMBOL_TIME_SCAN_DURATION(SD)   (aBaseSuperframeDuration * ((1UL << (SD)) + 1))
 
#define CLIP_VALUE_REG   (56)
 

Functions

void ed_scan_done (void)
 Scan done. More...
 
retval_t tal_ed_start (uint8_t scan_duration)
 Starts ED Scan. More...
 
static void trx_ed_irq_handler_cb (void)
 ED Scan Interrupt. More...
 

Variables

static uint8_t max_ed_level
 The peak_ed_level is the maximum ED value received from the transceiver for the specified Scan Duration. More...
 
static uint32_t sampler_counter