This module handles the Peer search Initiation Process.
Modules | |
Configuration Mode | |
This Module handles the Functionalities of Configuration Mode. | |
Macros | |
#define | MAX_NUMBER_PEER_REQ_RETRY (0xFF) |
#define | PEER_REQUEST_SEND_INTERVAL_IN_MICRO_SEC (50000) |
Enumerations | |
enum | peer_search_initiator_state_t { PEER_REQ_SEND, PEER_RSP_RCVD, NUM_PEER_SEARCH_INITIATOR_STATES } |
Functions | |
void | peer_search_initiator_exit (void) |
Function to exit peer search initiator exit state. More... | |
void | peer_search_initiator_init (void *arg) |
Application task to start peer search. More... | |
void | peer_search_initiator_rx_cb (frame_info_t *frame) |
Callback that is called if data has been received by trx. More... | |
void | peer_search_initiator_set_sub_state (uint8_t state, void *arg) |
Function to set the sub state of state machine. More... | |
void | peer_search_initiator_task (void) |
Application task handling peer search. More... | |
void | peer_search_initiator_tx_done_cb (retval_t status, frame_info_t *frame) |
Callback that is called once tx is done in peer search initiator state. More... | |
Variables | |
uint16_t | peer_search_receptor_arg_t::my_short_addr |
uint64_t | peer_search_receptor_arg_t::peer_ieee_addr |
void(* | peer_state_function_t::peer_state_exit )(void) |
void(* | peer_state_function_t::peer_state_init )(void *arg) |
void(* | peer_state_function_t::peer_state_rx_frame_cb )(frame_info_t *frame) |
void(* | peer_state_function_t::peer_state_task )(void) |
void(* | peer_state_function_t::peer_state_tx_frame_done_cb )(retval_t status, frame_info_t *frame) |
#define MAX_NUMBER_PEER_REQ_RETRY (0xFF) |
Referenced by peer_req_send_task().
#define PEER_REQUEST_SEND_INTERVAL_IN_MICRO_SEC (50000) |
Referenced by peer_req_send_task().
void peer_search_initiator_exit | ( | void | ) |
Function to exit peer search initiator exit state.
References node_info, and node_ib_t::sub_state.
void peer_search_initiator_init | ( | void * | arg | ) |
Application task to start peer search.
arg | arguments to start the peer search |
References app_led_event(), CONFIG_MODE_TX_PWR, node_ib_t::configure_mode, LED_EVENT_START_PEER_SEARCH, node_ib_t::main_state, node_info, PA_EXT_DISABLE, PEER_SEARCH_RANGE_TX, node_ib_t::peer_short_addr, phyTransmitPower, print_event(), PRINT_PEER_SEARCH_INITATED, REGISTER_VALUE, seq_num, and tal_pib_set().
void peer_search_initiator_rx_cb | ( | frame_info_t * | frame | ) |
Callback that is called if data has been received by trx.
frame | Pointer to received frame |
References node_info, and node_ib_t::sub_state.
void peer_search_initiator_set_sub_state | ( | uint8_t | state, |
void * | arg | ||
) |
Function to set the sub state of state machine.
state | Sub state to be set |
arg | arguments to be set as part of set sub state |
References new_state, node_info, peer_state_function_t::peer_state_exit, peer_state_function_t::peer_state_init, and node_ib_t::sub_state.
Referenced by peer_req_send_rx_cb().
void peer_search_initiator_task | ( | void | ) |
Application task handling peer search.
References node_info, and node_ib_t::sub_state.
void peer_search_initiator_tx_done_cb | ( | retval_t | status, |
frame_info_t * | frame | ||
) |
Callback that is called once tx is done in peer search initiator state.
status | Status of the transmission procedure |
frame | Pointer to the transmitted frame structure |
References node_info, status, and node_ib_t::sub_state.
uint16_t peer_search_receptor_arg_t::my_short_addr |
Referenced by peer_search_receptor_init(), and wait_for_event_rx_cb().
uint64_t peer_search_receptor_arg_t::peer_ieee_addr |
Referenced by peer_rsp_send_init(), and wait_for_event_rx_cb().
void(* peer_state_function_t::peer_state_exit)(void) |
Referenced by peer_search_initiator_set_sub_state().
void(* peer_state_function_t::peer_state_init)(void *arg) |
Referenced by peer_search_initiator_set_sub_state(), and peer_search_receptor_set_sub_state().
void(* peer_state_function_t::peer_state_rx_frame_cb)(frame_info_t *frame) |
void(* peer_state_function_t::peer_state_task)(void) |
Referenced by peer_search_receptor_task().
void(* peer_state_function_t::peer_state_tx_frame_done_cb)(retval_t status, frame_info_t *frame) |