Go to the source code of this file.
Functions | |
int32_t | le_hex_StringToBinary (const char *stringPtr, uint32_t stringLength, uint8_t *binaryPtr, uint32_t binarySize) |
int32_t | le_hex_BinaryToString (const uint8_t *binaryPtr, uint32_t binarySize, char *stringPtr, uint32_t stringSize) |
Legato Hex string API include file.
Copyright (C) Sierra Wireless, Inc. 2014. All rights reserved. Use of this work is subject to license.
int32_t le_hex_BinaryToString | ( | const uint8_t * | binaryPtr, |
uint32_t | binarySize, | ||
char * | stringPtr, | ||
uint32_t | stringSize | ||
) |
Converts binary to hex string format.
[in] | binaryPtr | binary array to convert |
[in] | binarySize | size of binary array |
[out] | stringPtr | hex string array, terminated with '\0'. |
[in] | stringSize | size of string array |
int32_t le_hex_StringToBinary | ( | const char * | stringPtr, |
uint32_t | stringLength, | ||
uint8_t * | binaryPtr, | ||
uint32_t | binarySize | ||
) |
Converts hex string to binary format.
[in] | stringPtr | string to convert, terminated with '\0'. |
[in] | stringLength | string length |
[out] | binaryPtr | binary result |
[in] | binarySize | size of the binary table |