High level Bluetooth Low Energy API and radio abstraction layer
Fork of BLE_API by
Diff: hw/Gap.h
- Revision:
- 33:6d51a2c69442
- Parent:
- 31:2c94f0501807
- Child:
- 34:da2ea8cd6216
--- a/hw/Gap.h Tue Apr 01 11:33:50 2014 +0100 +++ b/hw/Gap.h Thu Apr 03 01:45:33 2014 +0100 @@ -36,7 +36,15 @@ GapEvents *m_pEventHandler; public: + typedef enum addr_type_e{ + ADDR_TYPE_PUBLIC = 0, + ADDR_TYPE_RANDOM_STATIC, + ADDR_TYPE_RANDOM_PRIVATE_RESOLVABLE, + ADDR_TYPE_RANDOM_PRIVATE_NON_RESOLVABLE + } addr_type_t; + /* These functions must be defined in the sub-class */ + virtual ble_error_t setAddress(addr_type_t type, uint8_t address[6]) = 0; virtual ble_error_t setAdvertisingData(GapAdvertisingData &, GapAdvertisingData &) = 0; virtual ble_error_t startAdvertising(GapAdvertisingParams &) = 0; virtual ble_error_t stopAdvertising(void) = 0;