Go to the documentation of this file.
74 #include "custom_config.h"
81 #define ANCS_C_CONNECTION_MAX (10 < CFG_MAX_CONNECTIONS ?\
82 10 : CFG_MAX_CONNECTIONS)
83 #define ANCS_SRVC_UUID 0xd0, 0x00, 0x2d, 0x12, 0x1e, 0x4b, 0x0f, 0xa4,\
84 0x99,0x4e, 0xce, 0xb5, 0x31, 0xf4, 0x05, 0x79
85 #define ANCS_NTF_SOURCE_UUID 0xbd, 0x1d, 0xa2, 0x99, 0xe6, 0x25, 0x58, 0x8c,\
86 0xd9, 0x42, 0x01, 0x63, 0x0d, 0x12, 0xbf, 0x9f
87 #define ANCS_CONTROL_POINT_UUID 0xd9, 0xd9, 0xaa, 0xfd, 0xbd, 0x9b, 0x21, 0x98,\
88 0xa8, 0x49, 0xe1, 0x45, 0xf3, 0xd8, 0xd1, 0x69
89 #define ANCS_DATA_SOURCE_UUID 0xfb, 0x7b, 0x7c, 0xce, 0x6a, 0xb3, 0x44, 0xbe,\
90 0xb5, 0x4b, 0xd6, 0x24, 0xe9, 0xc6, 0xea, 0x22
108 BLE_ANCS_C_EVT_WRITE_OP_ERR,
@ BLE_ANCS_C_EVT_INVALID
Definition: ancs_c.h:101
uint16_t ancs_control_point_handle
Definition: ancs_c.h:122
void(* ancs_c_evt_handler_t)(ancs_c_evt_t *p_evt)
Apple Notification Center Service event handler type.
Definition: ancs_c.h:141
sdk_err_t ancs_c_write_control_point(uint8_t conn_idx, uint8_t *p_data, uint16_t length)
This function implements writing commands to control points.
@ BLE_ANCS_C_EVT_DISCOVERY_FAILED
Definition: ancs_c.h:103
@ BLE_ANCS_C_EVT_NTF_SOURCE_RECEIVE
Definition: ancs_c.h:106
ble_ancs_c_evt_type_t
Event types that are passed from client to application on an event.
Definition: ancs_c.h:100
@ BLE_ANCS_C_EVT_DISCOVERY_CPLT
Definition: ancs_c.h:102
sdk_err_t ancs_c_data_source_notify_set(uint8_t conn_idx, bool is_enable)
enable ancs data source CCCD.
sdk_err_t ancs_c_discovery_service(uint8_t conn_idx)
To access phone's all services about ANCS.
Profile/Service Common Types.
uint16_t ancs_data_source_cccd_handle
Definition: ancs_c.h:124
sdk_err_t ancs_c_client_init(ancs_c_evt_handler_t evt_handler)
Initialize ANCS structure of handle.
uint16_t ancs_data_source_handle
Definition: ancs_c.h:123
uint16_t sdk_err_t
SDK API result type.
Definition: ble_error.h:243
ancs handle structure.
Definition: ancs_c.h:118
sdk_err_t ancs_c_ntf_source_notify_set(uint8_t conn_idx, bool is_enable)
enable ancs notification source CCCD.
uint16_t ancs_service_handle
Definition: ancs_c.h:119
uint16_t ancs_ntf_source_cccd_handle
Definition: ancs_c.h:121
@ BLE_ANCS_C_EVT_DATA_SOURCE_RECEIVE
Definition: ancs_c.h:107
ble_ancs_c_evt_type_t evt_type
Definition: ancs_c.h:131
ANCS Client event.
Definition: ancs_c.h:129
@ BLE_ANCS_C_EVT_DATA_SOURCE_NTF_ENABLED
Definition: ancs_c.h:105
@ BLE_ANCS_C_EVT_NTF_SOURCE_NTF_ENABLED
Definition: ancs_c.h:104
uint8_t conn_idx
Definition: ancs_c.h:130
uint16_t ancs_ntf_source_handle
Definition: ancs_c.h:120