Demo HCI Implementation for WiMOD-LR Devices  V2.0.3
StrToIntConverter.cpp File Reference
#include "StrToIntConverter.h"
#include <stdlib.h>
#include <string.h>
Include dependency graph for StrToIntConverter.cpp:

Functions

void StrToIntConverter_convertHexStrToArray (char *inputString, uint8_t *targetArray, uint8_t numberOfEntries)
 Convert a String containing hex numbers into an C array. More...
 

Function Documentation

◆ StrToIntConverter_convertHexStrToArray()

void StrToIntConverter_convertHexStrToArray ( char *  inputString,
uint8_t *  targetArray,
uint8_t  numberOfEntries 
)

Convert a String containing hex numbers into an C array.

Parameters
inputStringThe C String that contains the numbers e.g. "12 0x34 AB"
targetArrayThe array where to store the converted numbers
numberOfEntriesThe number of numbers contained in the string (e.g. 3)