Zephyr API Documentation 4.0.0-rc3
A Scalable Open Source RTOS
|
Immediate Alert Service (IAS) . More...
Data Structures | |
struct | bt_ias_cb |
Immediate Alert Service callback structure. More... | |
struct | bt_ias_client_cb |
Macros | |
#define | BT_IAS_CB_DEFINE(_name) |
Register a callback structure for immediate alert events. | |
Enumerations | |
enum | bt_ias_alert_lvl { BT_IAS_ALERT_LVL_NO_ALERT , BT_IAS_ALERT_LVL_MILD_ALERT , BT_IAS_ALERT_LVL_HIGH_ALERT } |
Functions | |
int | bt_ias_local_alert_stop (void) |
Method for stopping alert locally. | |
int | bt_ias_client_alert_write (struct bt_conn *conn, enum bt_ias_alert_lvl) |
Set alert level. | |
int | bt_ias_discover (struct bt_conn *conn) |
Discover Immediate Alert Service. | |
int | bt_ias_client_cb_register (const struct bt_ias_client_cb *cb) |
Register Immediate Alert Client callbacks. | |
Immediate Alert Service (IAS) .
[Experimental] Users should note that the APIs can change as a part of ongoing development.
#define BT_IAS_CB_DEFINE | ( | _name | ) |
#include <zephyr/bluetooth/services/ias.h>
Register a callback structure for immediate alert events.
_name | Name of callback structure. |
enum bt_ias_alert_lvl |
#include <zephyr/bluetooth/services/ias.h>
Enumerator | |
---|---|
BT_IAS_ALERT_LVL_NO_ALERT | No alerting should be done on device. |
BT_IAS_ALERT_LVL_MILD_ALERT | Device shall alert. |
BT_IAS_ALERT_LVL_HIGH_ALERT | Device should alert in strongest possible way. |
int bt_ias_client_alert_write | ( | struct bt_conn * | conn, |
enum | bt_ias_alert_lvl ) |
#include <zephyr/bluetooth/services/ias.h>
Set alert level.
conn | Bluetooth connection object |
bt_ias_alert_lvl | Level of alert to write |
int bt_ias_client_cb_register | ( | const struct bt_ias_client_cb * | cb | ) |
#include <zephyr/bluetooth/services/ias.h>
Register Immediate Alert Client callbacks.
cb | The callback structure |
int bt_ias_discover | ( | struct bt_conn * | conn | ) |
#include <zephyr/bluetooth/services/ias.h>
Discover Immediate Alert Service.
conn | Bluetooth connection object |
int bt_ias_local_alert_stop | ( | void | ) |
#include <zephyr/bluetooth/services/ias.h>
Method for stopping alert locally.