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 Client has set Notification of Ringer Setting characteristic.
@ PASS_C_EVT_ALERT_STATUS_RECEIVE
PASS Client has received Alert Status value (Read or Notification from peer).
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
PASS Client found PASS service failed because of invalid operation or no found at the peer.
Handles on the connected peer device needed to interact with it.
uint8_t alert_status
Alert status received.
@ PASS_C_EVT_WRITE_OP_ERR
Error occured when PASS Client writen to peer.
pass_c_ringer_ctrl_pt_t
Phone Alert Status Service Client Ringer Control Point.
@ PASS_C_EVT_CTRL_POINT_SET_SUCCESS
PASS Client has writen Control Point completely.
uint16_t pass_ringer_set_handle
PASS Ringer Setting characteristic Value handle which has been got from peer.
uint16_t pass_alert_status_cccd_handle
PASS CCCD handle of Alert Status characteristic which has been got from peer.
uint16_t pass_srvc_start_handle
PASS Service start handle.
sdk_err_t pass_c_alert_status_read(uint8_t conn_idx)
Read Alert Status characteristic value.
uint8_t conn_idx
The index of the connection.
pass_c_evt_type_t evt_type
The PASS event 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 CCCD handle of Ringer Setting characteristic which has been got from peer.
@ PASS_C_CTRL_PT_SILENT_MODE
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 Ringer Control Point characteristic Value handle which has been got from peer.
@ PASS_C_EVT_RINGER_SET_RECEIVE
PASS Client has received Ringer Setting Value (Read or Notification from peer).
@ PASS_C_CTRL_PT_MUTE_ONCE
Mute Once.
@ PASS_C_CTRL_PT_CANCEL_SLIENT_MODE
Cancel Silent 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
PASS Client has found PASS service and its characteristics.
Phone Alert Status Client Service event.
uint16_t pass_alert_status_handle
PASS Alert Status characteristic Value handle which has been got from peer.
pass_c_evt_type_t
Phone Alert Status Service Client event type.
uint8_t ringer_set
Ringer setting received.
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
PASS Client has set Notification of Alert Status characteristic.
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
PASS Service end handle.