Go to the documentation of this file.
62 #include "custom_config.h"
70 #define ANS_C_CONNECTION_MAX 10
71 #define ANS_C_ERROR_CMD_NOT_SUP 0xa0
72 #define ANS_C_UTF_8_STR_LEN_MAX 18
73 #define ANS_C_ALERT_NTF_CTRL_PT_VAL_LEN 2
80 #define ANS_C_SMPL_ALERT_SUP (0x01 << 0)
81 #define ANS_C_EMAIL_SUP (0x01 << 1)
82 #define ANS_C_NEWS_SUP (0x01 << 2)
83 #define ANS_C_CALL_SUP (0x01 << 3)
84 #define ANS_C_MISSED_CALL_SUP (0x01 << 4)
85 #define ANS_C_SMS_MMS_SUP (0x01 << 5)
86 #define ANS_C_VOICE_MAIL_SUP (0x01 << 6)
87 #define ANS_C_SCHEDULE_SUP (0x01 << 7)
88 #define ANS_C_HG_PRIO_ALERT_SUP (0x01 << 8)
89 #define ANS_C_INSTANT_MES (0x01 << 9)
90 #define ANS_C_ALL_CAT_SUP (0x03ff)
@ ANS_C_EVT_UNREAD_ALERT_RECEIVE
@ ANS_C_CTRL_PT_DIS_NEW_INC_ALERT_NTF
uint16_t ans_new_alert_cccd_handle
Alert Notification Service Client event.
uint16_t ans_ctrl_pt_handle
@ ANS_C_EVT_DISCOVERY_COMPLETE
@ ANS_C_EVT_SUP_UNREAD_ALERT_CAT_REC
ans_c_ctrl_pt_id_t
Alert Notification Service Client Control point ID.
ans_c_alert_cat_id_t cat_id
@ ANS_C_CAT_ID_INSTANT_MES
@ ANS_C_EVT_DISCOVERY_FAIL
ans_c_unread_alert_t unread_alert
sdk_err_t ans_c_new_alert_notify_set(uint8_t conn_idx, bool is_enable)
Enable or disable peer New Alert characteristic notify.
@ ANS_C_CTRL_PT_NTF_NEW_INC_ALERT_IMME
ans_c_alert_cat_id_t
Alert Notification Service Categories of alerts/messages.
ans_c_evt_type_t evt_type
uint16_t ans_sup_new_alert_cat_handle
uint16_t sup_new_alert_cat_ids
@ ANS_C_EVT_UNREAD_ALERT_STA_NTF_SET_SUCCESS
uint16_t ans_unread_alert_handle
@ ANS_C_CTRL_PT_EN_UNREAD_CAT_STA_NTF
sdk_err_t ans_c_unread_alert_notify_set(uint8_t conn_idx, bool is_enable)
Enable or disable peer Unread Alert characteristic notify.
uint16_t ans_sup_unread_alert_cat_handle
uint16_t ans_srvc_end_handle
Alert Notification Service Client Control Point value.
@ ANS_C_EVT_CTRL_POINT_SET_SUCCESS
@ ANS_C_EVT_NEW_ALERT_NTF_SET_SUCCESS
Alert Notification Service Client decoded Unread Alert Status value.
@ ANS_C_CTRL_PT_EN_NEW_INC_ALERT_NTF
@ ANS_C_CAT_ID_MISSED_CALL
uint16_t ans_new_alert_handle
@ ANS_C_CAT_ID_SMPL_ALERT
sdk_err_t ans_c_sup_new_alert_cat_read(uint8_t conn_idx)
Read Supported New Alert Category characteristic value.
uint16_t ans_srvc_start_handle
sdk_err_t ans_client_init(ans_c_evt_handler_t evt_handler)
Register ANS Client event handler.
ans_c_alert_cat_id_t cat_id
Profile/Service Common Types.
uint16_t sup_unread_alert_cat_ids
uint16_t sdk_err_t
SDK API result type.
@ ANS_C_CAT_ID_HG_PRIO_ALERT
void(* ans_c_evt_handler_t)(ans_c_evt_t *p_evt)
Alert Notification Service Client event handler type.
uint16_t ans_unread_alert_cccd_handle
sdk_err_t ans_c_sup_unread_alert_cat_read(uint8_t conn_idx)
Read Supported Unread Alert Category characteristic value.
Handles on the connected peer device needed to interact with it.
@ ANS_C_EVT_SUP_NEW_ALERT_CAT_RECEIV
ans_c_alert_cat_id_t cat_id
@ ANS_C_CTRL_PT_DIS_UNREAD_CAT_STA_NTF
ans_c_evt_type_t
Alert Notification Service Client Event type.
sdk_err_t ans_c_disc_srvc_start(uint8_t conn_idx)
Discover Alert Notification Service on peer.
@ ANS_C_CAT_ID_VOICE_MAIL
@ ANS_C_CTRL_PT_NTF_UNREAD_CAT_STA_IMME
sdk_err_t ans_c_ctrl_point_set(uint8_t conn_idx, ans_c_ctrl_pt_t *p_ctrl_pt)
Set Control Point characteristic value.
@ ANS_C_EVT_NEW_ALERT_RECEIVE
Alert Notification Service Client decoded New Alert value.
ans_c_new_alert_t new_alert
ans_c_ctrl_pt_id_t cmd_id
#define ANS_C_UTF_8_STR_LEN_MAX