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

◆ parse_hex_u16()

static bool parse_hex_u16 ( char const *  s,
uint16_t *  value 
)
inlinestatic

#include <include/zigbee/zigbee_app_utils.h>

Parse a hex string to uint16_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