hrrcps.h File Reference

HRS RSCS Relay Control Point Service API. More...

#include "ble_prf_types.h"
#include "gr_includes.h"
#include "custom_config.h"
#include <stdint.h>
#include <stdbool.h>

Go to the source code of this file.

Classes

struct  hrrcps_rsp_val_t
 HRS RSCS Relay Control Point Response value. More...
 
struct  hrrcps_evt_t
 HRS RSCS Relay Control Point Service event. More...
 

Macros

#define HRRCPS_CONNECTION_MAX   10
 
#define HRRCPS_CTRL_PT_VAL_LEN   2
 
#define HRRCPS_CTRL_PT_RSP_VAL_LEN   4
 
#define HRRCPS_SERVICE_UUID
 

Typedefs

typedef void(* hrrcps_evt_handler_t) (hrrcps_evt_t *p_evt)
 HRS RSCS Relay Control Point Service event handler type. More...
 

Enumerations

enum  hrrcps_ctrl_pt_id_t {
  HRRCPS_CTRL_PT_SCAN_HRS = 0x01,
  HRRCPS_CTRL_PT_SCAN_RSCS,
  HRRCPS_CTRL_PT_HRS_SEN_LOC_READ,
  HRRCPS_CTRL_PT_RSCS_SEN_LOC_READ,
  HRRCPS_CTRL_PT_HRS_NTF_ENABLE,
  HRRCPS_CTRL_PT_HRS_NTF_DISABLE,
  HRRCPS_CTRL_PT_RSCS_NTF_ENABLE,
  HRRCPS_CTRL_PT_RSCS_NTF_DISABLE,
  HRRCPS_CTRL_PT_HRS_CONN_STA_REPORT,
  HRRCPS_CTRL_PT_RSCS_CONN_STA_REPORT,
  HRRCPS_CTRL_PT_HRS_DISCONN,
  HRRCPS_CTRL_PT_RSCS_DISCONN,
  HRRCPS_CTRL_PT_RSP_CODE = 0xff
}
 HRS RSCS Relay Control Point Service Control Point IDs. More...
 
enum  hrrcps_rsp_id_t {
  HRRCPS_RSP_ID_OK = 0x01,
  HRRCPS_RSP_ID_ERROR
}
 HRS RSCS Relay Control Point Service Response IDs of Control Point. More...
 
enum  hrrcps_evt_type_t {
  HRRCPS_EVT_INVALID,
  HRRCPS_EVT_CTRL_PT_IND_ENABLE,
  HRRCPS_EVT_CTRL_PT_IND_DISABLE,
  HRRCPS_EVT_SCAN_HRS,
  HRRCPS_EVT_SCAN_RSCS,
  HRRCPS_EVT_ENABLE_HRS_NTF,
  HRRCPS_EVT_DISABLE_HRS_NTF,
  HRRCPS_EVT_ENABLE_RSCS_NTF,
  HRRCPS_EVT_DISABLE_RSCS_NTF,
  HRRCPS_EVT_HRS_SENSOR_LOC_READ,
  HRRCPS_EVT_RSCS_SENSOR_LOC_READ,
  HRRCPS_EVT_DISCONN_HRS_LINK,
  HRRCPS_EVT_DISCONN_RSCS_LINK
}
 HRS RSCS Relay Control Point Service event type. More...
 

Functions

sdk_err_t hrrcps_service_init (hrrcps_evt_handler_t evt_handler)
 Initialize an Alert Notification Service instance and add in the DB. More...
 
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. More...
 

Detailed Description

HRS RSCS Relay Control Point Service API.

Attention
#####Copyright (c) 2019 GOODIX All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. Neither the name of GOODIX nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file hrrcps.h.