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
Definition: ancs_protocol.h:64
@ ANCS_CATEGORY_ID_OTHER
Definition: ancs_protocol.h:75
@ ANCS_CATEGORY_ID_SCHEDULE
Definition: ancs_protocol.h:80
@ CTRL_POINT_GET_APP_ATTRIBUTE
Definition: ancs_protocol.h:108
@ ANCS_NOTIF_ATTR_ID_MESSAGE_SIZE
Definition: ancs_protocol.h:66
iOS notification structure.
Definition: ancs_protocol.h:131
@ ACTION_ID_NEGATIVE
Definition: ancs_protocol.h:101
ancs_ntf_flags_t event_flags
Definition: ancs_protocol.h:133
uint8_t pre_existing
Definition: ancs_protocol.h:124
uint8_t silent
Definition: ancs_protocol.h:122
@ ANCS_NOTIF_ATTR_ID_POSITIVE_ACTION_LABEL
Definition: ancs_protocol.h:68
uint8_t important
Definition: ancs_protocol.h:123
ancs_evt_id_t event_id
Definition: ancs_protocol.h:132
@ ANCS_CATEGORY_ID_ENTERTAINMENT
Definition: ancs_protocol.h:86
void ancs_decode_data_source(uint8_t *p_data, uint16_t length)
Decode data source message.
@ ANCS_NOTIF_ATTR_ID_MESSAGE
Definition: ancs_protocol.h:65
@ ANCS_EVENT_ID_NOTIFICATION_MODIFIED
Definition: ancs_protocol.h:93
ancs_evt_id_t
Event IDs for iOS notifications.
Definition: ancs_protocol.h:91
ancs_category_id_t
Category IDs for iOS notifications.
Definition: ancs_protocol.h:74
ancs_notification_attr_t
IDs for iOS notification attributes.
Definition: ancs_protocol.h:61
uint8_t category_count
Definition: ancs_protocol.h:135
void ancs_decode_notification_source(uint8_t *p_data, uint16_t length)
Decode notification source message.
@ CTRL_POINT_PERFORM_NTF_ACTION
Definition: ancs_protocol.h:109
ancs_c_ctrl_point_t
ctrl point command that can be performed for iOS notifications.
Definition: ancs_protocol.h:106
@ ANCS_CATEGORY_ID_BUSINESS_AND_FINANCE
Definition: ancs_protocol.h:84
void ancs_notify_attr_get(int uid, char noti_attr)
Get notification attribute.
ancs_category_id_t category_id
Definition: ancs_protocol.h:134
@ ANCS_NOTIF_ATTR_ID_APP_IDENTIFIER
Definition: ancs_protocol.h:62
@ ANCS_NOTIF_ATTR_ID_NEGATIVE_ACTION_LABEL
Definition: ancs_protocol.h:69
@ ANCS_CATEGORY_ID_VOICE_MAIL
Definition: ancs_protocol.h:78
@ ANCS_CATEGORY_ID_LOCATION
Definition: ancs_protocol.h:85
@ CTRL_POINT_GET_NTF_ATTRIBUTE
Definition: ancs_protocol.h:107
notification flags that can be performed for iOS notifications.
Definition: ancs_protocol.h:121
uint8_t negative_action
Definition: ancs_protocol.h:126
ancs_c_action_id_t
ID for actions that can be performed for iOS notifications.
Definition: ancs_protocol.h:99
@ ANCS_CATEGORY_ID_EMAIL
Definition: ancs_protocol.h:81
@ ANCS_CATEGORY_ID_HEALTH_AND_FITNESS
Definition: ancs_protocol.h:83
uint8_t positive_action
Definition: ancs_protocol.h:125
@ ANCS_CATEGORY_ID_MISSED_CALL
Definition: ancs_protocol.h:77
@ ANCS_CATEGORY_ID_SOCIAL
Definition: ancs_protocol.h:79
@ ACTION_ID_POSITIVE
Definition: ancs_protocol.h:100
int ancs_get_uid(void)
get ancs phone call UID
@ ANCS_NOTIF_ATTR_ID_DATE
Definition: ancs_protocol.h:67
@ ANCS_CATEGORY_ID_NEWS
Definition: ancs_protocol.h:82
void ancs_action_perform(int uid, int action)
ancs perform action
uint32_t notification_uid
Definition: ancs_protocol.h:136
@ ANCS_CATEGORY_ID_INCOMING_CALL
Definition: ancs_protocol.h:76
@ ANCS_EVENT_ID_NOTIFICATION_ADDED
Definition: ancs_protocol.h:92
@ ANCS_EVENT_ID_NOTIFICATION_REMOVED
Definition: ancs_protocol.h:94
@ ANCS_NOTIF_ATTR_ID_TITLE
Definition: ancs_protocol.h:63