Bluetooth LE Profile API document
Bluetooth LE Profile API document Rev.1.00 [May 22, 2020]
Generic Attribute Service Server

The Generic Attribute Service contains generic information of the GATT attributes. More...

Detailed Description

The Generic Attribute Service contains generic information of the GATT attributes.

Data Structures

struct  st_ble_gats_serv_changed_t
 Service Changed value structure. More...
 

Enumerations

enum  st_ble_gats_char_idx_t {
  BLE_GATS_SERV_CHGED_IDX,
  BLE_GATS_SERV_CHGED_CLI_CNFG_IDX
}
 Generic Attribute characteristic Index. More...
 
enum  e_ble_gats_event_t { BLE_GATS_EVENT_SERV_CHGED_HDL_VAL_CNF = BLE_SERVS_ATTR_EVENT(BLE_GATS_SERV_CHGED_IDX, BLE_SERVS_HDL_VAL_CNF) }
 Generic Attribute event type. More...
 

Functions

ble_status_t R_BLE_GATS_IndicateServChanged (uint16_t conn_hdl, const st_ble_gats_serv_changed_t *p_value)
 Send indication of Service Changed characteristic value to the remote device. More...
 
ble_status_t R_BLE_GATS_SetServChangedCliCnfg (const uint16_t *p_value)
 Set Service Changed cli cnfg descriptor value to the local GATT database. More...
 
ble_status_t R_BLE_GATS_GetServChangedCliCnfg (uint16_t *p_value)
 Get Service Changed cli cnfg descriptor value from the local GATT database. More...
 
ble_status_t R_BLE_GATS_Init (ble_servs_app_cb_t cb)
 Initialize Generic Attribute service. More...
 

Enumeration Type Documentation

◆ st_ble_gats_char_idx_t

Generic Attribute characteristic Index.

◆ e_ble_gats_event_t

Generic Attribute event type.

Function Documentation

◆ R_BLE_GATS_IndicateServChanged()

ble_status_t R_BLE_GATS_IndicateServChanged ( uint16_t  conn_hdl,
const st_ble_gats_serv_changed_t p_value 
)

Send indication of Service Changed characteristic value to the remote device.

Parameters
[in]conn_hdlConnection handle.
[in]p_valueCharacteristic value to send.
Returns
ble_status_t

◆ R_BLE_GATS_SetServChangedCliCnfg()

ble_status_t R_BLE_GATS_SetServChangedCliCnfg ( const uint16_t *  p_value)

Set Service Changed cli cnfg descriptor value to the local GATT database.

Parameters
[in]p_valueDescriptor value to set.
Returns
ble_status_t

◆ R_BLE_GATS_GetServChangedCliCnfg()

ble_status_t R_BLE_GATS_GetServChangedCliCnfg ( uint16_t *  p_value)

Get Service Changed cli cnfg descriptor value from the local GATT database.

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

◆ R_BLE_GATS_Init()

ble_status_t R_BLE_GATS_Init ( ble_servs_app_cb_t  cb)

Initialize Generic Attribute service.

Parameters
[in]cbService callback.
Returns
ble_status_t