summaryrefslogtreecommitdiff
path: root/shared-bindings/bleio/Address.c
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2019-07-09 00:21:46 -0400
committerDan Halbert <halbert@halwitz.org>2019-07-09 00:21:46 -0400
commit118b26b335c7153eeb4847e04019cdc0829ca960 (patch)
treeed771061cbba183ee8421b59c8008aa001ba391c /shared-bindings/bleio/Address.c
parent09ddff8df1349c590e6c0533b6f5085fbcb92483 (diff)
UARTClient now works both directions
Diffstat (limited to 'shared-bindings/bleio/Address.c')
-rw-r--r--shared-bindings/bleio/Address.c21
1 files changed, 8 insertions, 13 deletions
diff --git a/shared-bindings/bleio/Address.c b/shared-bindings/bleio/Address.c
index 0e094c2e3..cfad8fc11 100644
--- a/shared-bindings/bleio/Address.c
+++ b/shared-bindings/bleio/Address.c
@@ -49,10 +49,10 @@
//|
//| :param buf address: The address value to encapsulate. A buffer object (bytearray, bytes) of 6 bytes.
//| :param int address_type: one of these integers:
-//| - `bleio.Address.PUBLIC` = 0
-//| - `bleio.Address.RANDOM_STATIC` = 1
-//| - `bleio.Address.RANDOM_PRIVATE_RESOLVABLE` = 2
-//| - `bleio.Address.RANDOM_PRIVATE_NON_RESOLVABLE` = 3
+//| - ``bleio.Address.PUBLIC`` = 0
+//| - ``bleio.Address.RANDOM_STATIC`` = 1
+//| - ``bleio.Address.RANDOM_PRIVATE_RESOLVABLE`` = 2
+//| - ``bleio.Address.RANDOM_PRIVATE_NON_RESOLVABLE`` = 3
//|
STATIC mp_obj_t bleio_address_make_new(const mp_obj_type_t *type, size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) {
@@ -89,11 +89,6 @@ STATIC mp_obj_t bleio_address_make_new(const mp_obj_type_t *type, size_t n_args,
//|
//| The bytes that make up the device address (read-only)
//|
-//| - `bleio.Address.PUBLIC`
-//| - `bleio.Address.RANDOM_STATIC`
-//| - `bleio.Address.RANDOM_PRIVATE_RESOLVABLE`
-//| - `bleio.Address.RANDOM_PRIVATE_NON_RESOLVABLE`
-//|
STATIC mp_obj_t bleio_address_get_address_bytes(mp_obj_t self_in) {
bleio_address_obj_t *self = MP_OBJ_TO_PTR(self_in);
@@ -112,10 +107,10 @@ const mp_obj_property_t bleio_address_address_bytes_obj = {
//|
//| The address type (read-only). One of these integers:
//|
-//| - `bleio.Address.PUBLIC`
-//| - `bleio.Address.RANDOM_STATIC`
-//| - `bleio.Address.RANDOM_PRIVATE_RESOLVABLE`
-//| - `bleio.Address.RANDOM_PRIVATE_NON_RESOLVABLE`
+//| - ``bleio.Address.PUBLIC`` = 0
+//| - ``bleio.Address.RANDOM_STATIC`` = 1
+//| - ``bleio.Address.RANDOM_PRIVATE_RESOLVABLE`` = 2
+//| - ``bleio.Address.RANDOM_PRIVATE_NON_RESOLVABLE`` = 3
//|
STATIC mp_obj_t bleio_address_get_type(mp_obj_t self_in) {
bleio_address_obj_t *self = MP_OBJ_TO_PTR(self_in);