Go to the documentation of this file.
62 #include "custom_config.h"
70 #define ANS_CONNECTION_MAX 10
71 #define ANS_ERROR_CMD_NOT_SUP 0xa0
72 #define ANS_UTF_8_STR_LEN_MAX 18
73 #define ANS_SUP_NEW_ALERT_CAT_VAL_LEN 2
74 #define ANS_NEWS_ALERT_VAL_LEN (ANS_UTF_8_STR_LEN_MAX + 2)
75 #define ANS_SUP_UNREAD_ALERT_CAT_VAL_LEN 2
76 #define ANS_UNREAD_ALERT_STA_VAL_LEN 2
77 #define ANS_ALERT_NTF_CTRL_PT_VAL_LEN 2
84 #define ANS_SMPL_ALERT_SUP (0x01 << 0)
85 #define ANS_EMAIL_SUP (0x01 << 1)
86 #define ANS_NEWS_SUP (0x01 << 2)
87 #define ANS_CALL_SUP (0x01 << 3)
88 #define ANS_MISSED_CALL_SUP (0x01 << 4)
89 #define ANS_SMS_MMS_SUP (0x01 << 5)
90 #define ANS_VOICE_MAIL_SUP (0x01 << 6)
91 #define ANS_SCHEDULE_SUP (0x01 << 7)
92 #define ANS_HG_PRIO_ALERT_SUP (0x01 << 8)
93 #define ANS_INSTANT_MES (0x01 << 9)
94 #define ANS_ALL_CAT_SUP (0x03ff)
ans_alert_cat_id_t cat_id
ans_alert_cat_id_t cat_id
@ ANS_CTRL_PT_EN_UNREAD_CAT_STA_NTF
@ ANS_CTRL_PT_NTF_UNREAD_CAT_STA_IMME
ans_ctrl_pt_id_t
Alert Notification Service Control point.
Alert Notification Service event.
sdk_err_t ans_service_init(ans_init_t *p_ans_init)
Initialize an Alert Notification Service instance and add to the DB.
@ ANS_CAT_ID_HG_PRIO_ALERT
@ ANS_EVT_UNREAD_ALERT_STA_NTF_ENABLE
Alert Notification Service Unread Alert Status value.
@ ANS_CTRL_PT_DIS_UNREAD_CAT_STA_NTF
sdk_err_t ans_new_alert_send(uint8_t conn_idx, ans_new_alert_t *p_new_alert)
Send New Alert if its notification has been enabled.
@ ANS_EVT_NEW_ALERT_IMME_NTF_REQ
@ ANS_EVT_Unread_ALERT_IMME_NTF_REQ
ans_evt_type_t
Alert Notification Service Event type.
ans_alert_cat_id_t cat_id
sdk_err_t ans_unread_alert_send(uint8_t conn_idx, ans_unread_alert_t *p_unread_alert)
Send Unread Alert Status if its notification has been enabled.
@ ANS_CTRL_PT_NTF_NEW_INC_ALERT_IMME
uint16_t sdk_err_t
SDK API result type.
#define ANS_UTF_8_STR_LEN_MAX
Alert Notification Service Control Point value.
Alert Notification Service init stucture. This contains all options and data needed for initializatio...
ans_evt_handler_t evt_handler
Alert Notification Service New Alert value.
ans_alert_cat_id_t
Alert Notification Service Categories of alerts/messages.
@ ANS_CTRL_PT_EN_NEW_INC_ALERT_NTF
@ ANS_EVT_NEW_ALERT_NTF_DISABLE
@ ANS_EVT_UNREAD_ALERT_STA_NTF_DISABLE
@ ANS_CTRL_PT_DIS_NEW_INC_ALERT_NTF
uint16_t sup_new_alert_cat
void(* ans_evt_handler_t)(ans_evt_t *p_evt)
Alert Notification Service event handler type.
@ ANS_EVT_NEW_ALERT_NTF_ENABLE
uint16_t sup_unread_alert_sta