Application running on nRF51822 PCA10001
Dependencies: BLE_API MMA8652 nRF51822 mbed-src
BuddiService.h@4:630f1560a0f3, 2014-09-03 (annotated)
- Committer:
- rosterloh84
- Date:
- Wed Sep 03 07:04:54 2014 +0000
- Revision:
- 4:630f1560a0f3
- Parent:
- 3:596283411a00
Library updates
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
rosterloh84 | 3:596283411a00 | 1 | #ifndef _H_BUDDISERVICE_H |
rosterloh84 | 3:596283411a00 | 2 | #define _H_BUDDISERVICE_H |
rosterloh84 | 3:596283411a00 | 3 | |
rosterloh84 | 3:596283411a00 | 4 | #include "BLEDevice.h" |
rosterloh84 | 4:630f1560a0f3 | 5 | #include "GattCharacteristicWriteCBParams.h" |
rosterloh84 | 3:596283411a00 | 6 | |
rosterloh84 | 3:596283411a00 | 7 | namespace Nudge { |
rosterloh84 | 3:596283411a00 | 8 | void init(BLEDevice &ble); |
rosterloh84 | 3:596283411a00 | 9 | void setLEDValue(uint8_t led, uint8_t value); |
rosterloh84 | 4:630f1560a0f3 | 10 | void handleDataWritten(uint16_t handle, const GattCharacteristicWriteCBParams *params); |
rosterloh84 | 3:596283411a00 | 11 | const uint8_t* getServiceUUIDp(); |
rosterloh84 | 3:596283411a00 | 12 | } |
rosterloh84 | 3:596283411a00 | 13 | |
rosterloh84 | 3:596283411a00 | 14 | #define MODULE_SWITCH 0x01 |
rosterloh84 | 3:596283411a00 | 15 | #define MODULE_LED 0x02 |
rosterloh84 | 3:596283411a00 | 16 | #define MODULE_ACCELEROMETER 0x03 |
rosterloh84 | 3:596283411a00 | 17 | #define MODULE_TEMPERATURE 0x04 |
rosterloh84 | 3:596283411a00 | 18 | #define MODULE_GPIO 0x05 |
rosterloh84 | 3:596283411a00 | 19 | #define MODULE_NEO_PIXEL 0x06 |
rosterloh84 | 3:596283411a00 | 20 | #define MODULE_IBEACON 0x07 |
rosterloh84 | 3:596283411a00 | 21 | #define MODULE_HAPTIC 0x08 |
rosterloh84 | 3:596283411a00 | 22 | #define MODULE_DEBUG 0xFE |
rosterloh84 | 3:596283411a00 | 23 | |
rosterloh84 | 3:596283411a00 | 24 | #endif //_H_BUDDISERVICE_H |