Microchip® Advanced Software Framework

2/src/performance_main.c File Reference
#include <stdlib.h>
#include "tal.h"
#include "tal_helper_2.h"
#include "ieee_const.h"
#include "app_init.h"
#include "perf_api.h"
#include "app_peer_search.h"
#include "app_per_mode.h"
#include "app_range_mode.h"
#include "perf_api_serial_handler.h"
#include "asf.h"
#include "sio2host.h"
#include "sio2ncp.h"
#include "conf_board.h"
#include "performance_main.h"

Data Structures

struct  state_function_t
 This structure forms the jump table to address various main states in this application. More...
 

Functions

void app_alert ()
 
static void app_task (void)
 Application task. More...
 
retval_t app_transmit_frame (trx_id_t trx, uint8_t dst_addr_mode, uint8_t *dst_addr, uint8_t src_addr_mode, uint8_t msdu_handle, uint8_t *payload, uint16_t payload_length, uint8_t ack_req)
 Function to transmit frames as per 802.15.4 std. More...
 
void config_node_ib (trx_id_t trx)
 Function to init the information base for device. More...
 
void get_chat_input (char input)
 
void performance_analyzer_init (void)
 Init function of the Performance Analyzer application. More...
 
void performance_analyzer_task (void)
 This task needs to be called in a while(1) for performing Performance Analyzer tasks. More...
 
void set_main_state (trx_id_t trx, main_state_t state, void *arg)
 Function to set the main state of state machine. More...
 
void tal_ed_end_cb (trx_id_t trx, uint8_t energy_level)
 
void tal_rx_frame_cb (trx_id_t trx, frame_info_t *frame)
 User call back function for frame reception. More...
 
void tal_tx_frame_done_cb (trx_id_t trx, retval_t status, frame_info_t *frame)
 User call back function for frame transmission. More...
 

Variables

volatile node_ib_t node_info [NUM_TRX]
 
static state_function_t const state_table [NUM_MAIN_STATES]
 
static uint8_t storage_buffer [NUM_TRX][LARGE_BUFFER_SIZE]
 

void get_chat_input ( char  input)
void performance_analyzer_init ( void  )

Init function of the Performance Analyzer application.

References INIT, NULL, RF09, RF24, set_main_state(), sio2host_init(), sio2ncp_init(), and WAIT_FOR_EVENT.