PebbleOS
Loading...
Searching...
No Matches
Macros | Functions
Pebble identifiers

Pebble-specific Bluetooth identifiers: service and characteristic UUIDs. More...

Macros

#define PBL_BT_PPS_UUID_16BIT   (0xFED9)
 Bluetooth SIG registered 16-bit UUID of Pebble Technology, the Pebble service.
 
#define PBL_BT_PEBBLE_PPOGATT_SERVICE_UUID_32BIT   (0x10000000)
 Service UUID of Pebble Protocol over GATT (PPoGATT), the phone being the server.
 
#define PBL_BT_PEBBLE_PPOGATT_DATA_CHARACTERISTIC_UUID_32BIT   (0x10000001)
 PPoGATT data characteristic.
 
#define PBL_BT_PEBBLE_PPOGATT_META_CHARACTERISTIC_UUID_32BIT   (0x10000002)
 PPoGATT meta characteristic.
 
#define PBL_BT_PEBBLE_PPOGATT_WATCH_SERVER_V1_SERVICE_UUID_32BIT   (0x30000003)
 Service UUID of the V1 watch-as-server PPoGATT, as shipped on Pebble 2 (DA1468x).
 
#define PBL_BT_PEBBLE_PPOGATT_WATCH_SERVER_V1_DATA_CHARACTERISTIC_UUID_32BIT   (0x30000004)
 V1 watch-as-server PPoGATT data characteristic.
 
#define PBL_BT_PEBBLE_PPOGATT_WATCH_SERVER_V1_META_CHARACTERISTIC_UUID_32BIT   (0x30000005)
 V1 watch-as-server PPoGATT meta characteristic.
 
#define PBL_BT_PEBBLE_PPOGATT_WATCH_SERVER_V1_DATA_WR_CHARACTERISTIC_UUID_32BIT   (0x30000006)
 V1 watch-as-server PPoGATT data write characteristic.
 
#define PBL_BT_PEBBLE_PPOGATT_WATCH_SERVER_SERVICE_UUID_32BIT   (0x40000000)
 Service UUID of the V2 "reversed" PPoGATT, see Reversed PPoGATT.
 
#define PBL_BT_PEBBLE_PPOGATT_WATCH_SERVER_DATA_CHARACTERISTIC_UUID_32BIT   (0x40000001)
 Reversed PPoGATT data characteristic, notified by the watch.
 
#define PBL_BT_PEBBLE_PPOGATT_WATCH_SERVER_DATA_WR_CHARACTERISTIC_UUID_32BIT   (0x40000003)
 Reversed PPoGATT data write characteristic, written by the phone.
 
#define PBL_BT_PEBBLE_APP_LAUNCH_SERVICE_UUID_32BIT   (0x20000000)
 Service UUID of the Pebble App Launch service.
 
#define PBL_BT_PEBBLE_APP_LAUNCH_CHARACTERISTIC_UUID_32BIT   (0x20000001)
 Pebble App Launch characteristic.
 
#define PBL_BT_PEBBLE_UUID_EXPAND(u)
 Compile-time version of pbl_bt_pebble_uuid_expand().
 

Functions

void pbl_bt_pebble_uuid_expand (Uuid *uuid, uint32_t value)
 Expand a 32-bit (or 16-bit) Pebble UUID with the Pebble Base UUID.
 

Detailed Description

Pebble-specific Bluetooth identifiers: service and characteristic UUIDs.

Pebble UUIDs are 32-bit values expanded with the Pebble Base UUID, XXXXXXXX-328E-0FBB-C642-1AA6699BDADA, either at run time or at compile time:

Uuid uuid;
static const Uuid s_app_launch_uuid = {
};
void pbl_bt_pebble_uuid_expand(Uuid *uuid, uint32_t value)
Expand a 32-bit (or 16-bit) Pebble UUID with the Pebble Base UUID.
#define PBL_BT_PEBBLE_PPOGATT_SERVICE_UUID_32BIT
Service UUID of Pebble Protocol over GATT (PPoGATT), the phone being the server.
Definition pebble_bt.h:32
#define PBL_BT_PEBBLE_UUID_EXPAND(u)
Compile-time version of pbl_bt_pebble_uuid_expand().
Definition pebble_bt.h:86
#define PBL_BT_PEBBLE_APP_LAUNCH_SERVICE_UUID_32BIT
Service UUID of the Pebble App Launch service.
Definition pebble_bt.h:64
A 128-bit UUID, with its bytes in the order they are written in string form.
Definition uuid.h:32

Macro Definition Documentation

◆ PBL_BT_PEBBLE_APP_LAUNCH_CHARACTERISTIC_UUID_32BIT

#define PBL_BT_PEBBLE_APP_LAUNCH_CHARACTERISTIC_UUID_32BIT   (0x20000001)

Pebble App Launch characteristic.

◆ PBL_BT_PEBBLE_APP_LAUNCH_SERVICE_UUID_32BIT

#define PBL_BT_PEBBLE_APP_LAUNCH_SERVICE_UUID_32BIT   (0x20000000)

Service UUID of the Pebble App Launch service.

◆ PBL_BT_PEBBLE_PPOGATT_DATA_CHARACTERISTIC_UUID_32BIT

#define PBL_BT_PEBBLE_PPOGATT_DATA_CHARACTERISTIC_UUID_32BIT   (0x10000001)

PPoGATT data characteristic.

◆ PBL_BT_PEBBLE_PPOGATT_META_CHARACTERISTIC_UUID_32BIT

#define PBL_BT_PEBBLE_PPOGATT_META_CHARACTERISTIC_UUID_32BIT   (0x10000002)

PPoGATT meta characteristic.

◆ PBL_BT_PEBBLE_PPOGATT_SERVICE_UUID_32BIT

#define PBL_BT_PEBBLE_PPOGATT_SERVICE_UUID_32BIT   (0x10000000)

Service UUID of Pebble Protocol over GATT (PPoGATT), the phone being the server.

◆ PBL_BT_PEBBLE_PPOGATT_WATCH_SERVER_DATA_CHARACTERISTIC_UUID_32BIT

#define PBL_BT_PEBBLE_PPOGATT_WATCH_SERVER_DATA_CHARACTERISTIC_UUID_32BIT   (0x40000001)

Reversed PPoGATT data characteristic, notified by the watch.

◆ PBL_BT_PEBBLE_PPOGATT_WATCH_SERVER_DATA_WR_CHARACTERISTIC_UUID_32BIT

#define PBL_BT_PEBBLE_PPOGATT_WATCH_SERVER_DATA_WR_CHARACTERISTIC_UUID_32BIT   (0x40000003)

Reversed PPoGATT data write characteristic, written by the phone.

◆ PBL_BT_PEBBLE_PPOGATT_WATCH_SERVER_SERVICE_UUID_32BIT

#define PBL_BT_PEBBLE_PPOGATT_WATCH_SERVER_SERVICE_UUID_32BIT   (0x40000000)

Service UUID of the V2 "reversed" PPoGATT, see Reversed PPoGATT.

The phone is the GATT client and sends the first ResetRequest after subscribing. There is no meta characteristic; 0x40000002 is reserved in case a future revision needs one.

◆ PBL_BT_PEBBLE_PPOGATT_WATCH_SERVER_V1_DATA_CHARACTERISTIC_UUID_32BIT

#define PBL_BT_PEBBLE_PPOGATT_WATCH_SERVER_V1_DATA_CHARACTERISTIC_UUID_32BIT   (0x30000004)

V1 watch-as-server PPoGATT data characteristic.

◆ PBL_BT_PEBBLE_PPOGATT_WATCH_SERVER_V1_DATA_WR_CHARACTERISTIC_UUID_32BIT

#define PBL_BT_PEBBLE_PPOGATT_WATCH_SERVER_V1_DATA_WR_CHARACTERISTIC_UUID_32BIT   (0x30000006)

V1 watch-as-server PPoGATT data write characteristic.

◆ PBL_BT_PEBBLE_PPOGATT_WATCH_SERVER_V1_META_CHARACTERISTIC_UUID_32BIT

#define PBL_BT_PEBBLE_PPOGATT_WATCH_SERVER_V1_META_CHARACTERISTIC_UUID_32BIT   (0x30000005)

V1 watch-as-server PPoGATT meta characteristic.

◆ PBL_BT_PEBBLE_PPOGATT_WATCH_SERVER_V1_SERVICE_UUID_32BIT

#define PBL_BT_PEBBLE_PPOGATT_WATCH_SERVER_V1_SERVICE_UUID_32BIT   (0x30000003)

Service UUID of the V1 watch-as-server PPoGATT, as shipped on Pebble 2 (DA1468x).

Reserved so new allocations don't collide.

◆ PBL_BT_PEBBLE_UUID_EXPAND

#define PBL_BT_PEBBLE_UUID_EXPAND (   u)
Value:
(0xff & ((uint32_t)u) >> 24), (0xff & ((uint32_t)u) >> 16), (0xff & ((uint32_t)u) >> 8), \
(0xff & ((uint32_t)u) >> 0), 0x32, 0x8E, 0x0F, 0xBB, 0xC6, 0x42, 0x1A, 0xA6, 0x69, 0x9B, \
0xDA, 0xDA

Compile-time version of pbl_bt_pebble_uuid_expand().

Expands to the 16 bytes of the UUID, as an initializer list.

Parameters
uThe 32-bit (or 16-bit) UUID value.

◆ PBL_BT_PPS_UUID_16BIT

#define PBL_BT_PPS_UUID_16BIT   (0xFED9)

Bluetooth SIG registered 16-bit UUID of Pebble Technology, the Pebble service.

Function Documentation

◆ pbl_bt_pebble_uuid_expand()

void pbl_bt_pebble_uuid_expand ( Uuid *  uuid,
uint32_t  value 
)

Expand a 32-bit (or 16-bit) Pebble UUID with the Pebble Base UUID.

See bt_uuid_expand_32bit() and bt_uuid_expand_16bit() to expand with the Bluetooth SIG Base UUID instead.

Parameters
[out]uuidThe expanded UUID.
valueThe 32-bit (or 16-bit) UUID value.