summaryrefslogtreecommitdiff
path: root/shared-bindings/_bleio/__init__.h
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2020-08-30 14:06:48 -0400
committerDan Halbert <halbert@halwitz.org>2020-08-30 14:06:48 -0400
commitb27d51125134b4317b429eb7b015c9f94f22adb0 (patch)
treea7e41afb5f048f98d6dca93e5f70c85216b5e069 /shared-bindings/_bleio/__init__.h
parent770c204d5a283add29e03e421490e1d5b9663f3c (diff)
address review; use constructor for HCI Adapter
Diffstat (limited to 'shared-bindings/_bleio/__init__.h')
-rw-r--r--shared-bindings/_bleio/__init__.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/shared-bindings/_bleio/__init__.h b/shared-bindings/_bleio/__init__.h
index 969d2efb1..588b1f197 100644
--- a/shared-bindings/_bleio/__init__.h
+++ b/shared-bindings/_bleio/__init__.h
@@ -55,11 +55,14 @@ extern const mp_obj_type_t mp_type_bleio_ConnectionError;
extern const mp_obj_type_t mp_type_bleio_RoleError;
extern const mp_obj_type_t mp_type_bleio_SecurityError;
+extern mp_obj_t bleio_set_adapter(mp_obj_t adapter_obj);
+
NORETURN void mp_raise_bleio_BluetoothError(const compressed_string_t* msg, ...);
NORETURN void mp_raise_bleio_ConnectionError(const compressed_string_t* msg, ...);
NORETURN void mp_raise_bleio_RoleError(const compressed_string_t* msg);
NORETURN void mp_raise_bleio_SecurityError(const compressed_string_t* msg, ...);
+bleio_adapter_obj_t *common_hal_bleio_allocate_adapter_or_raise(void);
void common_hal_bleio_check_connected(uint16_t conn_handle);
uint16_t common_hal_bleio_device_get_conn_handle(mp_obj_t device);