Function definition.
More...
Function definition.
|
ble_status_t | R_BLE_SERVS_Init (void) |
| Initialize profile common server library. More...
|
|
ble_status_t | R_BLE_SERVS_RegisterServer (const st_ble_servs_info_t *p_serv) |
| Register server service information to profile common server library. More...
|
|
ble_status_t | R_BLE_SERVS_SendHdlVal (const st_ble_servs_char_info_t *p_attr, uint16_t conn_hdl, const void *p_app_value, bool is_notify) |
| Send notification or indication. More...
|
|
ble_status_t | R_BLE_SERVS_GetChar (const st_ble_servs_char_info_t *p_attr, uint16_t conn_hdl, void *p_app_value) |
| Get characteristic value from GATT database. More...
|
|
ble_status_t | R_BLE_SERVS_SetChar (const st_ble_servs_char_info_t *p_attr, uint16_t conn_hdl, const void *p_app_value) |
| Set characteristic value to GATT database. More...
|
|
ble_status_t | R_BLE_SERVS_GetDesc (const st_ble_servs_desc_info_t *p_attr, uint16_t conn_hdl, void *p_app_value) |
| Get descriptor value from GATT database. More...
|
|
ble_status_t | R_BLE_SERVS_SetDesc (const st_ble_servs_desc_info_t *p_attr, uint16_t conn_hdl, const void *p_app_value) |
| Set descriptor value to GATT database. More...
|
|
void | R_BLE_SERVS_GattsCb (uint16_t type, ble_status_t result, st_ble_gatts_evt_data_t *p_data) |
| Callback function used for GATT server event. More...
|
|
void | R_BLE_SERVS_VsCb (uint16_t type, ble_status_t result, st_ble_vs_evt_data_t *p_data) |
| Callback function used for vender specific event. More...
|
|
◆ ble_servs_attr_decode_t
Decode function. Convert data from GATT database value to application data value.
- Parameters
-
[out] | p_app_value | Application data value of characteristic or descriptor. |
[in] | p_gatt_value | GATT database value of characteristic or descriptor. |
◆ ble_servs_attr_encode_t
Encode function. Convert data from application data value to GATT database value.
- Parameters
-
[in] | p_app_value | Application data value of characteristic or descriptor. |
[out] | p_gatt_value | GATT database value of characteristic or descriptor. |
◆ R_BLE_SERVS_Init()
Initialize profile common server library.
- Returns
- See ble_status_t
◆ R_BLE_SERVS_RegisterServer()
Register server service information to profile common server library.
- Parameters
-
[in] | p_serv | Server service to be registered. |
- Returns
- See ble_status_t
◆ R_BLE_SERVS_SendHdlVal()
Send notification or indication.
- Parameters
-
[in] | p_attr | Characteristic sending notification or indication. |
[in] | conn_hdl | Connection handle. |
[in] | p_app_value | Value to be sent on notification or indication. |
[in] | is_notify | Defines notification or indication.
true = notification
false = indication |
- Returns
- See ble_status_t
◆ R_BLE_SERVS_GetChar()
Get characteristic value from GATT database.
- Parameters
-
[in] | p_attr | Characteristic getting value. |
[in] | conn_hdl | Connection handle. |
[out] | p_app_value | Characteristic value getting from GATT database. |
- Returns
- See ble_status_t
◆ R_BLE_SERVS_SetChar()
Set characteristic value to GATT database.
- Parameters
-
[in] | p_attr | Characteristic setting value. |
[in] | conn_hdl | Connection handle. |
[in] | p_app_value | Characteristic value setting to GATT database. |
- Returns
- See ble_status_t
◆ R_BLE_SERVS_GetDesc()
Get descriptor value from GATT database.
- Parameters
-
[in] | p_attr | Descriptor getting value. |
[in] | conn_hdl | Connection handle. |
[out] | p_app_value | Descriptor value getting from GATT database. |
- Returns
- See ble_status_t
◆ R_BLE_SERVS_SetDesc()
Set descriptor value to GATT database.
- Parameters
-
[in] | p_attr | Descriptor setting value. |
[in] | conn_hdl | Connection handle. |
[in] | p_app_value | Descriptor value setting to GATT database. |
- Returns
- See ble_status_t
◆ R_BLE_SERVS_GattsCb()
Callback function used for GATT server event.
- Parameters
-
[in] | type | Type of event. |
[in] | result | Result of request sent to server. |
[in] | p_data | Event data. |
You need to call this function to enable all server callback event included in profile.
◆ R_BLE_SERVS_VsCb()
Callback function used for vender specific event.
- Parameters
-
[in] | type | Type of event. |
[in] | result | Result of request sent to server. |
[in] | p_data | Event data. |
You need to call this function if you use flow control callback.