|  | WE310F5
    39.00.000
    | 
BLE utilities. More...
#include <stdio.h>#include <stdlib.h>#include <string.h>#include "m2mb_types.h"#include "m2mb_socket.h"#include "m2mb_status.h"#include "m2mb_ble_driver.h"Go to the source code of this file.
| Functions | |
| VOID | m2mb_ble_bdaddr_to_str (M2MB_BLE_BD_ADDR_T board_address, M2MB_BLE_BOARDSTR_T board_str) | 
| Convert BD address into string format.  More... | |
| M2MB_STATUS_T | m2mb_ble_str_to_bdaddr (char *board_str, M2MB_BLE_BD_ADDR_T *board_address) | 
| Convert BD address into M2MB_BLE_BD_ADDR_T structure format.  More... | |
| M2MB_STATUS_T | m2mb_ble_check_hex_string (INT8 *str) | 
| Checks the input HEX string is valid or not.  More... | |
| VOID | m2mb_ble_hexStrToByteArray (UINT16 *len, UINT8 *hexStr, UINT8 *byteArray) | 
| Converts HEX string to byte array.  More... | |
| VOID | m2mb_ble_ByteArrayToHexStr (UINT8 *byteArray, UINT16 byteArrayLen, UINT8 *hexStr) | 
| Converts byte array to HEX string.  More... | |
| VOID | m2mb_ble_uuid16_StrToByteArray (char *hexstring, M2MB_BLE_UUID_16_T *uuid) | 
| Converts 16 bit UUID HEX string to byte array.  More... | |
| VOID | m2mb_ble_uuid128_StrToByteArray (char *hexstring, M2MB_BLE_UUID_128_T *uuid) | 
| Converts 128 bit UUID HEX string to byte array.  More... | |
BLE utilities.
epl/inc/wireless/ble/m2mb_ble_util.h
This file contains the BLE utility APIs.
Definition in file m2mb_ble_util.h.
| VOID m2mb_ble_bdaddr_to_str | ( | M2MB_BLE_BD_ADDR_T | board_address, | 
| M2MB_BLE_BOARDSTR_T | board_str | ||
| ) | 
Convert BD address into string format.
This API is used to convert BD address into string format.
| [in] | board_address | BLE address in M2MB_BLE_BD_ADDR_T format | 
| [out] | board_str | BLE address in string format | 
m2mb_ble_bdaddr_to_str(bd_addr, bd_addr_str);
Converts byte array to HEX string.
This API is used to convert byte array to HEX string.
| [in] | byteArray | byte array | 
| [in] | byteArrayLen | number of bytes in byte array to be converted to HEX string | 
| [out] | hexStr | HEX string | 
m2mb_ble_ByteArrayToHexStr(byte_array, length, hex_str);
| M2MB_STATUS_T m2mb_ble_check_hex_string | ( | INT8 * | str | ) | 
Checks the input HEX string is valid or not.
This API is used to checks the input HEX string is valid or not.
| [in] | str | HEX string | 
m2mb_ble_check_hex_string(hex_str);
Converts HEX string to byte array.
This API is used to convert HEX string to byte array.
| [out] | len | number of bytes converted into byte array from HEX string | 
| [in] | hexStr | HEX string | 
| [out] | byteArray | byte array | 
m2mb_ble_hexStrToByteArray(&length, hex_str, byte_array);
| M2MB_STATUS_T m2mb_ble_str_to_bdaddr | ( | char * | board_str, | 
| M2MB_BLE_BD_ADDR_T * | board_address | ||
| ) | 
Convert BD address into M2MB_BLE_BD_ADDR_T structure format.
This API is used to convert BD address into M2MB_BLE_BD_ADDR_T structure format.
| [in] | board_str | BLE address in string format | 
| [out] | board_address | BLE address in M2MB_BLE_BD_ADDR_T format | 
m2mb_ble_str_to_bdaddr(bd_addr_str, &bd_addr);
| VOID m2mb_ble_uuid128_StrToByteArray | ( | char * | hexstring, | 
| M2MB_BLE_UUID_128_T * | uuid | ||
| ) | 
Converts 128 bit UUID HEX string to byte array.
This API is used to convert 128 bit UUID HEX string to byte array.
| [in] | hexstring | HEX string | 
| [out] | uuid | uuid of strcut type M2MB_BLE_UUID_128_T | 
m2mb_ble_uuid16_StrToByteArray(hex_str, &uuid);
| VOID m2mb_ble_uuid16_StrToByteArray | ( | char * | hexstring, | 
| M2MB_BLE_UUID_16_T * | uuid | ||
| ) | 
Converts 16 bit UUID HEX string to byte array.
This API is used to convert 16 bit UUID HEX string to byte array.
| [in] | hexstring | HEX string | 
| [out] | uuid | uuid of strcut type M2MB_BLE_UUID_16_T | 
m2mb_ble_uuid16_StrToByteArray(hex_str, &uuid);