diff options
| author | Dan Halbert <halbert@halwitz.org> | 2018-11-15 17:00:12 -0500 |
|---|---|---|
| committer | Dan Halbert <halbert@halwitz.org> | 2018-11-20 09:36:45 -0500 |
| commit | 31cc71f7fb0ddfc152c0927d60e9e573340ebf1f (patch) | |
| tree | ffe940e7ab670cb2a64baafd11d07e030be1eb29 /ports/nrf/common-hal/bleio/UUID.h | |
| parent | 0ea31ec15dc212b5238f2ca6009ac206abe9e034 (diff) | |
WIP: bleio revisions
Diffstat (limited to 'ports/nrf/common-hal/bleio/UUID.h')
| -rw-r--r-- | ports/nrf/common-hal/bleio/UUID.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ports/nrf/common-hal/bleio/UUID.h b/ports/nrf/common-hal/bleio/UUID.h index cb0fddcfd..77f8fc5d1 100644 --- a/ports/nrf/common-hal/bleio/UUID.h +++ b/ports/nrf/common-hal/bleio/UUID.h @@ -28,13 +28,16 @@ #ifndef MICROPY_INCLUDED_NRF_COMMON_HAL_BLEIO_UUID_H #define MICROPY_INCLUDED_NRF_COMMON_HAL_BLEIO_UUID_H -#include "shared-bindings/bleio/UUIDType.h" +#include "py/obj.h" typedef struct { mp_obj_base_t base; - bleio_uuid_type_t type; + // If non-zero, `uuid_vs_idx` is an index into the SoftDevice's table of registered vendor-specific UUID's. + // If zero, `value` is a 16-bit Bluetooth SIG UUID, which would convert to this 128-bit UUID. + // 0000xxxx-0000-1000-8000-00805F9B34FB uint8_t uuid_vs_idx; - uint8_t value[2]; + // The 16-bit part of the UUID. This replaces bytes 12 and 13 in the registered 128-bit UUID. + uint16_t uuid16; } bleio_uuid_obj_t; #endif // MICROPY_INCLUDED_NRF_COMMON_HAL_BLEIO_UUID_H |
