Route discovery interface.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
Functions | |
void | nwkRouteDiscoveryInit (void) |
Initializes the Route Discovery module. More... | |
bool | nwkRouteDiscoveryReplyReceived (NWK_DataInd_t *ind) |
void | nwkRouteDiscoveryRequest (NwkFrame_t *frame) |
bool | nwkRouteDiscoveryRequestReceived (NWK_DataInd_t *ind) |
void nwkRouteDiscoveryInit | ( | void | ) |
Initializes the Route Discovery module.
References SYS_Timer_t::handler, SYS_Timer_t::interval, SYS_Timer_t::mode, NWK_ROUTE_DISCOVERY_TABLE_SIZE, NWK_ROUTE_DISCOVERY_TIMER_INTERVAL, nwkRouteDiscoveryTimerHandler(), SYS_TIMER_INTERVAL_MODE, and NwkRouteDiscoveryTableEntry_t::timeout.
Referenced by NWK_Init().
bool nwkRouteDiscoveryReplyReceived | ( | NWK_DataInd_t * | ind | ) |
References NwkIb_t::addr, NWK_DataInd_t::data, NwkCommandRouteReply_t::dstAddr, NwkCommandRouteReply_t::forwardLinkQuality, if(), NWK_DataInd_t::lqi, NwkCommandRouteReply_t::multicast, nwkIb, nwkRouteDiscoveryFindEntry(), nwkRouteDiscoverySendReply(), nwkRouteDiscoveryUpdateLq(), nwkRouteUpdateEntry(), NwkCommandRouteReply_t::reverseLinkQuality, NWK_DataInd_t::size, NWK_DataInd_t::srcAddr, and NwkCommandRouteReply_t::srcAddr.
Referenced by nwkRxSeriveDataInd().
void nwkRouteDiscoveryRequest | ( | NwkFrame_t * | frame | ) |
References NwkIb_t::addr, NwkRouteDiscoveryTableEntry_t::dstAddr, NwkFrame_t::header, NwkFrameHeader_t::multicast, NwkRouteDiscoveryTableEntry_t::multicast, NWK_BROADCAST_ADDR, NWK_NO_ROUTE_STATUS, NWK_RD_STATE_WAIT_FOR_ROUTE, NWK_ROUTE_DISCOVERY_BEST_LINK_QUALITY, NwkFrameHeader_t::nwkDstAddr, NwkFrameHeader_t::nwkFcf, nwkIb, nwkRouteDiscoveryFindEntry(), nwkRouteDiscoveryNewEntry(), nwkRouteDiscoverySendRequest(), nwkTxConfirm(), NwkRouteDiscoveryTableEntry_t::senderAddr, NwkRouteDiscoveryTableEntry_t::srcAddr, and NwkFrame_t::state.
Referenced by nwkRoutePrepareTx().
bool nwkRouteDiscoveryRequestReceived | ( | NWK_DataInd_t * | ind | ) |
References NwkIb_t::addr, NWK_DataInd_t::data, NwkCommandRouteRequest_t::dstAddr, if(), NwkCommandRouteRequest_t::linkQuality, NWK_DataInd_t::lqi, NwkCommandRouteRequest_t::multicast, NWK_ROUTE_DISCOVERY_BEST_LINK_QUALITY, NWK_ROUTE_NON_ROUTING, nwkIb, nwkRouteDiscoveryFindEntry(), nwkRouteDiscoveryNewEntry(), nwkRouteDiscoverySendReply(), nwkRouteDiscoverySendRequest(), nwkRouteDiscoveryUpdateLq(), nwkRouteUpdateEntry(), NWK_DataInd_t::size, NWK_DataInd_t::srcAddr, and NwkCommandRouteRequest_t::srcAddr.
Referenced by nwkRxSeriveDataInd().