YUFEI JIANG / Mbed 2 deprecated CSSE4011_BLE_IMU

Dependencies:   BLE_API_Tiny_BLE MPU6050-DMP-Seeed-Tiny-BLE mbed

Embed: (wiki syntax)

« Back to documentation index

MPUService Class Reference

MPUService Class Reference

BLE Service to enable MPU6050 over BLE. More...

#include <MPUService.h>

Public Member Functions

 MPUService (BLEDevice &_ble, float *initialYPRData)
uint16_t getSettingCharacteristic ()
 Note: TX and RX characteristics are to be interpreted from the viewpoint of the GATT client using this service.
void updateYawPitchRoll (float *yprData)
 Update the temperature being broadcast.

Static Public Attributes

static const unsigned GATT_MTU_SIZE_DEFAULT = 23
 < Maximum length of data (in bytes) that can be transmitted by the UART service module to the peer.

Detailed Description

BLE Service to enable MPU6050 over BLE.

Definition at line 46 of file MPUService.h.


Constructor & Destructor Documentation

MPUService ( BLEDevice &  _ble,
float *  initialYPRData 
)
Parameters:
ref]ble BLEDevice object for the underlying controller.

Definition at line 62 of file MPUService.h.


Member Function Documentation

uint16_t getSettingCharacteristic (  )

Note: TX and RX characteristics are to be interpreted from the viewpoint of the GATT client using this service.

Definition at line 91 of file MPUService.h.

void updateYawPitchRoll ( float *  yprData )

Update the temperature being broadcast.

Parameters:
[in]temperatureFloating point value of the temperature

Definition at line 105 of file MPUService.h.


Field Documentation

const unsigned GATT_MTU_SIZE_DEFAULT = 23 [static]

< Maximum length of data (in bytes) that can be transmitted by the UART service module to the peer.

Definition at line 51 of file MPUService.h.