Go to the documentation of this file.
37 #ifndef _ANCS_PROTOCOL_H_
38 #define _ANCS_PROTOCOL_H_
44 #ifndef CFG_ANCS_ATTRIBUTE_MAXLEN
45 #define CFG_ANCS_ATTRIBUTE_MAXLEN 500
49 #define ANCS_ATTR(ID) ((uint32_t) 0x80000000 | ((uint8_t) ID))
52 #define ANCS_ATTR_MAXLEN(ID, LEN) ((uint32_t) 0x80000000 | ((uint8_t) ID) | ((uint16_t) LEN << 8))
@ ANCS_NOTIF_ATTR_ID_SUBTITLE
@ ANCS_CATEGORY_ID_SCHEDULE
@ CTRL_POINT_GET_APP_ATTRIBUTE
@ ANCS_NOTIF_ATTR_ID_MESSAGE_SIZE
iOS notification structure.
ancs_ntf_flags_t event_flags
@ ANCS_NOTIF_ATTR_ID_POSITIVE_ACTION_LABEL
@ ANCS_CATEGORY_ID_ENTERTAINMENT
void ancs_decode_data_source(uint8_t *p_data, uint16_t length)
Decode data source message.
@ ANCS_NOTIF_ATTR_ID_MESSAGE
@ ANCS_EVENT_ID_NOTIFICATION_MODIFIED
ancs_evt_id_t
Event IDs for iOS notifications.
ancs_category_id_t
Category IDs for iOS notifications.
ancs_notification_attr_t
IDs for iOS notification attributes.
void ancs_decode_notification_source(uint8_t *p_data, uint16_t length)
Decode notification source message.
@ CTRL_POINT_PERFORM_NTF_ACTION
ancs_c_ctrl_point_t
ctrl point command that can be performed for iOS notifications.
@ ANCS_CATEGORY_ID_BUSINESS_AND_FINANCE
void ancs_notify_attr_get(int uid, char noti_attr)
Get notification attribute.
ancs_category_id_t category_id
@ ANCS_NOTIF_ATTR_ID_APP_IDENTIFIER
@ ANCS_NOTIF_ATTR_ID_NEGATIVE_ACTION_LABEL
@ ANCS_CATEGORY_ID_VOICE_MAIL
@ ANCS_CATEGORY_ID_LOCATION
@ CTRL_POINT_GET_NTF_ATTRIBUTE
notification flags that can be performed for iOS notifications.
ancs_c_action_id_t
ID for actions that can be performed for iOS notifications.
@ ANCS_CATEGORY_ID_HEALTH_AND_FITNESS
@ ANCS_CATEGORY_ID_MISSED_CALL
@ ANCS_CATEGORY_ID_SOCIAL
int ancs_get_uid(void)
get ancs phone call UID
@ ANCS_NOTIF_ATTR_ID_DATE
void ancs_action_perform(int uid, int action)
ancs perform action
uint32_t notification_uid
@ ANCS_CATEGORY_ID_INCOMING_CALL
@ ANCS_EVENT_ID_NOTIFICATION_ADDED
@ ANCS_EVENT_ID_NOTIFICATION_REMOVED
@ ANCS_NOTIF_ATTR_ID_TITLE