Bluetooth LE Profile API document
Bluetooth LE Profile API document Rev.1.00 [May 22, 2020]
Next DST Change Service Client

This is the client for the Next DST Change Service Service. More...

Detailed Description

This is the client for the Next DST Change Service Service.

Data Structures

struct  st_ble_ndcc_tdst_t
 Time with DST value structure. More...
 
struct  st_ble_ndcc_tdst_attr_hdl_t
 Time with DST attribute handle value. More...
 
struct  st_ble_ndcc_evt_data_t
 Next DST Change Service client event data. More...
 

Macros

#define BLE_NDCC_TDST_UUID   (0x2A11)
 
#define BLE_NDCC_TDST_LEN   (8)
 

Enumerations

enum  e_ble_ndcc_char_idx_t { BLE_NDCC_TDST_IDX }
 Next DST Change Service characteristic ID. More...
 
enum  e_ble_ndcc_event_t { BLE_NDCC_EVENT_TDST_READ_RSP = BLE_SERVC_ATTR_EVENT(BLE_NDCC_TDST_IDX, BLE_SERVC_READ_RSP) }
 Next DST Change Service client event type. More...
 

Functions

ble_status_t R_BLE_NDCC_ReadTdst (uint16_t conn_hdl)
 Read Time with DST characteristic value from the remote GATT database. More...
 
void R_BLE_NDCC_GetTdstAttrHdl (const st_ble_dev_addr_t *p_addr, st_ble_ndcc_tdst_attr_hdl_t *p_hdl)
 Get Time with DST attribute handles. More...
 
ble_status_t R_BLE_NDCC_Init (ble_servc_app_cb_t cb)
 Initialize Next DST Change Service client. More...
 
void R_BLE_NDCC_ServDiscCb (uint16_t conn_hdl, uint8_t serv_idx, uint16_t type, void *p_param)
 Next DST Change Service client discovery callback. More...
 
void R_BLE_NDCC_GetServAttrHdl (const st_ble_dev_addr_t *p_addr, st_ble_gatt_hdl_range_t *p_hdl)
 Get Next DST Change Service client attribute handle. More...
 

Enumeration Type Documentation

◆ e_ble_ndcc_char_idx_t

Next DST Change Service characteristic ID.

◆ e_ble_ndcc_event_t

Next DST Change Service client event type.

Function Documentation

◆ R_BLE_NDCC_ReadTdst()

ble_status_t R_BLE_NDCC_ReadTdst ( uint16_t  conn_hdl)

Read Time with DST characteristic value from the remote GATT database.

Parameters
[in]conn_hdlConnection handle.
Returns
ble_status_t

◆ R_BLE_NDCC_GetTdstAttrHdl()

void R_BLE_NDCC_GetTdstAttrHdl ( const st_ble_dev_addr_t p_addr,
st_ble_ndcc_tdst_attr_hdl_t p_hdl 
)

Get Time with DST attribute handles.

Parameters
[in]p_addrBluetooth device address for the attribute handles.
[out]p_hdlThe pointer to store the retrieved attribute handles.
Returns
ble_status_t

◆ R_BLE_NDCC_Init()

ble_status_t R_BLE_NDCC_Init ( ble_servc_app_cb_t  cb)

Initialize Next DST Change Service client.

Parameters
[in]cbClient callback.
Returns
ble_status_t

◆ R_BLE_NDCC_ServDiscCb()

void R_BLE_NDCC_ServDiscCb ( uint16_t  conn_hdl,
uint8_t  serv_idx,
uint16_t  type,
void *  p_param 
)

Next DST Change Service client discovery callback.

Parameters
[in]conn_hdlConnection handle
[in]serv_idxService instance index.
[in]typeService discovery event type.
[in]p_paramService discovery event parameter.
Returns
ble_status_t

◆ R_BLE_NDCC_GetServAttrHdl()

void R_BLE_NDCC_GetServAttrHdl ( const st_ble_dev_addr_t p_addr,
st_ble_gatt_hdl_range_t p_hdl 
)

Get Next DST Change Service client attribute handle.

Parameters
[in]p_addrBluetooth device address for the attribute handles.
[out]p_hdlThe pointer to store the retrieved attribute handles.