diff options
| author | arturo182 <arturo182@tlen.pl> | 2018-07-16 14:44:20 +0200 |
|---|---|---|
| committer | arturo182 <arturo182@tlen.pl> | 2018-10-21 15:43:08 +0200 |
| commit | f4940c9aec2ac73086efe18fbc57151f55c85981 (patch) | |
| tree | 633bbd5f1c054760b409e6638a9c8c0296ab9a49 /shared-bindings/bleio/__init__.c | |
| parent | b436666e852b0d75a970052997ea019af7411b45 (diff) | |
nrf: Move the UUID class from ubluepy to the shared bleio module
Also added a UUIDType enum-like class for determining UUID type.
Diffstat (limited to 'shared-bindings/bleio/__init__.c')
| -rw-r--r-- | shared-bindings/bleio/__init__.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/shared-bindings/bleio/__init__.c b/shared-bindings/bleio/__init__.c index 475fb395a..f59f1654b 100644 --- a/shared-bindings/bleio/__init__.c +++ b/shared-bindings/bleio/__init__.c @@ -27,6 +27,8 @@ #include "py/obj.h" #include "shared-bindings/bleio/__init__.h" +#include "shared-bindings/bleio/UUID.h" +#include "shared-bindings/bleio/UUIDType.h" //| :mod:`bleio` --- Bluetooth Low Energy functionality //| ================================================================ @@ -43,6 +45,8 @@ //| :maxdepth: 3 //| //| Adapter +//| UUID +//| UUIDType //| //| .. attribute:: adapter //| @@ -52,8 +56,14 @@ //| STATIC const mp_rom_map_elem_t bleio_module_globals_table[] = { - { MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_bleio) }, - { MP_ROM_QSTR(MP_QSTR_adapter), MP_ROM_PTR(&common_hal_bleio_adapter_obj) }, + { MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_bleio) }, + { MP_ROM_QSTR(MP_QSTR_UUID), MP_ROM_PTR(&bleio_uuid_type) }, + + // Properties + { MP_ROM_QSTR(MP_QSTR_adapter), MP_ROM_PTR(&common_hal_bleio_adapter_obj) }, + + // Enum-like Classes. + { MP_ROM_QSTR(MP_QSTR_UUIDType), MP_ROM_PTR(&bleio_uuidtype_type) }, }; STATIC MP_DEFINE_CONST_DICT(bleio_module_globals, bleio_module_globals_table); |
