nRF51 SDK v10.0.0
Data Structures | Macros | Typedefs | Enumerations | Functions
Running Speed and Cadence Service Client

Data Structures

struct  ble_rsc_t
 Structure containing the Running Speed and Cadence measurement received from the peer. More...
 
struct  ble_rscs_c_evt_t
 Running Speed and Cadence Event structure. More...
 
struct  ble_rscs_c_s
 Running Speed and Cadence client structure. More...
 
struct  ble_rscs_c_init_t
 Running Speed and Cadence client initialization structure. More...
 

Macros

#define BLE_RSCS_INSTANT_STRIDE_LEN_PRESENT   0x00
 
#define BLE_RSCS_TOTAL_DISTANCE_PRESENT   0x01
 
#define BLE_RSCS_WALKING_OR_RUNNING_STATUS_BIT   0x02
 

Typedefs

typedef struct ble_rscs_c_s ble_rscs_c_t
 
typedef void(* ble_rscs_c_evt_handler_t )(ble_rscs_c_t *p_ble_rscs_c, ble_rscs_c_evt_t *p_evt)
 Event handler type. More...
 

Enumerations

enum  ble_rscs_c_evt_type_t {
  BLE_RSCS_C_EVT_DISCOVERY_COMPLETE = 1,
  BLE_RSCS_C_EVT_RSC_NOTIFICATION
}
 RSCS Client event type. More...
 

Functions

uint32_t ble_rscs_c_init (ble_rscs_c_t *p_ble_rscs_c, ble_rscs_c_init_t *p_ble_rscs_c_init)
 
void ble_rscs_c_on_ble_evt (ble_rscs_c_t *p_ble_rscs_c, const ble_evt_t *p_ble_evt)
 
uint32_t ble_rscs_c_rsc_notif_enable (ble_rscs_c_t *p_ble_rscs_c)
 

Detailed Description

This module contains the APIs and types exposed by the Running Speed and Cadence Service Client module. These APIs and types can be used by the application to perform discovery of Running Speed and Cadence Service at the peer and interact with it.

Note
The application must propagate BLE stack events to this module by calling ble_rscs_c_on_ble_evt().

Macro Definition Documentation

#define BLE_RSCS_INSTANT_STRIDE_LEN_PRESENT   0x00

Instantaneous Stride Length Measurement Supported bit.

#define BLE_RSCS_TOTAL_DISTANCE_PRESENT   0x01

Total Distance Measurement Supported bit.

#define BLE_RSCS_WALKING_OR_RUNNING_STATUS_BIT   0x02

Walking or Running Status Supported bit.

Typedef Documentation

typedef void(* ble_rscs_c_evt_handler_t)(ble_rscs_c_t *p_ble_rscs_c, ble_rscs_c_evt_t *p_evt)

Event handler type.

This is the type of the event handler that should be provided by the application of this module in order to receive events.

Enumeration Type Documentation

RSCS Client event type.

Enumerator
BLE_RSCS_C_EVT_DISCOVERY_COMPLETE 

Event indicating that the Running Speed and Cadence Service has been discovered at the peer.

BLE_RSCS_C_EVT_RSC_NOTIFICATION 

Event indicating that a notification of the Running Speed and Cadence measurement characteristic has been received from the peer.


This document was last updated on Mon Nov 9 2015.
Please send us your feedback about the documentation! For technical questions, visit the Nordic Developer Zone.