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

This service defines how the information about an upcoming DST change can be exposed using the Generic Attribute Profile (GATT). More...

Detailed Description

This service defines how the information about an upcoming DST change can be exposed using the Generic Attribute Profile (GATT).

Data Structures

struct  st_ble_ndcs_tdst_t
 Time with DST value structure. More...
 

Enumerations

enum  e_ble_ndcs_char_idx_t { BLE_NDCS_TDST_IDX }
 Next DST Change Service characteristic Index. More...
 
enum  e_ble_ndcs_event_t { BLE_NDCS_EVENT_TDST_READ_REQ = BLE_SERVS_ATTR_EVENT(BLE_NDCS_TDST_IDX, BLE_SERVS_READ_REQ) }
 Next DST Change Service event type. More...
 

Functions

ble_status_t R_BLE_NDCS_SetTdst (const st_ble_ndcs_tdst_t *p_value)
 Set Time with DST characteristic value to the local GATT database. More...
 
ble_status_t R_BLE_NDCS_GetTdst (st_ble_ndcs_tdst_t *p_value)
 Get Time with DST characteristic value from the local GATT database. More...
 
ble_status_t R_BLE_NDCS_Init (ble_servs_app_cb_t cb)
 Initialize Next DST Change Service service. More...
 

Enumeration Type Documentation

◆ e_ble_ndcs_char_idx_t

Next DST Change Service characteristic Index.

◆ e_ble_ndcs_event_t

Next DST Change Service event type.

Function Documentation

◆ R_BLE_NDCS_SetTdst()

ble_status_t R_BLE_NDCS_SetTdst ( const st_ble_ndcs_tdst_t p_value)

Set Time with DST characteristic value to the local GATT database.

Parameters
[in]p_valueCharacteristic value to set.
Returns
ble_status_t

◆ R_BLE_NDCS_GetTdst()

ble_status_t R_BLE_NDCS_GetTdst ( st_ble_ndcs_tdst_t p_value)

Get Time with DST characteristic value from the local GATT database.

Parameters
[in]p_valueOutput location for the acquired descriptor value.
Returns
ble_status_t

◆ R_BLE_NDCS_Init()

ble_status_t R_BLE_NDCS_Init ( ble_servs_app_cb_t  cb)

Initialize Next DST Change Service service.

Parameters
[in]cbService callback.
Returns
ble_status_t