Go to the documentation of this file.
60 #include "custom_config.h"
68 #define PASS_CONNECTION_MAX 10
69 #define PASS_ALERT_STATUS_VAL_LEN 1
70 #define PASS_RINGER_SET_VAL_LEN 1
71 #define PASS_RINGER_CTRL_PT_VAL_LEN 1
78 #define PASS_CHAR_MANDATORY 0x003f
79 #define PASS_CHAR_RING_CTRL_PT_SUP 0x0180
80 #define PASS_CHAR_FULL 0x01ff
88 #define PASS_NO_STATE_ACTIVE (0x00)
89 #define PASS_RINGER_ACTIVE (0x01 << 0)
90 #define PASS_VIBRATE_ACTIVE (0x01 << 1)
91 #define PASS_DISPLAY_ALERT_ACTIVE (0x01 << 2)
92 #define PASS_ALL_STATE_ACTIVE (0x07)
100 #define PASS_RINGER_SET_SILENT 0
101 #define PASS_RINGER_SET_NORMAL 1
pass_ringer_ctrl_pt_t
Phone Alert Status Service Ringer Control Point.
@ PASS_EVT_RINGER_SET_NTF_ENABLE
Ringer Setting notification is enabled.
@ PASS_CTRL_PT_MUTE_ONCE
Mute Once.
@ PASS_EVT_RINGER_SET_NTF_DISABLE
Ringer Setting notification is disabled.
@ PASS_EVT_ALERT_STATUS_NTF_DISABLE
Alert Status notification is disabled.
Phone Alert Status Service init stucture.
uint8_t pass_ringer_setting_get(void)
Get Ringer Setting value.
Phone Alert Status Service event.
uint8_t conn_idx
The index of the connection.
uint8_t alert_status
Initial alert status.
@ PASS_EVT_INVALID
Invalid PASS event type.
@ PASS_CTRL_PT_CANCEL_SLIENT_MODE
Cancel Silent Mode.
void(* pass_evt_handler_t)(pass_evt_t *p_evt)
Phone Alert Status Service event handler type.
pass_evt_type_t evt_type
The CTS event type.
@ PASS_EVT_MUTE_ONCE_SET
Set mute once.
@ PASS_EVT_SILENT_MODE_SET
Set silent mode.
@ PASS_EVT_SILENT_MODE_CANCEL
Cancel silent mode.
pass_evt_handler_t evt_handler
Phone Alert Status Service event handler.
void pass_ringer_setting_set(uint8_t conn_idx, uint8_t new_setting)
Set Ringer Setting value.
uint16_t sdk_err_t
SDK API result type.
void pass_alert_status_set(uint8_t conn_idx, uint8_t new_status)
Set Alert Status value.
uint16_t char_mask
Initial mask of supported characteristics, and configured with Characteristics Mask.
@ PASS_EVT_ALERT_STATUS_NTF_ENABLE
Alert Status notification is enabled.
pass_evt_type_t
Phone Alert Status Service event type.
uint8_t ringer_setting
Initial ringer setting.
sdk_err_t pass_service_init(pass_init_t *p_pass_init)
Initialize a Phone Alert Status Service instance and add in the DB.
@ PASS_CTRL_PT_SILENT_MODE
Silent Mode.