2018-07-16 08:44:20 -04:00
|
|
|
/*
|
|
|
|
* This file is part of the MicroPython project, http://micropython.org/
|
|
|
|
*
|
|
|
|
* The MIT License (MIT)
|
|
|
|
*
|
2019-06-19 10:42:36 -04:00
|
|
|
* Copyright (c) 2019 Dan Halbert for Adafruit Industries
|
2018-07-16 08:44:20 -04:00
|
|
|
* Copyright (c) 2018 Artur Pacholec
|
2019-06-19 10:42:36 -04:00
|
|
|
* Copyright (c) 2017 Glenn Ruben Bakke
|
2018-07-16 08:44:20 -04:00
|
|
|
*
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
* of this software and associated documentation files (the "Software"), to deal
|
|
|
|
* in the Software without restriction, including without limitation the rights
|
|
|
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
* copies of the Software, and to permit persons to whom the Software is
|
|
|
|
* furnished to do so, subject to the following conditions:
|
|
|
|
*
|
|
|
|
* The above copyright notice and this permission notice shall be included in
|
|
|
|
* all copies or substantial portions of the Software.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
|
* THE SOFTWARE.
|
|
|
|
*/
|
|
|
|
|
2019-01-02 23:11:03 -05:00
|
|
|
#include <string.h>
|
|
|
|
|
2018-07-16 08:44:20 -04:00
|
|
|
#include "py/objproperty.h"
|
2018-11-20 23:04:58 -05:00
|
|
|
#include "py/objstr.h"
|
2018-07-16 08:44:20 -04:00
|
|
|
#include "py/runtime.h"
|
2019-08-29 18:44:27 -04:00
|
|
|
#include "shared-bindings/_bleio/UUID.h"
|
2018-07-16 08:44:20 -04:00
|
|
|
|
2020-05-01 18:23:27 -04:00
|
|
|
//| class UUID:
|
2020-05-12 20:15:28 -04:00
|
|
|
//| """A 16-bit or 128-bit UUID. Can be used for services, characteristics, descriptors and more."""
|
2018-07-16 08:44:20 -04:00
|
|
|
//|
|
2020-07-02 14:11:25 -04:00
|
|
|
//| def __init__(self, value: Union[int, typing.ByteString]):
|
2020-05-01 18:23:27 -04:00
|
|
|
//| """Create a new UUID or UUID object encapsulating the uuid value.
|
|
|
|
//| The value can be one of:
|
2018-07-16 08:44:20 -04:00
|
|
|
//|
|
2020-05-01 18:23:27 -04:00
|
|
|
//| - an `int` value in range 0 to 0xFFFF (Bluetooth SIG 16-bit UUID)
|
|
|
|
//| - a buffer object (bytearray, bytes) of 16 bytes in little-endian order (128-bit UUID)
|
|
|
|
//| - a string of hex digits of the form 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
|
2018-07-16 08:44:20 -04:00
|
|
|
//|
|
2020-05-01 18:23:27 -04:00
|
|
|
//| Creating a 128-bit UUID registers the UUID with the onboard BLE software, and provides a
|
|
|
|
//| temporary 16-bit UUID that can be used in place of the full 128-bit UUID.
|
2019-06-29 00:20:06 -04:00
|
|
|
//|
|
2020-05-01 18:23:27 -04:00
|
|
|
//| :param value: The uuid value to encapsulate
|
|
|
|
//| :type value: int or typing.ByteString"""
|
|
|
|
//| ...
|
2019-01-09 13:31:32 -05:00
|
|
|
//|
|
2019-01-14 21:08:45 -05:00
|
|
|
STATIC mp_obj_t bleio_uuid_make_new(const mp_obj_type_t *type, size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) {
|
|
|
|
mp_arg_check_num(n_args, kw_args, 1, 1, false);
|
2018-07-16 08:44:20 -04:00
|
|
|
|
2018-11-20 23:04:58 -05:00
|
|
|
bleio_uuid_obj_t *self = m_new_obj(bleio_uuid_obj_t);
|
|
|
|
self->base.type = type;
|
|
|
|
|
2019-01-02 23:11:03 -05:00
|
|
|
const mp_obj_t value = pos_args[0];
|
2018-11-26 21:09:17 -05:00
|
|
|
uint8_t uuid128[16];
|
2018-07-16 08:44:20 -04:00
|
|
|
|
2018-11-26 21:09:17 -05:00
|
|
|
if (MP_OBJ_IS_INT(value)) {
|
|
|
|
mp_int_t uuid16 = mp_obj_get_int(value);
|
2018-11-15 17:00:12 -05:00
|
|
|
if (uuid16 < 0 || uuid16 > 0xffff) {
|
2019-06-10 07:18:28 -04:00
|
|
|
mp_raise_ValueError(translate("UUID integer value must be 0-0xffff"));
|
2018-11-15 17:00:12 -05:00
|
|
|
}
|
|
|
|
|
2019-01-02 23:11:03 -05:00
|
|
|
// NULL means no 128-bit value.
|
|
|
|
common_hal_bleio_uuid_construct(self, uuid16, NULL);
|
|
|
|
|
2018-11-15 17:00:12 -05:00
|
|
|
} else {
|
2019-01-16 20:41:01 -05:00
|
|
|
if (MP_OBJ_IS_STR(value)) {
|
|
|
|
// 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
|
|
|
|
GET_STR_DATA_LEN(value, chars, len);
|
|
|
|
char hex[32];
|
|
|
|
// Validate length, hyphens, and hex digits.
|
|
|
|
bool good_uuid =
|
|
|
|
len == 36 && chars[8] == '-' && chars[13] == '-' && chars[18] == '-' && chars[23] == '-';
|
|
|
|
if (good_uuid) {
|
|
|
|
size_t hex_idx = 0;
|
2019-02-15 18:55:10 -05:00
|
|
|
for (size_t i = 0; i < len; i++) {
|
2019-01-16 20:41:01 -05:00
|
|
|
if (unichar_isxdigit(chars[i])) {
|
|
|
|
hex[hex_idx] = chars[i];
|
|
|
|
hex_idx++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
good_uuid = hex_idx == 32;
|
|
|
|
}
|
|
|
|
if (!good_uuid) {
|
|
|
|
mp_raise_ValueError(translate("UUID string not 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'"));
|
|
|
|
}
|
|
|
|
|
|
|
|
size_t hex_idx = 0;
|
|
|
|
for (int i = 15; i >= 0; i--) {
|
|
|
|
uuid128[i] = (unichar_xdigit_value(hex[hex_idx]) << 4) | unichar_xdigit_value(hex[hex_idx + 1]);
|
|
|
|
hex_idx += 2;
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
// Last possibility is that it's a buf.
|
|
|
|
mp_buffer_info_t bufinfo;
|
|
|
|
if (!mp_get_buffer(value, &bufinfo, MP_BUFFER_READ)) {
|
|
|
|
mp_raise_ValueError(translate("UUID value is not str, int or byte buffer"));
|
|
|
|
}
|
2019-01-02 23:11:03 -05:00
|
|
|
|
2019-01-16 20:41:01 -05:00
|
|
|
if (bufinfo.len != 16) {
|
|
|
|
mp_raise_ValueError(translate("Byte buffer must be 16 bytes."));
|
|
|
|
}
|
|
|
|
|
|
|
|
memcpy(uuid128, bufinfo.buf, 16);
|
2019-01-02 23:11:03 -05:00
|
|
|
}
|
|
|
|
|
2019-01-16 20:41:01 -05:00
|
|
|
// Str and bytes both get constructed the same way here.
|
2019-01-02 23:11:03 -05:00
|
|
|
uint32_t uuid16 = (uuid128[13] << 8) | uuid128[12];
|
|
|
|
uuid128[12] = 0;
|
|
|
|
uuid128[13] = 0;
|
2019-01-16 20:41:01 -05:00
|
|
|
common_hal_bleio_uuid_construct(self, uuid16, uuid128);
|
2018-07-25 18:14:23 -04:00
|
|
|
}
|
2018-11-26 21:09:17 -05:00
|
|
|
|
|
|
|
return MP_OBJ_FROM_PTR(self);
|
2018-07-25 18:14:23 -04:00
|
|
|
}
|
|
|
|
|
2020-07-02 14:11:25 -04:00
|
|
|
//| uuid16: int = ...
|
2020-05-01 18:23:27 -04:00
|
|
|
//| """The 16-bit part of the UUID. (read-only)
|
2018-11-15 17:00:12 -05:00
|
|
|
//|
|
2020-05-01 18:23:27 -04:00
|
|
|
//| :type: int"""
|
2019-05-30 22:01:27 -04:00
|
|
|
//|
|
2018-11-20 23:04:58 -05:00
|
|
|
STATIC mp_obj_t bleio_uuid_get_uuid16(mp_obj_t self_in) {
|
2018-07-16 08:44:20 -04:00
|
|
|
bleio_uuid_obj_t *self = MP_OBJ_TO_PTR(self_in);
|
2018-11-15 17:00:12 -05:00
|
|
|
return MP_OBJ_NEW_SMALL_INT(common_hal_bleio_uuid_get_uuid16(self));
|
|
|
|
}
|
2018-07-16 08:44:20 -04:00
|
|
|
|
2018-11-15 17:00:12 -05:00
|
|
|
MP_DEFINE_CONST_FUN_OBJ_1(bleio_uuid_get_uuid16_obj, bleio_uuid_get_uuid16);
|
2018-07-16 08:44:20 -04:00
|
|
|
|
2018-11-20 23:04:58 -05:00
|
|
|
const mp_obj_property_t bleio_uuid_uuid16_obj = {
|
2018-11-15 17:00:12 -05:00
|
|
|
.base.type = &mp_type_property,
|
|
|
|
.proxy = {(mp_obj_t)&bleio_uuid_get_uuid16_obj,
|
|
|
|
(mp_obj_t)&mp_const_none_obj,
|
|
|
|
(mp_obj_t)&mp_const_none_obj},
|
|
|
|
};
|
2018-07-16 08:44:20 -04:00
|
|
|
|
2020-07-02 14:11:25 -04:00
|
|
|
//| uuid128: bytes = ...
|
2020-05-01 18:23:27 -04:00
|
|
|
//| """The 128-bit value of the UUID
|
2019-01-03 21:42:42 -05:00
|
|
|
//| Raises AttributeError if this is a 16-bit UUID. (read-only)
|
2018-11-20 23:04:58 -05:00
|
|
|
//|
|
2020-05-01 18:23:27 -04:00
|
|
|
//| :type: bytes"""
|
2019-05-30 22:01:27 -04:00
|
|
|
//|
|
2018-11-26 21:09:17 -05:00
|
|
|
STATIC mp_obj_t bleio_uuid_get_uuid128(mp_obj_t self_in) {
|
|
|
|
bleio_uuid_obj_t *self = MP_OBJ_TO_PTR(self_in);
|
|
|
|
|
|
|
|
uint8_t uuid128[16];
|
2019-09-14 15:40:24 -04:00
|
|
|
if (common_hal_bleio_uuid_get_size(self) != 128) {
|
2018-11-26 21:09:17 -05:00
|
|
|
mp_raise_AttributeError(translate("not a 128-bit UUID"));
|
|
|
|
}
|
2019-09-14 15:40:24 -04:00
|
|
|
common_hal_bleio_uuid_get_uuid128(self, uuid128);
|
2018-11-26 21:09:17 -05:00
|
|
|
return mp_obj_new_bytes(uuid128, 16);
|
|
|
|
}
|
|
|
|
|
|
|
|
MP_DEFINE_CONST_FUN_OBJ_1(bleio_uuid_get_uuid128_obj, bleio_uuid_get_uuid128);
|
|
|
|
|
|
|
|
const mp_obj_property_t bleio_uuid_uuid128_obj = {
|
|
|
|
.base.type = &mp_type_property,
|
|
|
|
.proxy = {(mp_obj_t)&bleio_uuid_get_uuid128_obj,
|
|
|
|
(mp_obj_t)&mp_const_none_obj,
|
|
|
|
(mp_obj_t)&mp_const_none_obj},
|
|
|
|
};
|
|
|
|
|
2020-07-02 14:11:25 -04:00
|
|
|
//| size: int = ...
|
2020-05-01 18:23:27 -04:00
|
|
|
//| """128 if this UUID represents a 128-bit vendor-specific UUID. 16 if this UUID represents a
|
2019-05-30 22:01:27 -04:00
|
|
|
//| 16-bit Bluetooth SIG assigned UUID. (read-only) 32-bit UUIDs are not currently supported.
|
|
|
|
//|
|
2020-05-01 18:23:27 -04:00
|
|
|
//| :type: int"""
|
2018-11-15 17:00:12 -05:00
|
|
|
//|
|
2018-11-20 23:04:58 -05:00
|
|
|
STATIC mp_obj_t bleio_uuid_get_size(mp_obj_t self_in) {
|
2018-11-15 17:00:12 -05:00
|
|
|
bleio_uuid_obj_t *self = MP_OBJ_TO_PTR(self_in);
|
2018-11-20 23:04:58 -05:00
|
|
|
return MP_OBJ_NEW_SMALL_INT(common_hal_bleio_uuid_get_size(self));
|
2018-07-16 08:44:20 -04:00
|
|
|
}
|
|
|
|
|
2018-11-20 23:04:58 -05:00
|
|
|
MP_DEFINE_CONST_FUN_OBJ_1(bleio_uuid_get_size_obj, bleio_uuid_get_size);
|
2018-11-15 17:00:12 -05:00
|
|
|
|
2018-11-20 23:04:58 -05:00
|
|
|
const mp_obj_property_t bleio_uuid_size_obj = {
|
2018-07-16 08:44:20 -04:00
|
|
|
.base.type = &mp_type_property,
|
2018-11-20 23:04:58 -05:00
|
|
|
.proxy = {(mp_obj_t)&bleio_uuid_get_size_obj,
|
2018-07-16 08:44:20 -04:00
|
|
|
(mp_obj_t)&mp_const_none_obj,
|
|
|
|
(mp_obj_t)&mp_const_none_obj},
|
|
|
|
};
|
|
|
|
|
2019-09-14 15:40:24 -04:00
|
|
|
|
2020-07-02 14:11:25 -04:00
|
|
|
//| def pack_into(self, buffer: Union[bytearray, memoryview], offset: int = 0) -> None:
|
2020-05-01 18:23:27 -04:00
|
|
|
//| """Packs the UUID into the given buffer at the given offset."""
|
|
|
|
//| ...
|
2019-09-14 15:40:24 -04:00
|
|
|
//|
|
|
|
|
STATIC mp_obj_t bleio_uuid_pack_into(mp_uint_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) {
|
|
|
|
bleio_uuid_obj_t *self = MP_OBJ_TO_PTR(pos_args[0]);
|
|
|
|
|
|
|
|
enum { ARG_buffer, ARG_offset };
|
|
|
|
static const mp_arg_t allowed_args[] = {
|
|
|
|
{ MP_QSTR_buffer, MP_ARG_OBJ | MP_ARG_REQUIRED },
|
|
|
|
{ MP_QSTR_offset, MP_ARG_KW_ONLY | MP_ARG_INT, {.u_int = 0} },
|
|
|
|
};
|
|
|
|
|
|
|
|
mp_arg_val_t args[MP_ARRAY_SIZE(allowed_args)];
|
|
|
|
mp_arg_parse_all(n_args - 1, pos_args + 1, kw_args, MP_ARRAY_SIZE(allowed_args), allowed_args, args);
|
|
|
|
|
2020-05-12 20:15:28 -04:00
|
|
|
|
2019-09-14 15:40:24 -04:00
|
|
|
mp_buffer_info_t bufinfo;
|
|
|
|
mp_get_buffer_raise(args[ARG_buffer].u_obj, &bufinfo, MP_BUFFER_WRITE);
|
|
|
|
|
|
|
|
size_t offset = args[ARG_offset].u_int;
|
|
|
|
if (offset + common_hal_bleio_uuid_get_size(self) / 8 > bufinfo.len) {
|
|
|
|
mp_raise_ValueError(translate("Buffer + offset too small %d %d %d"));
|
|
|
|
}
|
|
|
|
|
|
|
|
common_hal_bleio_uuid_pack_into(self, bufinfo.buf + offset);
|
|
|
|
return mp_const_none;
|
|
|
|
}
|
|
|
|
STATIC MP_DEFINE_CONST_FUN_OBJ_KW(bleio_uuid_pack_into_obj, 2, bleio_uuid_pack_into);
|
|
|
|
|
2018-07-16 08:44:20 -04:00
|
|
|
STATIC const mp_rom_map_elem_t bleio_uuid_locals_dict_table[] = {
|
2018-11-20 23:04:58 -05:00
|
|
|
{ MP_ROM_QSTR(MP_QSTR_uuid16), MP_ROM_PTR(&bleio_uuid_uuid16_obj) },
|
2018-11-26 21:09:17 -05:00
|
|
|
{ MP_ROM_QSTR(MP_QSTR_uuid128), MP_ROM_PTR(&bleio_uuid_uuid128_obj) },
|
2018-11-20 23:04:58 -05:00
|
|
|
{ MP_ROM_QSTR(MP_QSTR_size), MP_ROM_PTR(&bleio_uuid_size_obj) },
|
2019-09-14 15:40:24 -04:00
|
|
|
{ MP_ROM_QSTR(MP_QSTR_pack_into), MP_ROM_PTR(&bleio_uuid_pack_into_obj) },
|
2018-07-16 08:44:20 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
STATIC MP_DEFINE_CONST_DICT(bleio_uuid_locals_dict, bleio_uuid_locals_dict_table);
|
|
|
|
|
2018-11-26 21:09:17 -05:00
|
|
|
STATIC mp_obj_t bleio_uuid_unary_op(mp_unary_op_t op, mp_obj_t self_in) {
|
|
|
|
bleio_uuid_obj_t *self = MP_OBJ_TO_PTR(self_in);
|
|
|
|
switch (op) {
|
|
|
|
case MP_UNARY_OP_HASH:
|
|
|
|
if (common_hal_bleio_uuid_get_size(self) == 16) {
|
|
|
|
return MP_OBJ_NEW_SMALL_INT(common_hal_bleio_uuid_get_uuid16(self));
|
|
|
|
} else {
|
|
|
|
union {
|
|
|
|
uint8_t uuid128_bytes[16];
|
|
|
|
uint16_t uuid128_uint16[8];
|
|
|
|
} uuid128;
|
|
|
|
common_hal_bleio_uuid_get_uuid128(self, uuid128.uuid128_bytes);
|
|
|
|
int hash = 0;
|
|
|
|
for (size_t i = 0; i < MP_ARRAY_SIZE(uuid128.uuid128_uint16); i++) {
|
|
|
|
hash += uuid128.uuid128_uint16[i];
|
|
|
|
}
|
|
|
|
return MP_OBJ_NEW_SMALL_INT(hash);
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
return MP_OBJ_NULL; // op not supported
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-07-02 14:11:25 -04:00
|
|
|
//| def __eq__(self, other: UUID) -> Optional[bool]:
|
2020-05-01 18:23:27 -04:00
|
|
|
//| """Two UUID objects are equal if their values match and they are both 128-bit or both 16-bit."""
|
|
|
|
//| ...
|
2019-06-22 22:10:15 -04:00
|
|
|
//|
|
2018-11-26 21:09:17 -05:00
|
|
|
STATIC mp_obj_t bleio_uuid_binary_op(mp_binary_op_t op, mp_obj_t lhs_in, mp_obj_t rhs_in) {
|
|
|
|
switch (op) {
|
2019-09-14 15:40:24 -04:00
|
|
|
// Two UUID's are equal if their uuid16 values match or their uuid128 values match.
|
2018-11-26 21:09:17 -05:00
|
|
|
case MP_BINARY_OP_EQUAL:
|
|
|
|
if (MP_OBJ_IS_TYPE(rhs_in, &bleio_uuid_type)) {
|
2019-09-14 15:40:24 -04:00
|
|
|
if (common_hal_bleio_uuid_get_size(lhs_in) == 16 &&
|
|
|
|
common_hal_bleio_uuid_get_size(rhs_in) == 16) {
|
|
|
|
return mp_obj_new_bool(common_hal_bleio_uuid_get_uuid16(lhs_in) ==
|
|
|
|
common_hal_bleio_uuid_get_uuid16(rhs_in));
|
|
|
|
}
|
|
|
|
uint8_t lhs[16];
|
|
|
|
uint8_t rhs[16];
|
|
|
|
common_hal_bleio_uuid_get_uuid128(lhs_in, lhs);
|
|
|
|
common_hal_bleio_uuid_get_uuid128(rhs_in, rhs);
|
|
|
|
return mp_obj_new_bool(memcmp(lhs, rhs, sizeof(lhs)) == 0);
|
2018-11-26 21:09:17 -05:00
|
|
|
} else {
|
|
|
|
return mp_const_false;
|
|
|
|
}
|
|
|
|
|
|
|
|
default:
|
|
|
|
return MP_OBJ_NULL; // op not supported
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-01-16 20:41:01 -05:00
|
|
|
void bleio_uuid_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind) {
|
|
|
|
bleio_uuid_obj_t *self = MP_OBJ_TO_PTR(self_in);
|
|
|
|
uint32_t size = common_hal_bleio_uuid_get_size(self);
|
|
|
|
if (size == 16) {
|
|
|
|
mp_printf(print, "UUID(0x%04x)", common_hal_bleio_uuid_get_uuid16(self));
|
|
|
|
} else {
|
|
|
|
uint8_t uuid128[16];
|
|
|
|
(void) common_hal_bleio_uuid_get_uuid128(self, uuid128);
|
|
|
|
mp_printf(print, "UUID('"
|
|
|
|
"%02x%02x%02x%02x-"
|
|
|
|
"%02x%02x-"
|
|
|
|
"%02x%02x-"
|
|
|
|
"%02x%02x-"
|
|
|
|
"%02x%02x%02x%02x%02x%02x')",
|
|
|
|
uuid128[15], uuid128[14], uuid128[13], uuid128[12],
|
|
|
|
uuid128[11], uuid128[10],
|
|
|
|
uuid128[9], uuid128[8],
|
|
|
|
uuid128[7], uuid128[6],
|
|
|
|
uuid128[5], uuid128[4], uuid128[3], uuid128[2], uuid128[1], uuid128[0]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-16 08:44:20 -04:00
|
|
|
const mp_obj_type_t bleio_uuid_type = {
|
|
|
|
{ &mp_type_type },
|
|
|
|
.name = MP_QSTR_UUID,
|
2019-01-16 20:41:01 -05:00
|
|
|
.print = bleio_uuid_print,
|
2018-07-16 08:44:20 -04:00
|
|
|
.make_new = bleio_uuid_make_new,
|
2018-11-26 21:09:17 -05:00
|
|
|
.unary_op = bleio_uuid_unary_op,
|
|
|
|
.binary_op = bleio_uuid_binary_op,
|
2018-11-15 17:00:12 -05:00
|
|
|
.locals_dict = (mp_obj_dict_t*)&bleio_uuid_locals_dict,
|
2018-07-16 08:44:20 -04:00
|
|
|
};
|