Bluetooth Management & Utilities

Bluetooth management and utility functions. More...

Data Structures

struct  zos_bt_uuid_t
 Bluetooth UUID. More...
 
struct  zos_bt_address_t
 Bluetooth device address (BD_ADDR) More...
 

Macros

#define ZOS_BT_UUID_INIT_16(val)
 Initialize 16-bit UUID.
 
#define ZOS_BT_UUID_INIT_128(val...)
 Initialize 128-bit UUID.
 
#define ZOS_BT_UUID_INIT_INVALID()
 Invalidate UUID object.
 
#define ZOS_ZERO_BT_ADDRESS   (&(zos_bt_address_t){ .octet = { 0 }, } )
 Macro used for comparing BD_ADDR with zero address.
 
#define ZOS_BT_UUID_DESCRIPTOR_CCC   ZOS_BT_UUID_INIT_16( 0x2902 )
 Client Characteristic Configuration (CCC) Descriptor UUID.
 

Typedefs

typedef uint16_t zos_bt_uuid16_t
 16-bit Bluetooth UUID
 
typedef uint8_t zos_bt_uuid128_t[ZOS_BT_UUID128]
 128-bit Bluetooth UUID
 

Enumerations

enum  zos_bt_uuid_type_t
 Bluetooth UUID type/size.
 

Functions

zos_result_t zn_bt_init (void)
 Initialize Bluetooth. More...
 
zos_result_t zn_bt_deinit (void)
 De-initialize Bluetooth. More...
 
void zn_bt_uuid_to_string (const zos_bt_uuid_t *uuid, char *string, uint32_t size)
 Convert Bluetooth UUID to string. More...
 

Detailed Description

Bluetooth management and utility functions.

Function Documentation

zos_result_t zn_bt_deinit ( void  )

De-initialize Bluetooth.

Returns
zos_result_t result of api call
zos_result_t zn_bt_init ( void  )

Initialize Bluetooth.

Returns
zos_result_t result of api call
Examples:
cloud/ble2bluemix/main.c.
void zn_bt_uuid_to_string ( const zos_bt_uuid_t uuid,
char *  string,
uint32_t  size 
)

Convert Bluetooth UUID to string.

@ param[in] uuid Bluetooth UUID to convert @ param[out] string Pointer to string buffer that will contain the UUID string result @ param[in] size Size of the string buffer

Returns
zos_result_t result of api call