Functions | |
sdk_err_t | ancs_c_client_init (ancs_c_evt_handler_t evt_handler) |
Initialize ANCS structure of handle. More... | |
sdk_err_t | ancs_c_discovery_service (uint8_t conn_idx) |
To access phone's all services about ANCS. More... | |
sdk_err_t | ancs_c_ntf_source_notify_set (uint8_t conn_idx, bool is_enable) |
enable ancs notification source CCCD. More... | |
sdk_err_t | ancs_c_data_source_notify_set (uint8_t conn_idx, bool is_enable) |
enable ancs data source CCCD. More... | |
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. More... | |
void | ancs_notify_attr_get (int uid, char noti_attr) |
Get notification attribute. More... | |
void | ancs_action_perform (int uid, int action) |
ancs perform action More... | |
int | ancs_get_uid (void) |
get ancs phone call UID More... | |
void | ancs_decode_notification_source (uint8_t *p_data, uint16_t length) |
Decode notification source message. More... | |
void | ancs_decode_data_source (uint8_t *p_data, uint16_t length) |
Decode data source message. More... | |
void ancs_action_perform | ( | int | uid, |
int | action | ||
) |
ancs perform action
[in] | uid | The UID of notify message |
[in] | action | The action status defined by specification |
sdk_err_t ancs_c_client_init | ( | ancs_c_evt_handler_t | evt_handler | ) |
Initialize ANCS structure of handle.
sdk_err_t ancs_c_data_source_notify_set | ( | uint8_t | conn_idx, |
bool | is_enable | ||
) |
enable ancs data source CCCD.
[in] | conn_idx | Connection index. |
[in] | is_enable | Start or stop the notification. |
sdk_err_t ancs_c_discovery_service | ( | uint8_t | conn_idx | ) |
To access phone's all services about ANCS.
[in] | conn_idx | Connection index. |
sdk_err_t ancs_c_ntf_source_notify_set | ( | uint8_t | conn_idx, |
bool | is_enable | ||
) |
enable ancs notification source CCCD.
[in] | conn_idx | Connection index. |
[in] | is_enable | Start or stop the notification. |
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.
[in] | conn_idx | Connection index. |
[in] | p_data | Pointer to send out data. |
[in] | length | Length of data sent out. |
void ancs_decode_data_source | ( | uint8_t * | p_data, |
uint16_t | length | ||
) |
Decode data source message.
[in] | p_data | Pointer to the parameters of the read request. |
[in] | length | Length of read data |
void ancs_decode_notification_source | ( | uint8_t * | p_data, |
uint16_t | length | ||
) |
Decode notification source message.
[in] | p_data | Pointer to the parameters of the read request. |
[in] | length | The Length of read value |
int ancs_get_uid | ( | void | ) |
get ancs phone call UID
void ancs_notify_attr_get | ( | int | uid, |
char | noti_attr | ||
) |
Get notification attribute.
[in] | uid | The UID of notify message |
[in] | noti_attr | The notification attribute |