nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches

◆ parse_hex_u8()

static bool parse_hex_u8 ( char const * s,
uint8_t * value )
inlinestatic

#include <include/zigbee/zigbee_app_utils.h>

Parse a hex string to uint8_t.

The function verifies if input is valid, i.e., if all input characters are valid hex digits. If an invalid character is found then function fails.

Parameters
sPointer to input string.
valuePointer to output value.
Return values
trueif the conversion succeed
falseif the conversion failed