Pull request for i.a. sensor buffer template

Dependencies:   BLE_API MPU6050 mbed nRF51822

Embed: (wiki syntax)

« Back to documentation index

AccelerationService Class Reference

AccelerationService Class Reference

BLE Acceleration Service. More...

#include <AccelerationService.h>

Public Member Functions

 AccelerationService (BLE &_ble)
void addAcceleration (int16_t *newAccel)
 Update the temperature with a new value.

Protected Attributes

BLE & ble
 A reference to the underlying BLE instance that this object is attached to.
int16_t temp
 The current temperature represented as 0.1 degrees Celsius.
ReadOnlyGattCharacteristic
< int16_t > 
accelerationXCharacteristic
 A ReadOnlyGattCharacteristic that allows access to the peer device to the temperature value through BLE.

Detailed Description

BLE Acceleration Service.

This service displays the acceleration

Definition at line 15 of file AccelerationService.h.


Constructor & Destructor Documentation

AccelerationService ( BLE &  _ble )
Parameters:
[in]_bleBLE object for the underlying controller.

Definition at line 21 of file AccelerationService.h.


Member Function Documentation

void addAcceleration ( int16_t *  newAccel )

Update the temperature with a new value.

Valid values lie between -2732 and above.

Parameters:
newTempUpdate to temperature.

Definition at line 40 of file AccelerationService.h.


Field Documentation

ReadOnlyGattCharacteristic<int16_t> accelerationXCharacteristic [protected]

A ReadOnlyGattCharacteristic that allows access to the peer device to the temperature value through BLE.

Definition at line 68 of file AccelerationService.h.

BLE& ble [protected]

A reference to the underlying BLE instance that this object is attached to.

The services and characteristics will be registered in this BLE instance.

Definition at line 55 of file AccelerationService.h.

int16_t temp [protected]

The current temperature represented as 0.1 degrees Celsius.

Definition at line 61 of file AccelerationService.h.