WE310F5  39.00.000
m2mb_ble_util.h
Go to the documentation of this file.
1 /*===============================================================================================*/
2 /* >>> Copyright (C) Telit Communications S.p.A. Italy All Rights Reserved. <<< */
24 #ifndef M2M_S2W_BLE_UTIL_H
25 #define M2M_S2W_BLE_UTIL_H
26 
27 #include <stdio.h>
28 #include <stdlib.h>
29 #include <string.h>
30 #include "m2mb_types.h"
31 #include "m2mb_socket.h"
32 #include "m2mb_status.h"
33 #include "m2mb_ble_driver.h"
34 
44 /*-----------------------------------------------------------------------------------------------*/
45 
50 /*-----------------------------------------------------------------------------------------------*/
51 
52 
76 
99 M2MB_STATUS_T m2mb_ble_str_to_bdaddr(char *board_str, M2MB_BLE_BD_ADDR_T *board_address);
100 
122 
147 VOID m2mb_ble_hexStrToByteArray(UINT16 *len, UINT8 *hexStr, UINT8 *byteArray);
148 
173 VOID m2mb_ble_ByteArrayToHexStr(UINT8 *byteArray, UINT16 byteArrayLen, UINT8 *hexStr);
174 
198 
222 
226 /*-----------------------------------------------------------------------------------------------*/
227 
228 #endif
VOID m2mb_ble_uuid128_StrToByteArray(char *hexstring, M2MB_BLE_UUID_128_T *uuid)
Converts 128 bit UUID HEX string to byte array.
M2MB_STATUS_T m2mb_ble_check_hex_string(INT8 *str)
Checks the input HEX string is valid or not.
Structure for 128 bit UUID.
unsigned char UINT8
Definition: m2mb_types.h:86
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.
general Socket support
INT32 M2MB_STATUS_T
Definition: m2mb_status.h:97
unsigned short UINT16
Definition: m2mb_types.h:87
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.
signed char INT8
Definition: m2mb_types.h:80
void VOID
Definition: m2mb_types.h:74
BLE driver functionality.
M2M base status (ver. )
Structure to store BLE address.
INT8 M2MB_BLE_BOARDSTR_T[16]
Type definition to hold Bluetooth device name in string format.
VOID m2mb_ble_ByteArrayToHexStr(UINT8 *byteArray, UINT16 byteArrayLen, UINT8 *hexStr)
Converts byte array to HEX string.
M2M base types (ver. )
VOID m2mb_ble_hexStrToByteArray(UINT16 *len, UINT8 *hexStr, UINT8 *byteArray)
Converts HEX string to byte array.
VOID m2mb_ble_uuid16_StrToByteArray(char *hexstring, M2MB_BLE_UUID_16_T *uuid)
Converts 16 bit UUID HEX string to byte array.
Structure for 16 bit UUID.