Go to the documentation of this file.
74 #include "custom_config.h"
81 #define ANCS_C_CONNECTION_MAX 10
82 #define ANCS_SRVC_UUID 0xd0, 0x00, 0x2d, 0x12, 0x1e, 0x4b, 0x0f, 0xa4,\
83 0x99,0x4e, 0xce, 0xb5, 0x31, 0xf4, 0x05, 0x79
84 #define ANCS_NTF_SOURCE_UUID 0xbd, 0x1d, 0xa2, 0x99, 0xe6, 0x25, 0x58, 0x8c,\
85 0xd9, 0x42, 0x01, 0x63, 0x0d, 0x12, 0xbf, 0x9f
86 #define ANCS_CONTROL_POINT_UUID 0xd9, 0xd9, 0xaa, 0xfd, 0xbd, 0x9b, 0x21, 0x98,\
87 0xa8, 0x49, 0xe1, 0x45, 0xf3, 0xd8, 0xd1, 0x69
88 #define ANCS_DATA_SOURCE_UUID 0xfb, 0x7b, 0x7c, 0xce, 0x6a, 0xb3, 0x44, 0xbe,\
89 0xb5, 0x4b, 0xd6, 0x24, 0xe9, 0xc6, 0xea, 0x22
@ BLE_ANCS_C_EVT_INVALID
ANCS Client invalid event type.
uint16_t ancs_control_point_handle
Handle of ancs control point characteristic as provided by a discovery.
void(* ancs_c_evt_handler_t)(ancs_c_evt_t *p_evt)
Apple Notification Center Service event handler type.
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
ANCS Client found ANCS service failed because of invalid operation or no found at the peer.
@ BLE_ANCS_C_EVT_NTF_SOURCE_RECEIVE
ANCS Client has receive notification from notification source.
ble_ancs_c_evt_type_t
Event types that are passed from client to application on an event.
@ BLE_ANCS_C_EVT_DISCOVERY_CPLT
ANCS Client has found ANCS service and its characteristics.
sdk_err_t ancs_c_data_source_notify_set(uint8_t conn_idx, bool is_enable)
enable ancs data source CCCD.
@ BLE_ANCS_C_EVT_WRITE_OP_ERR
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
Handle of CCCD of ancs data source characteristic as provided by a discovery.
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
Handle of ancs data source characteristic as provided by a discovery.
uint16_t sdk_err_t
SDK API result type.
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
Handle of ancs service as provided by a discovery.
uint16_t ancs_ntf_source_cccd_handle
Handle of CCCD of ancs control point characteristic as provided by a discovery.
@ BLE_ANCS_C_EVT_DATA_SOURCE_RECEIVE
ANCS Client has receive notification from data source.
ble_ancs_c_evt_type_t evt_type
The ANCS event type.
@ BLE_ANCS_C_EVT_DATA_SOURCE_NTF_ENABLED
ANCS Client has enable notification for data source.
@ BLE_ANCS_C_EVT_NTF_SOURCE_NTF_ENABLED
ANCS Client has enable notification for notification source.
uint8_t conn_idx
The index of the connection.
uint16_t ancs_ntf_source_handle
Handle of ancs notification source characteristic as provided by a discovery.