Zephyr API Documentation 4.3.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
ans.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2025 Sean Kyer
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_INCLUDE_BLUETOOTH_SERVICES_ANS_H_
8#define ZEPHYR_INCLUDE_BLUETOOTH_SERVICES_ANS_H_
9
20
21#include <stdint.h>
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
30#define BT_ANS_ERR_CMD_NOT_SUP 0xa0
31
42#define BT_ANS_MAX_TEXT_STR_SIZE 18
43
67
77
87
106int bt_ans_notify_new_alert(struct bt_conn *conn, enum bt_ans_cat category, uint8_t num_new,
107 const char *text);
108
126int bt_ans_set_unread_count(struct bt_conn *conn, enum bt_ans_cat category, uint8_t unread);
127
128#ifdef __cplusplus
129}
130#endif
131
135
136#endif /* ZEPHYR_INCLUDE_BLUETOOTH_SERVICES_ANS_H_ */
int bt_ans_set_unread_support_category(uint16_t mask)
Set the support for a given unread new alert category.
int bt_ans_set_new_alert_support_category(uint16_t mask)
Set the support for a given new alert category.
int bt_ans_set_unread_count(struct bt_conn *conn, enum bt_ans_cat category, uint8_t unread)
Set the total unread count for a given category.
bt_ans_cat
ANS Category ID Enum.
Definition ans.h:49
int bt_ans_notify_new_alert(struct bt_conn *conn, enum bt_ans_cat category, uint8_t num_new, const char *text)
Send a new alert to remote devices.
@ BT_ANS_CAT_CALL
Incoming call alerts.
Definition ans.h:53
@ BT_ANS_CAT_SMS_MMS
SMS/MMS text messages.
Definition ans.h:55
@ BT_ANS_CAT_INSTANT_MESSAGE
Instant messaging alerts.
Definition ans.h:59
@ BT_ANS_CAT_SIMPLE_ALERT
Simple alerts (general notifications).
Definition ans.h:50
@ BT_ANS_CAT_NEWS
News updates.
Definition ans.h:52
@ BT_ANS_CAT_EMAIL
Email messages.
Definition ans.h:51
@ BT_ANS_CAT_MISSED_CALL
Missed call alerts.
Definition ans.h:54
@ BT_ANS_CAT_VOICE_MAIL
Voicemail notifications.
Definition ans.h:56
@ BT_ANS_CAT_HIGH_PRI_ALERT
High-priority alerts.
Definition ans.h:58
@ BT_ANS_CAT_SCHEDULE
Calendar or schedule alerts.
Definition ans.h:57
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
__UINT16_TYPE__ uint16_t
Definition stdint.h:89