ot::NetworkData::RoutePreferenceToValue() function
Converts a route preference to a 2-bit unsigned value. The @p aPref MUST be valid (value from `RoutePreference` enumeration), or the behavior is undefined.
Syntax
inline uint8_t RoutePreferenceToValue(int8_t aPref); Arguments
aPref
The route preference to convert.
Return value
The 2-bit unsigned value representing @p aPref.
ot::NetworkData::RoutePreferenceToValue() is called by 5 functions and calls 1 function:
![]()
ot::NetworkData::RoutePreferenceToValue()
ot::NetworkData::RoutePreferenceToValue():
![]()
ot::NetworkData::RoutePreferenceToValue()