Energy Detection Demo application implementation.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "config.h"
#include "phy.h"
#include "sys.h"
#include "nwk.h"
#include "sysTimer.h"
#include "sio2host.h"
#include "led.h"
#include "sysclk.h"
#include "asf.h"
Typedefs | |
typedef enum AppState_t | AppState_t |
Functions | |
static void | APP_TaskHandler (void) |
static void | appInit (void) |
static void | appPrintEdValues (void) |
static void | appScanTimerHandler (SYS_Timer_t *timer) |
int | main (void) |
Variables | |
static uint8_t | appEdValue [APP_LAST_CHANNEL-APP_FIRST_CHANNEL+1] |
static SYS_Timer_t | appScanTimer |
static AppState_t | appState = APP_STATE_INITIAL |
typedef enum AppState_t AppState_t |
enum AppState_t |
|
static |
References APP_FIRST_CHANNEL, APP_STATE_INITIAL, APP_STATE_MEASURE_ED, APP_STATE_WAIT_SCAN_TIMER, appEdValue, appInit(), appPrintEdValues(), appState, i, PHY_EdReq(), and PHY_SetChannel().
Referenced by main().
|
static |
References APP_SCAN_INTERVAL, APP_STATE_MEASURE_ED, appScanTimerHandler(), appState, SYS_Timer_t::handler, SYS_Timer_t::interval, SYS_Timer_t::mode, PHY_SetRxState(), SYS_TIMER_PERIODIC_MODE, and SYS_TimerStart().
Referenced by APP_TaskHandler().
|
static |
References appEdValue, i, PHY_RSSI_BASE_VAL, and sio2host_putchar().
Referenced by APP_TaskHandler().
|
static |
References APP_STATE_MEASURE_ED, and appState.
Referenced by appInit().
int main | ( | void | ) |
|
static |
Referenced by APP_TaskHandler(), and appPrintEdValues().
|
static |
|
static |
Referenced by APP_TaskHandler(), appInit(), and appScanTimerHandler().