Update for latest nRF51822 code changes.

Dependencies:   BLE_API nRF51822

Fork of Puck by Nordic Pucks

Committer:
stiaje
Date:
Tue Jul 15 14:33:09 2014 +0000
Revision:
0:718051934fdb
Child:
1:29b2cca0d529
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
stiaje 0:718051934fdb 1 #ifndef __PUCK_HPP__
stiaje 0:718051934fdb 2 #define __PUCK_HPP__
stiaje 0:718051934fdb 3
stiaje 0:718051934fdb 4 #include "BLEDevice.h"
stiaje 0:718051934fdb 5
stiaje 0:718051934fdb 6 class Puck {
stiaje 0:718051934fdb 7 private:
stiaje 0:718051934fdb 8
stiaje 0:718051934fdb 9 BLEDevice _ble;
stiaje 0:718051934fdb 10
stiaje 0:718051934fdb 11 uint8_t _beaconPayload[25];
stiaje 0:718051934fdb 12
stiaje 0:718051934fdb 13 bool _connectable;
stiaje 0:718051934fdb 14
stiaje 0:718051934fdb 15 public:
stiaje 0:718051934fdb 16 /** Initialize the Puck library
stiaje 0:718051934fdb 17 */
stiaje 0:718051934fdb 18 Puck(bool connectable, uint16_t minor);
stiaje 0:718051934fdb 19
stiaje 0:718051934fdb 20 /** The BLE Device
stiaje 0:718051934fdb 21 * @return ble device
stiaje 0:718051934fdb 22 */
stiaje 0:718051934fdb 23 BLEDevice ble() { return _ble; }
stiaje 0:718051934fdb 24
stiaje 0:718051934fdb 25 /** Initialize the BLE Device and start advertising
stiaje 0:718051934fdb 26 */
stiaje 0:718051934fdb 27 void init();
stiaje 0:718051934fdb 28 };
stiaje 0:718051934fdb 29
stiaje 0:718051934fdb 30 #endif // __PUCK_HPP__