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) |
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.
#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 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.
RSCS Client event type.