XDK API  3.6.0
Documentation
Data Structures | Macros | Typedefs
BleRunningSpeedAndCadence_Service.h File Reference
#include "bleTypes.h"
+ Include dependency graph for BleRunningSpeedAndCadence_Service.h:

Data Structures

struct  BleRunningSpeedAndCadenceServiceMeasurement
 
union  BleRunningSpeedAndCadenceServiceMeasurementFlags
 

Macros

#define BLE_RUNNINGSPEEDANDCADENCESERVICE_SUPPORT_INSTANTANEOUS_STRIDE_LENGTH   0
 
#define BLE_RUNNINGSPEEDANDCADENCESERVICE_SUPPORT_RUNNING_STATUS   0
 
#define BLE_RUNNINGSPEEDANDCADENCESERVICE_SUPPORT_TOTAL_DISTANCE   0
 
#define BLE_SUPPORT_RUNNINGSPEEDANDCADENCE_SERVICE   0
 
#define BLEINFOTYPE_RUNNINGSPEEDANDCADENCESERVICE_CONTROLPOINT_CLIENTCONFIG   0xB1
 
#define BLEINFOTYPE_RUNNINGSPEEDANDCADENCESERVICE_MEASUREMENT_CLIENTCONFIG   0xB0
 
#define BLERSCSERVICE_FLAGBITMASK_INSTANTANEOUSSTRIDELENGTHMEASUREMENT   (0x01u)
 
#define BLERSCSERVICE_FLAGBITMASK_TOTALDISTANCEMEASUREMENT   (0x02u)
 
#define BLERSCSERVICE_FLAGBITMASK_WALKINGORRUNNINGSTATUS   (0x04u)
 
#define BLERUNNINGSPEEDANDCADENCESERVICE_EVENT_TOTALDISTANCEUPDATED   0xDD
 

Typedefs

typedef void(* BleRunningSpeedAndCadenceServiceCallBack )(BleRunningSpeedAndCadenceServiceEvent event, BleStatus status, void *parms)
 
typedef U8 BleRunningSpeedAndCadenceServiceEvent
 
typedef U8 BleRunningSpeedAndCadenceServiceFlags
 

Macro Definition Documentation

#define BLE_RUNNINGSPEEDANDCADENCESERVICE_SUPPORT_INSTANTANEOUS_STRIDE_LENGTH   0

BLE_RUNNINGSPEEDANDCADENCESERVICE_SUPPORT_INSTANTANEOUS_STRIDE_LENGTH Define if the the RSC Sensor supports (1) or not (0) to set the instantaneous stride length value in a measurement. The default value is not supported (0)

#define BLE_RUNNINGSPEEDANDCADENCESERVICE_SUPPORT_RUNNING_STATUS   0

BLE_RUNNINGSPEEDANDCADENCESERVICE_SUPPORT_RUNNING_STATUS Define if the the RSC Sensor supports (1) or not (0) to set the Running status bit defining if the sensor detect a run or a walk. The default value is not supported (0)

#define BLE_RUNNINGSPEEDANDCADENCESERVICE_SUPPORT_TOTAL_DISTANCE   0

BLE_RUNNINGSPEEDANDCADENCESERVICE_SUPPORT_TOTAL_DISTANCE Define if the the RSC Sensor supports (1) or not (0) to set the total Distance value in a measurement. The default value is not supported (0)

#define BLE_SUPPORT_RUNNINGSPEEDANDCADENCE_SERVICE   0

BLE_SUPPORT_RUNNINGSPEEDANDCADENCE_SERVICE Defines if the BLE local device enables access to the local RUNNING SPEED AND CADENCE service and characteristic.

If enabled ( set to 1 ) it enables Profiles or directly an Application to get access to the RUNNING SPEED AND CADENCE Service and characteristic

The default value for this option is disabled (0).

#define BLEINFOTYPE_RUNNINGSPEEDANDCADENCESERVICE_CONTROLPOINT_CLIENTCONFIG   0xB1
#define BLEINFOTYPE_RUNNINGSPEEDANDCADENCESERVICE_MEASUREMENT_CLIENTCONFIG   0xB0
#define BLERSCSERVICE_FLAGBITMASK_INSTANTANEOUSSTRIDELENGTHMEASUREMENT   (0x01u)
#define BLERSCSERVICE_FLAGBITMASK_TOTALDISTANCEMEASUREMENT   (0x02u)
#define BLERSCSERVICE_FLAGBITMASK_WALKINGORRUNNINGSTATUS   (0x04u)
#define BLERUNNINGSPEEDANDCADENCESERVICE_EVENT_TOTALDISTANCEUPDATED   0xDD

BLERUNNINGSPEEDANDCADENCESERVICE_EVENT_TOTALDISTANCEUPDATED Event received when a collector has Set a new Cumulative Value for the total distance. The Status field is always BLESTATUS_SUCCESS The parms field indicates the total distance value as a U32 U32 totalDistance = *((U32 *) parms). NOTE : The Sensor shall apply/set the new Total Distance Value when receiving this event. This event is only applicable when BLE_RUNNINGSPEEDANDCADENCESERVICE_SUPPORT_TOTAL_DISTANCE is supported

Typedef Documentation

typedef void(* BleRunningSpeedAndCadenceServiceCallBack)(BleRunningSpeedAndCadenceServiceEvent event, BleStatus status, void *parms)

BleRunningSpeedAndCadenceServiceCallBack This callback receives the RUNNING SPEED AND CADENCE SERVICE events. Each events may be assiociated with specified status and parameters. The callback is executed during the stack context, be careful to not doing heavy process in this function.

BleRunningSpeedAndCadenceServiceEvent type Define the different kind of events that could be received by the BleRunningSpeedAndCadenceServiceCallBack

BleRunningSpeedAndCadenceServiceFlags type Bitfield defining the available flags values.


All rights reserved. The use is subject to the XDK SDK EULA by Bosch Connected Devices and Solutions GmbH.
This documentation file has been automatically generated on Thu Mar 14 2019 19:12:41 by doxygen 1.8.8