circuitpython/ports/nrf/common-hal
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
..
_bleio Refine _bleio 2019-10-21 18:57:03 -07:00
analogio change calibration from analogin_reset() to analogin_init() 2019-10-14 23:38:41 -04:00
audiobusio nrf: i2s: tune audio buffering 2019-09-09 20:13:12 -05:00
audiopwmio nrf: PWMAudioOut: deactivate PWM when deinitting self 2019-10-12 14:01:35 +09:00
board Remove nRF52832 support 2018-12-30 22:49:20 -05:00
busio nrf: Use RUN_BACKGROUND_TASKS 2019-08-11 08:53:02 -05:00
digitalio Move atmel-samd to tinyusb and support nRF flash. 2018-11-08 17:25:30 -08:00
displayio Rework based on Dan's review 2019-08-23 15:27:21 -07:00
microcontroller return chip vcc value 2019-10-12 15:42:15 -04:00
neopixel_write nrf: Use RUN_BACKGROUND_TASKS 2019-08-11 08:53:02 -05:00
nvm Fix up single-byte access to nvm.ByteArray 2019-04-16 14:53:44 +10:00
os nrf: Rewrite the os common-hal using nrfx 2018-06-27 21:01:07 +02:00
pulseio nRF: PWMOut: At deinit, make pin available again 2019-09-11 20:09:38 -05:00
rotaryio Change pin mode to pullup for adafruit/circuitpython#1045 2019-02-07 09:47:56 +11:00
rtc Remove unnecessary MP_WEAK declarations 2019-04-02 13:33:22 +11:00
supervisor replacing change to input() with separate method to check for USB Serial input 2018-10-09 18:37:52 -04:00
time nrf: Remove the old time hal and replace with nRFx 2018-07-10 14:59:10 +02:00