Zephyr Project API  3.1.0
A Scalable Open Source RTOS
ias.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2022 Codecoup
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_INCLUDE_BLUETOOTH_SERVICES_IAS_H_
8#define ZEPHYR_INCLUDE_BLUETOOTH_SERVICES_IAS_H_
9
20#ifdef __cplusplus
21extern "C" {
22#endif
23
25struct bt_ias_cb {
31 void (*no_alert)(void);
32
38 void (*mild_alert)(void);
39
45 void (*high_alert)(void);
46};
47
53
60#define BT_IAS_CB_DEFINE(_name) \
61 static const STRUCT_SECTION_ITERABLE(bt_ias_cb, _CONCAT(bt_ias_cb_, _name))
62
63#ifdef __cplusplus
64}
65#endif
66
71#endif /* ZEPHYR_INCLUDE_BLUETOOTH_SERVICES_IAS_H_ */
int bt_ias_local_alert_stop(void)
Method for stopping alert locally.
Immediate Alert Service callback structure.
Definition: ias.h:25
void(* high_alert)(void)
Callback function for alert level value.
Definition: ias.h:45
void(* no_alert)(void)
Callback function to stop alert.
Definition: ias.h:31
void(* mild_alert)(void)
Callback function for alert level value.
Definition: ias.h:38