Go to the documentation of this file.
64 #include "custom_config.h"
77 #define PASS_C_CONNECTION_MAX 10
78 #define PASS_C_NO_STATE_ACTIVE (0x00)
79 #define PASS_C_RINGER_ACTIVE (0x01 << 0)
80 #define PASS_C_VIBRATE_ACTIVE (0x01 << 1)
81 #define PASS_C_DISPLAY_ALERT_ACTIVE (0x01 << 2)
82 #define PASS_C_ALL_STATE_ACTIVE (0x07)
85 #define PASS_C_RINGER_CTRL_PT_VAL_LEN 1
92 #define PASS_C_RINGER_SET_SILENT 0
93 #define PASS_C_RINGER_SET_NORMAL 1
@ PASS_C_EVT_RINGER_SET_NTF_SET_SUCCESS
@ PASS_C_EVT_ALERT_STATUS_RECEIVE
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
Handles on the connected peer device needed to interact with it.
@ PASS_C_EVT_WRITE_OP_ERR
pass_c_ringer_ctrl_pt_t
Phone Alert Status Service Client Ringer Control Point.
@ PASS_C_EVT_CTRL_POINT_SET_SUCCESS
uint16_t pass_ringer_set_handle
uint16_t pass_alert_status_cccd_handle
uint16_t pass_srvc_start_handle
sdk_err_t pass_c_alert_status_read(uint8_t conn_idx)
Read Alert Status characteristic value.
pass_c_evt_type_t evt_type
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
@ PASS_C_CTRL_PT_SILENT_MODE
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
@ PASS_C_EVT_RINGER_SET_RECEIVE
@ PASS_C_CTRL_PT_MUTE_ONCE
@ PASS_C_CTRL_PT_CANCEL_SLIENT_MODE
uint16_t sdk_err_t
SDK API result type.
void(* pass_c_evt_handler_t)(pass_c_evt_t *p_evt)
Phone Alert Status Service Client event handler type.
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
Phone Alert Status Client Service event.
uint16_t pass_alert_status_handle
pass_c_evt_type_t
Phone Alert Status Service Client event type.
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
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