HF-TMC51x0 Driver (TMC5130 & TMC5160) 0.1.0-dev
Hardware Agnostic C++ Driver for the TMC51x0 (TMC5130 & TMC5160)
Loading...
Searching...
No Matches
PairingSecretParser Namespace Reference

Compile-time hex string to byte array parser. More...

Functions

constexpr uint8_t HexCharToNibble (char c) noexcept
 Convert a single hex character to its numeric value (0-15)
 
constexpr uint8_t HexByte (const char *s, size_t i) noexcept
 Convert two hex characters at position i*2 to a single byte.
 

Detailed Description

Compile-time hex string to byte array parser.

Converts a 32-character hex string to 16 bytes at compile time.

Function Documentation

◆ HexByte()

constexpr uint8_t PairingSecretParser::HexByte ( const char * s,
size_t i )
constexprnoexcept

Convert two hex characters at position i*2 to a single byte.

Here is the call graph for this function:

◆ HexCharToNibble()

constexpr uint8_t PairingSecretParser::HexCharToNibble ( char c)
constexprnoexcept

Convert a single hex character to its numeric value (0-15)

Here is the caller graph for this function: