Infineon Logo AIROC BTSDK v4.9 - Documentation
 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
wiced_bt_hrc.h File Reference

This file provides definitions of the Heart rate profile Client(HRC) library interface. More...

Data Structures

struct  wiced_bt_hrc_discovery_t
 Data associated with WICED_BT_HRC_EVENT_DISCOVERY. More...
 
struct  wiced_bt_hrc_start_t
 Data associated with WICED_BT_HRC_EVENT_START. More...
 
struct  wiced_bt_hrc_stop_t
 Data associated with WICED_BT_HRC_EVENT_STOP. More...
 
struct  wiced_bt_hrc_reset_energy_expended_t
 Data associated with WICED_BT_HRC_EVENT_RESET_ENERGY_EXPENDED. More...
 
struct  wiced_bt_hrc_notification_data_t
 Data associated with WICED_BT_HRC_EVENT_NOTIFICATION_DATA. More...
 
union  wiced_bt_hrc_event_data_t
 Union of data associated with HRC events. More...
 

Typedefs

typedef void( wiced_bt_hcr_callback_t )(wiced_bt_hrc_event_t event, wiced_bt_hrc_event_data_t *p_data)
 HRC Callback function type wiced_bt_hrc_callback_t. More...
 

Enumerations

enum  wiced_bt_hrc_event_t {
  WICED_BT_HRC_EVENT_DISCOVERY, WICED_BT_HRC_EVENT_START, WICED_BT_HRC_EVENT_STOP, WICED_BT_HRC_EVENT_RESET_ENERGY_EXPENDED,
  WICED_BT_HRC_EVENT_NOTIFICATION_DATA
}
 HRC Events received by the applicaton's HRC callback (see wiced_bt_hrc_callback_t) More...
 

Functions

wiced_result_t wiced_bt_hrc_init (wiced_bt_hcr_callback_t *p_callback)
 The application calls this function to initialize the HRC library and to register application callback. More...
 
wiced_bt_gatt_status_t wiced_bt_hrc_discover (uint16_t conn_id, uint16_t s_handle, uint16_t e_handle)
 The application calls this function when it discovers the HRS service of the connected device. More...
 
void wiced_bt_hrc_discovery_result (wiced_bt_gatt_discovery_result_t *p_data)
 The application calls this API during GATT discovery to pass discovery results for the HRC service to the HRC Library. More...
 
void wiced_bt_hrc_discovery_complete (wiced_bt_gatt_discovery_complete_t *p_data)
 The application calls this API during GATT discovery to pass discovery complete information for the HRC service to the HRC Library. More...
 
void wiced_bt_hrc_connection_up (uint16_t conn_id)
 The application calls this function when LE connection with a peer device has been established. More...
 
void wiced_bt_hrc_connection_down (uint16_t conn_id)
 The application calls this function when LE connection with a peer device has been released. More...
 
wiced_bt_gatt_status_t wiced_bt_hrc_start (uint16_t conn_id)
 The application calls this function whenever it is needed to collect Heart Rate. More...
 
wiced_bt_gatt_status_t wiced_bt_hrc_stop (uint16_t conn_id)
 The application calls this function whenever it need to stop to collect Heart Rate. More...
 
wiced_bt_gatt_status_t wiced_bt_hrc_reset_energy_expended (uint16_t conn_id)
 The application calls this function to reset accumulated Energy expended value during heart rate measure process. More...
 
void wiced_bt_hrc_gatt_op_complete (wiced_bt_gatt_operation_complete_t *p_data)
 The application calls this function when it receive GATT operation complete event on heart rate service characteristics. More...
 

Detailed Description

This file provides definitions of the Heart rate profile Client(HRC) library interface.