Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages

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().

Enumerator
PEER_REQ_SEND 
PEER_RSP_RCVD 
NUM_PEER_SEARCH_INITIATOR_STATES 

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)
void peer_search_initiator_rx_cb ( frame_info_t frame)

Callback that is called if data has been received by trx.

Parameters
framePointer 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.

Parameters
stateSub state to be set
argarguments 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.

Parameters
statusStatus of the transmission procedure
framePointer to the transmitted frame structure

References node_info, and node_ib_t::sub_state.

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)