diff options
| author | Dan Halbert <halbert@halwitz.org> | 2019-01-07 22:46:20 -0500 |
|---|---|---|
| committer | Dan Halbert <halbert@halwitz.org> | 2019-01-07 22:46:20 -0500 |
| commit | f66f55b4ed4a008fd328a377acbf731e5f22d6de (patch) | |
| tree | e87692ea07561b067850df00434c1b083a62ee4d /shared-module | |
| parent | a77b2363eff14ae5b19c50a7d25b3db4ef6b200c (diff) | |
add CharacteristicBuffer; UART seems to work!
Diffstat (limited to 'shared-module')
| -rw-r--r-- | shared-module/bleio/Characteristic.h | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/shared-module/bleio/Characteristic.h b/shared-module/bleio/Characteristic.h index 977ec8197..958837e64 100644 --- a/shared-module/bleio/Characteristic.h +++ b/shared-module/bleio/Characteristic.h @@ -27,26 +27,15 @@ #ifndef MICROPY_INCLUDED_SHARED_MODULE_BLEIO_CHARACTERISTIC_H #define MICROPY_INCLUDED_SHARED_MODULE_BLEIO_CHARACTERISTIC_H -#include "shared-module/bleio/Service.h" -#include "common-hal/bleio/UUID.h" - +// Flags for each characteristic property. Common across ports. typedef struct { - mp_obj_base_t base; - bleio_service_obj_t *service; - bleio_uuid_obj_t *uuid; - mp_obj_t value_data; - uint16_t handle; - struct { bool broadcast : 1; bool read : 1; bool write_no_response : 1; bool write : 1; bool notify : 1; bool indicate : 1; - } props; - uint16_t user_desc_handle; - uint16_t cccd_handle; - uint16_t sccd_handle; -} bleio_characteristic_obj_t; +} bleio_characteristic_properties_t; + #endif // MICROPY_INCLUDED_SHARED_MODULE_BLEIO_CHARACTERISTIC_H |
