Application running on nRF51822 PCA10001
Dependencies: BLE_API MMA8652 nRF51822 mbed-src
BuddiService.h
00001 #ifndef _H_BUDDISERVICE_H 00002 #define _H_BUDDISERVICE_H 00003 00004 #include "BLEDevice.h" 00005 #include "GattCharacteristicWriteCBParams.h" 00006 00007 namespace Nudge { 00008 void init(BLEDevice &ble); 00009 void setLEDValue(uint8_t led, uint8_t value); 00010 void handleDataWritten(uint16_t handle, const GattCharacteristicWriteCBParams *params); 00011 const uint8_t* getServiceUUIDp(); 00012 } 00013 00014 #define MODULE_SWITCH 0x01 00015 #define MODULE_LED 0x02 00016 #define MODULE_ACCELEROMETER 0x03 00017 #define MODULE_TEMPERATURE 0x04 00018 #define MODULE_GPIO 0x05 00019 #define MODULE_NEO_PIXEL 0x06 00020 #define MODULE_IBEACON 0x07 00021 #define MODULE_HAPTIC 0x08 00022 #define MODULE_DEBUG 0xFE 00023 00024 #endif //_H_BUDDISERVICE_H
Generated on Tue Jul 12 2022 15:39:00 by 1.7.2