This is the client for the Immediate Alert Service.
More...
This is the client for the Immediate Alert Service.
◆ BLE_IAC_ALERT_LEVEL_LEN
#define BLE_IAC_ALERT_LEVEL_LEN (1) |
Alert Level characteristic value length.
◆ ble_iac_app_cb_t
Immediate Alert Service Client event callback.
◆ e_ble_iac_event_t
Immediate Alert Service Client event type.
Enumerator |
---|
BLE_IAC_EVENT_ERROR_RSP | error response
|
◆ e_ble_iac_alert_level_t
Alert Level enumeration.
Enumerator |
---|
BLE_IAC_ALERT_LEVEL_ALERT_LEVEL_NO_ALERT | Alert level no alert shall be done on the device
|
BLE_IAC_ALERT_LEVEL_ALERT_LEVEL_MILD_ALERT | Alert level mild alert the device shall alert
|
BLE_IAC_ALERT_LEVEL_ALERT_LEVEL_HIGH_ALERT | Alert level high alert the device shall alert the strongest possible
|
◆ R_BLE_IAC_Init()
Initialize Immediate Alert Service Client.
This function shall be called once at startup.
- Parameters
-
[in] | p_param | pointer to Immediate Alert Service Client initialization parameters. |
- Returns
- ble_status_t
◆ R_BLE_IAC_Connect()
Perform Immediate Alert Service Client connection settings.
This function shall be called on each connection establishment.
- Parameters
-
[in] | conn_hdl | Connection handle. |
[in] | p_param | Pointer to Connection parameters. |
- Returns
- ble_status_t
◆ R_BLE_IAC_Disconnect()
Retrieve Immediate Alert Service Client connection specific settings before disconnection.
This function shall be called on each disconnection.
- Parameters
-
[in] | conn_hdl | Connection handle. |
[in] | p_param | Pointer to Disconnection parameters. |
- Returns
- ble_status_t
◆ R_BLE_IAC_WriteWithoutRspAlertLevel()
ble_status_t R_BLE_IAC_WriteWithoutRspAlertLevel |
( |
uint16_t |
conn_hdl, |
|
|
uint8_t |
app_value |
|
) |
| |
Write Alert Level characteristic value without response to remote GATT database.
- Parameters
-
[in] | conn_hdl | Connection handle. |
[in] | app_value | Alert Level characteristic value to write. |
- Returns
- ble_status_t
◆ R_BLE_IAC_ServDiscCb()
void R_BLE_IAC_ServDiscCb |
( |
uint16_t |
conn_hdl, |
|
|
uint8_t |
idx, |
|
|
uint16_t |
type, |
|
|
void * |
p_param |
|
) |
| |
Callback function for the Immediate Alert Discovery events.
- Parameters
-
[in] | conn_hdl | Connection handle. |
[in] | idx | Service index used to distiguish the multiple same UUID service. |
[in] | type | Discovery event type |
[out] | p_param | Pointer to GATTC event data. |
◆ R_BLE_IAC_GetVersion()
uint32_t R_BLE_IAC_GetVersion |
( |
void |
| ) |
|
Return version of the IAC service client.
- Returns
- version
◆ BLE_IAC_UUID
Immediate Alert Service UUID.
◆ BLE_IAC_ALERT_LEVEL_UUID
Alert Level characteristic UUID.