ot::Preference::To2BitUint() method
Converts a signed preference value to its corresponding 2-bit `uint8_t` value. A positive @p aPrf is mapped to "High Preference", a negative @p aPrf is mapped to "Low Preference", and zero @p aPrf is mapped to "Medium Preference".
Syntax
static uint8_t To2BitUint(int8_t aPrf); Arguments
aPrf
The preference to convert to `uint8_t`.
Return value
The 2-bit unsigned value representing @p aPrf.