pub unsafe extern "C" fn otThreadGetNextHopAndPathCost(
aInstance: *mut otInstance,
aDestRloc16: u16,
aNextHopRloc16: *mut u16,
aPathCost: *mut u8,
)
Expand description
Gets the next hop and path cost towards a given RLOC16 destination.
Can be used with either @p aNextHopRloc16 or @p aPathCost being NULL indicating caller does not want to get the value.
@param[in] aInstance A pointer to an OpenThread instance. @param[in] aDestRloc16 The RLOC16 of destination. @param[out] aNextHopRloc16 A pointer to return RLOC16 of next hop, 0xfffe if no next hop. @param[out] aPathCost A pointer to return path cost towards destination.