Go to the documentation of this file.
64 #include "custom_config.h"
77 #define PASS_C_CONNECTION_MAX (10 < CFG_MAX_CONNECTIONS ?\
78 10 : CFG_MAX_CONNECTIONS)
79 #define PASS_C_NO_STATE_ACTIVE (0x00)
80 #define PASS_C_RINGER_ACTIVE (0x01 << 0)
81 #define PASS_C_VIBRATE_ACTIVE (0x01 << 1)
82 #define PASS_C_DISPLAY_ALERT_ACTIVE (0x01 << 2)
83 #define PASS_C_ALL_STATE_ACTIVE (0x07)
86 #define PASS_C_RINGER_CTRL_PT_VAL_LEN 1
93 #define PASS_C_RINGER_SET_SILENT 0
94 #define PASS_C_RINGER_SET_NORMAL 1
@ PASS_C_EVT_RINGER_SET_NTF_SET_SUCCESS
Definition: pass_c.h:117
@ PASS_C_EVT_ALERT_STATUS_RECEIVE
Definition: pass_c.h:118
sdk_err_t pass_c_alert_status_notify_set(uint8_t conn_idx, bool is_enable)
Enable or disable peer Alert Status characteristic notify.
@ PASS_C_EVT_DISCOVERY_FAIL
Definition: pass_c.h:115
Handles on the connected peer device needed to interact with it.
Definition: pass_c.h:132
uint8_t alert_status
Definition: pass_c.h:149
@ PASS_C_EVT_WRITE_OP_ERR
Definition: pass_c.h:121
pass_c_ringer_ctrl_pt_t
Phone Alert Status Service Client Ringer Control Point.
Definition: pass_c.h:104
@ PASS_C_EVT_CTRL_POINT_SET_SUCCESS
Definition: pass_c.h:120
uint16_t pass_ringer_set_handle
Definition: pass_c.h:137
uint16_t pass_alert_status_cccd_handle
Definition: pass_c.h:136
uint16_t pass_srvc_start_handle
Definition: pass_c.h:133
sdk_err_t pass_c_alert_status_read(uint8_t conn_idx)
Read Alert Status characteristic value.
uint8_t conn_idx
Definition: pass_c.h:145
pass_c_evt_type_t evt_type
Definition: pass_c.h:146
sdk_err_t pass_client_init(pass_c_evt_handler_t evt_handler)
Register PASS Client event handler.
uint16_t pass_ringer_set_cccd_handle
Definition: pass_c.h:138
@ PASS_C_CTRL_PT_SILENT_MODE
Definition: pass_c.h:105
sdk_err_t pass_c_ringer_set_notify_set(uint8_t conn_idx, bool is_enable)
Enable or disable peer Ringer Setting characteristic notify.
Profile/Service Common Types.
uint16_t pass_ringer_ctrl_pt_handle
Definition: pass_c.h:139
@ PASS_C_EVT_RINGER_SET_RECEIVE
Definition: pass_c.h:119
@ PASS_C_CTRL_PT_MUTE_ONCE
Definition: pass_c.h:106
@ PASS_C_CTRL_PT_CANCEL_SLIENT_MODE
Definition: pass_c.h:107
uint16_t sdk_err_t
SDK API result type.
Definition: ble_error.h:243
void(* pass_c_evt_handler_t)(pass_c_evt_t *p_evt)
Phone Alert Status Service Client event handler type.
Definition: pass_c.h:160
sdk_err_t pass_c_ctrl_point_set(uint8_t conn_idx, uint8_t ctrl_value)
Set Control Point characteristic value.
@ PASS_C_EVT_DISCOVERY_COMPLETE
Definition: pass_c.h:114
Phone Alert Status Client Service event.
Definition: pass_c.h:144
uint16_t pass_alert_status_handle
Definition: pass_c.h:135
pass_c_evt_type_t
Phone Alert Status Service Client event type.
Definition: pass_c.h:112
uint8_t ringer_set
Definition: pass_c.h:150
sdk_err_t pass_c_ringer_set_read(uint8_t conn_idx)
Read Ringer Setting characteristic value.
@ PASS_C_EVT_ALERT_STATUS_NTF_SET_SUCCESS
Definition: pass_c.h:116
sdk_err_t pass_c_disc_srvc_start(uint8_t conn_idx)
Discovery Phone Alert Status Service on peer.
uint16_t pass_srvc_end_handle
Definition: pass_c.h:134