zephyr/subsys/bluetooth
Radoslaw Koppel ecf06debe6 Bluetooth: UUID: Implement UUID 128 encoder
This commit adds an macro to allow UUID 128
to be written in more user-friendly form.
UUID in 128 bit form requires an array creation.
To complicate the whole thing - it requires the array to start from LSB,
so using the readable form, we have to write it down backwards.

Old way to declare example UUID 6E400001-B5A3-F393-E0A9-E50E24DCCA9E:
 0x9E, 0xCA, 0xDC, 0x24, 0x0E, 0xE5, 0xA9, 0xE0,
 0x93, 0xF3, 0xA3, 0xB5, 0x01, 0x00, 0x40, 0x6E

A form provided by this commit:
 BT_UUID_128_ENCODE(0x6E400001, 0xB5A3, 0xF393, 0xE0A9, 0xE50E24DCCA9E)

Signed-off-by: Radoslaw Koppel <radoslaw.koppel@nordicsemi.no>
2019-10-23 18:49:13 +03:00
..
common Kconfig: Remove copy-pasted comments on some promptless symbols 2019-10-17 13:05:24 -05:00
controller Bluetooth: controller: split: Fix conn RSSI initial value 2019-10-22 13:19:26 +02:00
host Bluetooth: UUID: Implement UUID 128 encoder 2019-10-23 18:49:13 +03:00
mesh Bluetooth: Mesh: Persistent storage of Virtual Addresses 2019-10-17 12:24:13 +03:00
services Bluetooth: GATT: Add support to setting permission on CCCD 2019-09-19 21:12:39 +03:00
shell Bluetooth: GATT: Add support to setting permission on CCCD 2019-09-19 21:12:39 +03:00
CMakeLists.txt cmake: don't link interface libraries with zephyr_interface 2019-09-26 05:50:46 -07:00
Kconfig Kconfig: Remove copy-pasted comments on some promptless symbols 2019-10-17 13:05:24 -05:00