circuitpython/lib/utils
Scott Shawcroft ae30a1e5aa
Refine _bleio
This PR refines the _bleio API. It was originally motivated by
the addition of a new CircuitPython service that enables reading
and modifying files on the device. Moving the BLE lifecycle outside
of the VM motivated a number of changes to remove heap allocations
in some APIs.

It also motivated unifying connection initiation to the Adapter class
rather than the Central and Peripheral classes which have been removed.
Adapter now handles the GAP portion of BLE including advertising, which
has moved but is largely unchanged, and scanning, which has been enhanced
to return an iterator of filtered results.

Once a connection is created (either by us (aka Central) or a remote
device (aka Peripheral)) it is represented by a new Connection class.
This class knows the current connection state and can discover and
instantiate remote Services along with their Characteristics and
Descriptors.

Relates to #586
2019-10-21 18:57:03 -07:00
..
buffer_helper.c More size_t usage 2019-08-27 12:49:46 -07:00
buffer_helper.h More size_t usage 2019-08-27 12:49:46 -07:00
context_manager_helpers.c Switch enum-like attributes to all caps and add print support for them. Make room for this functionality by adding a shared __enter__ function object. #76 2017-02-19 16:11:33 +01:00
context_manager_helpers.h Initial merge of micropython v1.9.2 into circuitpython 2.0.0 (in development) master. 2017-08-25 22:17:07 -04:00
interrupt_char.c Refine _bleio 2019-10-21 18:57:03 -07:00
interrupt_char.h Add i2cslave.I2CSlave bindings 2018-08-16 17:11:20 +02:00
printf.c lib/utils/printf: Exclude __GI_vsnprintf alias for gcc 9 and above. 2019-05-11 00:31:40 -05:00
pyexec.c Hide the traceback for the ReloadException. 2019-05-08 14:53:20 -07:00
pyexec.h WIP: after merge; before testing 2018-07-11 16:45:30 -04:00
stdout_helpers.c Fix output overflow and make help translatable 2018-11-09 16:41:08 -08:00
sys_stdio_mphal.c Support print("", flush=True) 2019-02-15 16:53:19 -08:00