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

Data Structures

struct  BleCyclingSpeedAndCadenceServiceMeasurement
 
union  BleCyclingSpeedAndCadenceServiceMeasurementFlags
 

Macros

#define BLE_CYCLINGSPEEDANDCADENCESERVICE_SUPPORT_CRANK_REVOLUTION_DATA   1
 
#define BLE_CYCLINGSPEEDANDCADENCESERVICE_SUPPORT_WHEEL_REVOLUTION_DATA   1
 
#define BLE_SUPPORT_CYCLINGSPEEDANDCADENCE_SERVICE   0
 
#define BLECSCSERVICE_FLAGBITMASK_CRANKREVOLUTIONDATAMEASUREMENT   (0x02u)
 
#define BLECSCSERVICE_FLAGBITMASK_WHEELREVOLUTIONDATAMEASUREMENT   (0x01u)
 
#define BLECYCLINGSPEEDANDCADENCESERVICE_EVENT_CUMULATIVEWHEELVALUEUPDATED   0xDC
 
#define BLEINFOTYPE_CYCLINGSPEEDANDCADENCESERVICE_CONTROLPOINT_CLIENTCONFIG   0xB8
 
#define BLEINFOTYPE_CYCLINGSPEEDANDCADENCESERVICE_MEASUREMENT_CLIENTCONFIG   0xB7
 

Typedefs

typedef void(* BleCyclingSpeedAndCadenceServiceCallBack )(BleCyclingSpeedAndCadenceServiceEvent event, BleStatus status, void *parms)
 
typedef U8 BleCyclingSpeedAndCadenceServiceEvent
 
typedef U8 BleCyclingSpeedAndCadenceServiceFlags
 

Macro Definition Documentation

#define BLE_CYCLINGSPEEDANDCADENCESERVICE_SUPPORT_CRANK_REVOLUTION_DATA   1

BLE_CYCLINGSPEEDANDCADENCESERVICE_SUPPORT_CRANK_REVOLUTION_DATA Define if the the CSC Sensor supports (1) or not (0) to set the Crank Revolution Data value in a measurement. The default value is supported (1)

#define BLE_CYCLINGSPEEDANDCADENCESERVICE_SUPPORT_WHEEL_REVOLUTION_DATA   1

BLE_CYCLINGSPEEDANDCADENCESERVICE_SUPPORT_WHEEL_REVOLUTION_DATA Define if the the CSC Sensor supports (1) or not (0) to set the Wheel Revolution Data values in a measurement. The default value is supported (1)

#define BLE_SUPPORT_CYCLINGSPEEDANDCADENCE_SERVICE   0

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

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

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

#define BLECSCSERVICE_FLAGBITMASK_CRANKREVOLUTIONDATAMEASUREMENT   (0x02u)
#define BLECSCSERVICE_FLAGBITMASK_WHEELREVOLUTIONDATAMEASUREMENT   (0x01u)
#define BLECYCLINGSPEEDANDCADENCESERVICE_EVENT_CUMULATIVEWHEELVALUEUPDATED   0xDC

BLECYCLINGSPEEDANDCADENCESERVICE_EVENT_CUMULATIVEWHEELVALUEUPDATED Event received when a Collector has a new Cumulative Value for the cumulative wheel revolution. The Status field is always BLESTATUS_SUCCESS The parms field indicates the new cumulative value as a U32 U32 cumulativeWheelRevolution = *((U32 *) parms). NOTE : The Sensor shall apply/set the new cumulative value when receiving this event. This event is only applicable when BLE_CYCLINGSPEEDANDCADENCESERVICE_SUPPORT_WHEEL_REVOLUTION_DATA is supported

#define BLEINFOTYPE_CYCLINGSPEEDANDCADENCESERVICE_CONTROLPOINT_CLIENTCONFIG   0xB8
#define BLEINFOTYPE_CYCLINGSPEEDANDCADENCESERVICE_MEASUREMENT_CLIENTCONFIG   0xB7

Typedef Documentation

typedef void(* BleCyclingSpeedAndCadenceServiceCallBack)(BleCyclingSpeedAndCadenceServiceEvent event, BleStatus status, void *parms)

BleCyclingSpeedAndCadenceServiceCallBack This callback receives the CYCLING 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.

BleCyclingSpeedAndCadenceServiceEvent type Define the different kind of events that could be received by the BleCyclingSpeedAndCadenceServiceCallBack

BleCyclingSpeedAndCadenceServiceFlags 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