Go to the documentation of this file.
62 #include "custom_config.h"
70 #define HRRCPS_CONNECTION_MAX 10
71 #define HRRCPS_CTRL_PT_VAL_LEN 2
72 #define HRRCPS_CTRL_PT_RSP_VAL_LEN 4
73 #define HRRCPS_SERVICE_UUID 0x1B, 0xD7, 0x90, 0xEC, 0xE8, 0xB9, 0x75, 0x80,\
74 0x0A, 0x46, 0x44, 0xD3, 0x01, 0x06, 0xED, 0xA6
@ HRRCPS_CTRL_PT_HRS_NTF_ENABLE
Enable HRS notification.
bool is_inc_prama
Parameter is included or not.
hrrcps_rsp_id_t
HRS RSCS Relay Control Point Service Response IDs of Control Point.
@ HRRCPS_CTRL_PT_SCAN_RSCS
Scan RSCS device.
@ HRRCPS_EVT_DISABLE_RSCS_NTF
Disable RSCS notificaiton.
HRS RSCS Relay Control Point Response value.
@ HRRCPS_CTRL_PT_RSCS_NTF_DISABLE
Disable RSCS notification.
@ HRRCPS_EVT_DISCONN_RSCS_LINK
Disconnect RSCS link.
@ HRRCPS_CTRL_PT_HRS_SEN_LOC_READ
Read HRS sensor location.
@ HRRCPS_EVT_ENABLE_HRS_NTF
Enable HRS notification.
@ HRRCPS_CTRL_PT_HRS_CONN_STA_REPORT
Report HRS connection state.
sdk_err_t hrrcps_ctrl_pt_rsp_send(uint8_t conn_idx, hrrcps_rsp_val_t *p_rsp_val)
Send Control Point Response if its indicaiton has been enabled.
uint8_t conn_idx
The index of the connection.
hrrcps_ctrl_pt_id_t cmd_id
Control Point ID.
@ HRRCPS_EVT_INVALID
Invalid HRRCPS event type.
@ HRRCPS_RSP_ID_OK
Success.
@ HRRCPS_CTRL_PT_RSCS_SEN_LOC_READ
Read RSCS sensor location.
@ HRRCPS_EVT_CTRL_PT_IND_ENABLE
HRR Control Point indicaiton is enabled.
hrrcps_evt_type_t
HRS RSCS Relay Control Point Service event type.
@ HRRCPS_EVT_HRS_SENSOR_LOC_READ
Read HRS sensor location.
@ HRRCPS_EVT_RSCS_SENSOR_LOC_READ
Read RSCS sensor location.
@ HRRCPS_CTRL_PT_RSCS_DISCONN
Disconnect RSCS link.
@ HRRCPS_RSP_ID_ERROR
Fail.
hrrcps_ctrl_pt_id_t
HRS RSCS Relay Control Point Service Control Point IDs.
sdk_err_t hrrcps_service_init(hrrcps_evt_handler_t evt_handler)
Initialize an Alert Notification Service instance and add in the DB.
Profile/Service Common Types.
uint16_t sdk_err_t
SDK API result type.
@ HRRCPS_CTRL_PT_SCAN_HRS
Scan HRS device.
@ HRRCPS_EVT_DISCONN_HRS_LINK
Disconnect HRS link.
@ HRRCPS_CTRL_PT_RSP_CODE
Response code.
hrrcps_evt_type_t evt_type
The HRRCPS event type.
uint8_t rsp_param
Response parameters.
@ HRRCPS_CTRL_PT_HRS_DISCONN
Disconnect HRS link.
@ HRRCPS_CTRL_PT_RSCS_CONN_STA_REPORT
Report RSCS connecntion state.
void(* hrrcps_evt_handler_t)(hrrcps_evt_t *p_evt)
HRS RSCS Relay Control Point Service event handler type.
@ HRRCPS_EVT_ENABLE_RSCS_NTF
Enable RSCS notificaiton.
@ HRRCPS_CTRL_PT_RSCS_NTF_ENABLE
Enable RSCS notification.
hrrcps_rsp_id_t rsp_id
Response ID.
@ HRRCPS_EVT_CTRL_PT_IND_DISABLE
HRR Control Point indicaiton is disabled.
@ HRRCPS_EVT_DISABLE_HRS_NTF
Disable HRS notification.
@ HRRCPS_CTRL_PT_HRS_NTF_DISABLE
Disable HRS notification.
@ HRRCPS_EVT_SCAN_RSCS
Scan RSCS device.
@ HRRCPS_EVT_SCAN_HRS
Scan HRS device.
HRS RSCS Relay Control Point Service event.