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

This file provides definitions of the Heart rate profile Server(HRS) library interface. More...

Data Structures

struct  wiced_bt_hrs_handles_t
 List of Handles of the Heart Rate Service. More...
 
struct  wiced_bt_hrs_notification_enabled_t
 Data associated with WICED_BT_HRS_EVENT_HEART_RATE_NOTIFICATIONS_ENABLED. More...
 
struct  wiced_bt_hrs_notification_disabled_t
 Data associated with WICED_BT_HRS_EVENT_HEART_RATE_NOTIFICATIONS_DISABLED. More...
 
struct  wiced_bt_hrs_reset_energy_expended_t
 Data associated with WICED_BT_HRS_RESET_ENERGY_EXPENDED_VALUE. More...
 
struct  wiced_bt_hrs_notification_data_t
 Heart Rate Notification data. More...
 
union  wiced_bt_hrs_event_data_t
 Union of data associated with HRS events. More...
 

Typedefs

typedef void( wiced_bt_hrs_event_cback_t )(wiced_bt_hrs_event_t event, wiced_bt_hrs_event_data_t *p_data)
 HRS Callback function wiced_bt_hrs_event_cback_t. More...
 

Enumerations

enum  wiced_bt_hrs_event_t { WICED_BT_HRS_EVENT_HEART_RATE_NOTIFICATIONS_ENABLED, WICED_BT_HRS_EVENT_HEART_RATE_NOTIFICATIONS_DISABLED, WICED_BT_HRS_RESET_ENERGY_EXPENDED_VALUE }
 HRC Events received by the applicaton's HRS callback (see wiced_bt_hrs_callback_t) More...
 

Functions

wiced_result_t wiced_bt_hrs_init (wiced_bt_hrs_event_cback_t *p_callback, wiced_bt_hrs_handles_t *p_gatt_handles)
 The application calls this function on start up to initialize HRS library. More...
 
void wiced_bt_hrs_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_hrs_connection_down (uint16_t conn_id)
 The application calls this function when LE connection with a peer device has been disconnected. More...
 
wiced_bt_gatt_status_t wiced_bt_hrs_process_client_read_req (uint16_t conn_id, wiced_bt_gatt_read_t *p_read)
 The application calls this function when it receives GATT read request on Heart rate service characteristic and descriptors. More...
 
wiced_bt_gatt_status_t wiced_bt_hrs_process_client_write_req (uint16_t conn_id, wiced_bt_gatt_write_t *p_write)
 The application calls this function when it receives GATT write request on Heart rate service characteristic and descriptors. More...
 
wiced_bt_gatt_status_t wiced_bt_hrs_send_heart_rate (uint16_t conn_id, wiced_bt_hrs_notification_data_t *p_heart_rate_data)
 The application calls this function to send heart rate notification. More...
 
void wiced_bt_hrs_set_previous_connection_client_notification_configuration (uint16_t conn_id, wiced_bool_t notifications_enabled)
 The application should call this API on successful encryption with Heart Rate client. More...
 

Detailed Description

This file provides definitions of the Heart rate profile Server(HRS) library interface.