|
PebbleOS v4.47.0-1161-g94e3d98da
|
How to print addresses. More...
Macros | |
| #define | PBL_BT_ADDR_FMT "%02X:%02X:%02X:%02X:%02X:%02X" |
printf() format of an address, as XX:XX:XX:XX:XX:XX. | |
| #define | PBL_BT_ADDR_FMT_BUFFER_SIZE (18) |
| Buffer size for an address printed with PBL_BT_ADDR_FMT, including the terminator. | |
| #define | PBL_BT_ADDR_XPLODE(v) (v)[5], (v)[4], (v)[3], (v)[2], (v)[1], (v)[0] |
| Expand an address into the printf() arguments of PBL_BT_ADDR_FMT, most significant octet first. | |
How to print addresses.
Addresses are stored least significant octet first, as on air. Use PBL_BT_ADDR_FMT with PBL_BT_ADDR_XPLODE() to print them most significant octet first:
| #define PBL_BT_ADDR_FMT "%02X:%02X:%02X:%02X:%02X:%02X" |
printf() format of an address, as XX:XX:XX:XX:XX:XX.
Use with PBL_BT_ADDR_XPLODE().
| #define PBL_BT_ADDR_FMT_BUFFER_SIZE (18) |
Buffer size for an address printed with PBL_BT_ADDR_FMT, including the terminator.
| #define PBL_BT_ADDR_XPLODE | ( | v | ) | (v)[5], (v)[4], (v)[3], (v)[2], (v)[1], (v)[0] |
Expand an address into the printf() arguments of PBL_BT_ADDR_FMT, most significant octet first.
| v | Its six octets, least significant first, e.g. the val of a ble_addr_t. |