Receptor functionalities in Peer Search Process - Performance Analyzer application of AT86RF215.
Copyright (c) 2015-2018 Microchip Technology Inc. and its subsidiaries.
#include <stdlib.h>
#include "tal.h"
#include "tal_helper_2.h"
#include "ieee_const.h"
#include "app_init.h"
#include "app_frame_format.h"
#include "app_peer_search.h"
#include "user_interface.h"
Macros | |
#define | PEER_RESPONSE_TIMEOUT_IN_MICRO_SEC (200000) |
Enumerations | |
enum | peer_search_receptor_state_t { PEER_RSP_SEND, WAIT_FOR_PEER_CONF, PEER_SEARCH_RECEPTOR_SUCCESS, NUM_PEER_SEARCH_RECEPTOR_STATES } |
Functions | |
static void | app_peer_conf_tmr_handler_cb (void *parameter) |
Timer handler for supporting peer search. More... | |
static void | peer_rsp_send_init (trx_id_t trx, void *arg) |
Application task handling peer search. More... | |
static void | peer_rsp_send_tx_done_cb (trx_id_t trx, retval_t status, frame_info_t *frame) |
Callback that is called once tx is done in PEER_RSP_SEND state. More... | |
void | peer_search_receptor_exit (trx_id_t trx) |
Function to exit peer search receptor state. More... | |
void | peer_search_receptor_init (trx_id_t trx, void *arg) |
Application task to start peer search. More... | |
void | peer_search_receptor_rx_cb (trx_id_t trx, frame_info_t *frame) |
Callback that is called if data has been received by trx in peer search receptor state. More... | |
void | peer_search_receptor_set_sub_state (trx_id_t trx, uint8_t state, void *arg) |
Function to set the sub state of state machine. More... | |
void | peer_search_receptor_task (trx_id_t trx) |
Application task handling peer search. More... | |
void | peer_search_receptor_tx_done_cb (trx_id_t trx, retval_t status, frame_info_t *frame) |
Callback that is called once tx is done in peer search receptor state. More... | |
static int | send_peer_rsp (trx_id_t trx, uint64_t *dst_addr) |
Send peer response. More... | |
static void | wait_for_conf_exit (trx_id_t trx) |
Function to exit wait for peer search conf state. More... | |
static void | wait_for_conf_init (trx_id_t trx, void *arg) |
Function to initialize wait for peer search conf state. More... | |
static void | wait_for_conf_rx_cb (trx_id_t trx, frame_info_t *mac_frame_info) |
Callback that is called once tx is done in wait for peer search conf state. More... | |
Variables | |
static peer_state_function_t const | peer_search_receptor_state_table [NUM_PEER_SEARCH_RECEPTOR_STATES] |
static uint8_t | seq_num [NUM_TRX] |