ble_svc_prox_defs variable
Syntax
static const struct ble_gatt_svc_def ble_svc_prox_defs[] = {
{
.type = BLE_GATT_SVC_TYPE_PRIMARY,
.uuid = BLE_UUID16_DECLARE(BLE_SVC_LINK_LOSS_UUID16),
.characteristics = (struct ble_gatt_chr_def[])
{ {
.uuid = BLE_UUID16_DECLARE(BLE_SVC_PROX_CHR_UUID16_ALERT_LVL),
.access_cb = ble_svc_prox_link_loss_access,
.val_handle = &ble_svc_prox_link_loss_val_handle,
.flags = BLE_GATT_CHR_F_WRITE | BLE_GATT_CHR_F_NOTIFY,
}, {
0,
}
},
},
{
.type = BLE_GATT_SVC_TYPE_PRIMARY,
.uuid = BLE_UUID16_DECLARE(BLE_SVC_IMMEDIATE_ALERT_UUID16),
.characteristics = (struct ble_gatt_chr_def[])
{ {
.uuid = BLE_UUID16_DECLARE(BLE_SVC_PROX_CHR_UUID16_ALERT_LVL),
.access_cb = ble_svc_prox_imm_alert_access,
.val_handle = &ble_svc_prox_immediate_alert_loc_val_handle,
.flags = BLE_GATT_CHR_F_WRITE | BLE_GATT_CHR_F_NOTIFY,
}, {
0,
}
},
},
{
.type = BLE_GATT_SVC_TYPE_PRIMARY,
.uuid = BLE_UUID16_DECLARE(BLE_SVC_TX_POWER_UUID16),
.characteristics = (struct ble_gatt_chr_def[])
{ {
.uuid = BLE_UUID16_DECLARE(BLE_SVC_PROX_CHR_UUID16_TX_PWR_LVL),
.access_cb = ble_svc_prox_tx_pwr_access,
.val_handle = &ble_svc_prox_tx_pwr_lvl_val_handle,
.flags = BLE_GATT_CHR_F_READ,
.descriptors = (struct ble_gatt_dsc_def[])
{
{
.uuid = BLE_UUID16_DECLARE(BLE_SVC_PROX_DSC_UUID16_PRSNTN_FORMAT),
.att_flags = BLE_ATT_F_READ,
.access_cb = ble_svc_prox_tx_pwr_access,
}, {
0,
}
},
}, {
0,
}
},
},
{
0,
},
};