xref: /btstack/src/ble/gatt-service/immediate_alert_service_util.h (revision 1663a09d71ad1d051ac7f5b42bd572d77deb1140)
1*1663a09dSMatthias Ringwald /*
2*1663a09dSMatthias Ringwald  * Copyright (C) 2024 BlueKitchen GmbH
3*1663a09dSMatthias Ringwald  *
4*1663a09dSMatthias Ringwald  * Redistribution and use in source and binary forms, with or without
5*1663a09dSMatthias Ringwald  * modification, are permitted provided that the following conditions
6*1663a09dSMatthias Ringwald  * are met:
7*1663a09dSMatthias Ringwald  *
8*1663a09dSMatthias Ringwald  * 1. Redistributions of source code must retain the above copyright
9*1663a09dSMatthias Ringwald  *    notice, this list of conditions and the following disclaimer.
10*1663a09dSMatthias Ringwald  * 2. Redistributions in binary form must reproduce the above copyright
11*1663a09dSMatthias Ringwald  *    notice, this list of conditions and the following disclaimer in the
12*1663a09dSMatthias Ringwald  *    documentation and/or other materials provided with the distribution.
13*1663a09dSMatthias Ringwald  * 3. Neither the name of the copyright holders nor the names of
14*1663a09dSMatthias Ringwald  *    contributors may be used to endorse or promote products derived
15*1663a09dSMatthias Ringwald  *    from this software without specific prior written permission.
16*1663a09dSMatthias Ringwald  * 4. Any redistribution, use, or modification is done solely for
17*1663a09dSMatthias Ringwald  *    personal benefit and not for any commercial purpose or for
18*1663a09dSMatthias Ringwald  *    monetary gain.
19*1663a09dSMatthias Ringwald  *
20*1663a09dSMatthias Ringwald  * THIS SOFTWARE IS PROVIDED BY BLUEKITCHEN GMBH AND CONTRIBUTORS
21*1663a09dSMatthias Ringwald  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22*1663a09dSMatthias Ringwald  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
23*1663a09dSMatthias Ringwald  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BLUEKITCHEN
24*1663a09dSMatthias Ringwald  * GMBH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
25*1663a09dSMatthias Ringwald  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
26*1663a09dSMatthias Ringwald  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
27*1663a09dSMatthias Ringwald  * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
28*1663a09dSMatthias Ringwald  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
29*1663a09dSMatthias Ringwald  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
30*1663a09dSMatthias Ringwald  * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31*1663a09dSMatthias Ringwald  * SUCH DAMAGE.
32*1663a09dSMatthias Ringwald  *
33*1663a09dSMatthias Ringwald  * Please inquire about commercial licensing options at
34*1663a09dSMatthias Ringwald  * [email protected]
35*1663a09dSMatthias Ringwald  *
36*1663a09dSMatthias Ringwald  */
37*1663a09dSMatthias Ringwald 
38*1663a09dSMatthias Ringwald /**
39*1663a09dSMatthias Ringwald  * @title Immediate Alert Service Util
40*1663a09dSMatthias Ringwald  *
41*1663a09dSMatthias Ringwald  */
42*1663a09dSMatthias Ringwald 
43*1663a09dSMatthias Ringwald #ifndef IMMEDIATE_ALERT_SERVICE_UTIL_H
44*1663a09dSMatthias Ringwald #define IMMEDIATE_ALERT_SERVICE_UTIL_H
45*1663a09dSMatthias Ringwald 
46*1663a09dSMatthias Ringwald #include <stdint.h>
47*1663a09dSMatthias Ringwald 
48*1663a09dSMatthias Ringwald #if defined __cplusplus
49*1663a09dSMatthias Ringwald extern "C" {
50*1663a09dSMatthias Ringwald #endif
51*1663a09dSMatthias Ringwald 
52*1663a09dSMatthias Ringwald // number of characteristics in Immediate Alert Service
53*1663a09dSMatthias Ringwald #define IMMEDIATE_ALERT_SERVICE_CLIENT_NUM_CHARACTERISTICS 1
54*1663a09dSMatthias Ringwald 
55*1663a09dSMatthias Ringwald typedef enum {
56*1663a09dSMatthias Ringwald     IAS_ALERT_LEVEL_NO_ALERT = 0,
57*1663a09dSMatthias Ringwald     IAS_ALERT_LEVEL_MILD_ALERT,
58*1663a09dSMatthias Ringwald     IAS_ALERT_LEVEL_HIGH_ALERT,
59*1663a09dSMatthias Ringwald     IAS_ALERT_LEVEL_RFU,
60*1663a09dSMatthias Ringwald } ias_alert_level_t;
61*1663a09dSMatthias Ringwald 
62*1663a09dSMatthias Ringwald #if defined __cplusplus
63*1663a09dSMatthias Ringwald }
64*1663a09dSMatthias Ringwald #endif
65*1663a09dSMatthias Ringwald 
66*1663a09dSMatthias Ringwald #endif
67