Phone Alert Status Service files.
Copyright (c) 2017-2018 Microchip Technology Inc. and its subsidiaries.
Macros | |
#define | ALERT_STATUS_CHAR_LEN (1) |
#define | CLIENT_CONF_CHAR_DESCRIPTOR_LEN (2) |
#define | RINGER_SETTING_CHAR_LEN (1) |
Functions | |
at_ble_status_t | pas_char_set_ringer_control_point (at_ble_handle_t conn_handle, at_ble_handle_t char_handle, uint8_t data) |
sets ringer control point More... | |
at_ble_status_t | pas_char_write_notification (at_ble_handle_t conn_handle, at_ble_handle_t char_handle, bool enable) |
Enable/disable the notification. More... | |
at_ble_status_t | pas_read_alert_status_char (at_ble_handle_t conn_handle, at_ble_handle_t char_handle) |
triggers the read of alert status characteritic More... | |
at_ble_status_t | pas_read_ringer_setting_char (at_ble_handle_t conn_handle, at_ble_handle_t char_handle) |
triggers the read of ringer setting characteristic More... | |
#define ALERT_STATUS_CHAR_LEN (1) |
Referenced by pas_read_alert_status_char().
#define CLIENT_CONF_CHAR_DESCRIPTOR_LEN (2) |
Referenced by pas_char_write_notification().
#define RINGER_SETTING_CHAR_LEN (1) |
Referenced by pas_char_set_ringer_control_point(), and pas_read_ringer_setting_char().
at_ble_status_t pas_char_set_ringer_control_point | ( | at_ble_handle_t | conn_handle, |
at_ble_handle_t | char_handle, | ||
uint8_t | data | ||
) |
sets ringer control point
[in] | at_ble_handle_t | connection handle |
[in] | at_ble_handle-t | characteristic handle |
[in] | set/clear | the notification |
[in] | at_ble_handle_t | connection handle |
[in] | at_ble_handle-t | characteristic handle |
[in] | set/clear | the notification |
References at_ble_characteristic_write(), data, and RINGER_SETTING_CHAR_LEN.
Referenced by pas_client_write_ringer_control_point().
at_ble_status_t pas_char_write_notification | ( | at_ble_handle_t | conn_handle, |
at_ble_handle_t | char_handle, | ||
bool | enable | ||
) |
Enable/disable the notification.
[in] | at_ble_handle_t | connection handle |
[in] | at_ble_handle-t | characteristic handle |
[in] | set/clear | the notification |
[in] | at_ble_handle_t | connection handle |
[in] | at_ble_handle-t | characteristic handle |
[in] | set/clear | the notification |
References at_ble_characteristic_write(), CLIENT_CONF_CHAR_DESCRIPTOR_LEN, and data.
Referenced by pas_client_enable_char_notification().
at_ble_status_t pas_read_alert_status_char | ( | at_ble_handle_t | conn_handle, |
at_ble_handle_t | char_handle | ||
) |
triggers the read of alert status characteritic
[in] | at_ble_handle_t | connection handle |
[in] | at_ble_handle-t | characteristic handle |
triggers the read of alert status characteritic
[in] | at_ble_handle_t | connection handle |
[in] | at_ble_handle-t | characteristic handle |
References ALERT_STATUS_CHAR_LEN, and at_ble_characteristic_read().
Referenced by pas_client_read_alert_status_char().
at_ble_status_t pas_read_ringer_setting_char | ( | at_ble_handle_t | conn_handle, |
at_ble_handle_t | char_handle | ||
) |
triggers the read of ringer setting characteristic
[in] | at_ble_handle_t | connection handle |
[in] | at_ble_handle-t | characteristic handle |
References at_ble_characteristic_read(), and RINGER_SETTING_CHAR_LEN.
Referenced by pas_client_read_ringer_setting_char().