paul-szczepanek-arm
062c301a96
check min size for custom data
2018-11-26 10:24:34 +00:00
paul-szczepanek-arm
e54c0ed1de
simplify UUID funcs
2018-11-26 10:24:34 +00:00
paul-szczepanek-arm
acd7ec3572
check sizes, use memcpy
2018-11-26 10:24:34 +00:00
paul-szczepanek-arm
92cbec3e41
requested services
2018-11-26 10:24:34 +00:00
paul-szczepanek-arm
91fa548953
verify parameters
2018-11-26 10:24:34 +00:00
paul-szczepanek-arm
aefd92a838
docs
2018-11-26 10:24:34 +00:00
paul-szczepanek-arm
656aa4fa4c
CONNECTION INTERVAL HELPER
2018-11-26 10:24:34 +00:00
paul-szczepanek-arm
7ab45e4c09
individual operations
2018-11-26 10:24:34 +00:00
paul-szczepanek-arm
0b1b07f9f1
service data
2018-11-26 10:24:34 +00:00
paul-szczepanek-arm
4a850207fa
remove redundant calulations
2018-11-26 10:24:34 +00:00
paul-szczepanek-arm
4b6eede76b
UUID handling
2018-11-26 10:24:34 +00:00
Vincent Coubard
869bb308c5
BLE: Add API to manage GAP connection parameter updates.
2018-11-26 10:24:34 +00:00
paul-szczepanek-arm
b6a0c8aea5
helper functinos
2018-11-26 10:24:34 +00:00
paul-szczepanek-arm
0d95ccb4ba
fix enum values
2018-11-26 10:24:34 +00:00
paul-szczepanek-arm
838de80fbf
flags no longer a safenum
2018-11-26 10:24:34 +00:00
paul-szczepanek-arm
6ef90b5ca7
remove data instead of replace data
2018-11-26 10:24:34 +00:00
paul-szczepanek-arm
862775d3df
extra data builder funcs
2018-11-26 10:24:33 +00:00
Vincent Coubard
da7d4a0c12
BLE: Introduce new disconnection API.
2018-11-26 10:24:33 +00:00
Vincent Coubard
7d7ccea827
BLE: clean separation between GAP v1 and GAP v2 API.
2018-11-26 10:24:33 +00:00
Vincent Coubard
c165bd98b7
BLE: Add explicit constructor for Duration that accepts millisecond in input.
2018-11-26 10:24:33 +00:00
Vincent Coubard
fa4aa8f068
BLE: remove inner V2 typedef in Gap class.
2018-11-26 10:24:33 +00:00
Vincent Coubard
d3c26f4283
BLE: rename functions that trap concurrent use of incorect GAP APIs
2018-11-26 10:24:33 +00:00
Vincent Coubard
6de585f7bf
BLE: rename Gap::IsFeatureSupported into Gap::isFeatureSupported
2018-11-26 10:24:33 +00:00
Vincent Coubard
5f435debd0
BLE: remove ble:: prefixes in ble::AdvertisingParameters.
2018-11-26 10:24:33 +00:00
Vincent Coubard
46815cc371
BLE: remove ble:: prefixes in ble::ScanParameters.
2018-11-26 10:24:33 +00:00
Vincent Coubard
6c75c53127
BLE: Move gap events into ble namespace.
2018-11-26 10:24:33 +00:00
Vincent Coubard
7123364674
BLE: remove not required prefixes in ble::ConnectionParameters.
2018-11-26 10:24:33 +00:00
Vincent Coubard
c1cd5ede84
BLE: Cleanup ble::connection_role_t.
2018-11-26 10:24:33 +00:00
Vincent Coubard
493c8580cc
BLE: cleanup of clock_accuracy_t
2018-11-26 10:24:33 +00:00
paul-szczepanek-arm
3e72570c52
move values out of GAP
2018-11-26 10:24:33 +00:00
Vincent Coubard
7aa1e95193
BLE: merge ble::target_peer_address_type_t and advertising_peer_address_type_t
2018-11-26 10:24:33 +00:00
paul-szczepanek-arm
d8eb9de459
fix names
2018-11-26 10:24:33 +00:00
paul-szczepanek-arm
7ea560a955
size clarification
2018-11-26 10:24:33 +00:00
paul-szczepanek-arm
33ab365d2c
advertising data
2018-11-26 10:24:33 +00:00
Vincent Coubard
ad127d76af
BLE: merge ble::own_address_t and pal::own_address_type_t.
2018-11-26 10:24:33 +00:00
Vincent Coubard
d1cb1e1a39
BLE: merge ble::scanning_filter_duplicates_t and pal::duplicate_filter_t
2018-11-26 10:24:33 +00:00
paul-szczepanek-arm
cc8b43f3ab
update gap overview
2018-11-26 10:24:33 +00:00
Vincent Coubard
07d73d5e20
BLE: merge ble::scanning_policy_mode_t and gap::scanning_filter_policy_t
...
This change set also introduce ble::initiator_filter_policy_t and fix a type issue ble::ConnectionParameters.
2018-11-26 10:24:33 +00:00
Vincent Coubard
3b334b814d
BLE: Revert space change in ble/GapAdvertisingParams.h
2018-11-26 10:24:33 +00:00
Vincent Coubard
c6cdfd0b7e
BLE: Merve ble::advertising_policy_mode and pal::advertising_filter_policy .
2018-11-26 10:24:33 +00:00
Vincent Coubard
db55540952
BLE: merge ble::advertising_type_t and pal::advertising_type_t.
2018-11-26 10:24:33 +00:00
Vincent Coubard
b4c704c807
BLE: Move leftover target_peer_address_type_t in ble/gap/Types.h
2018-11-26 10:24:33 +00:00
Vincent Coubard
b8db58fe57
BLE: Move new gap types in ble/gap/Types.h
2018-11-26 10:24:33 +00:00
Vincent Coubard
b4fe04addd
BLE: Improve readability of AdvertisingDataBuilder::appendField
2018-11-26 10:24:33 +00:00
Vincent Coubard
2477d0e385
BLE: Fix missing initialization in ble::phy_set_t.
2018-11-26 10:24:33 +00:00
Vincent Coubard
47c4784e31
BLE: Rework ble::AdvertisingParameters
...
* Reorganize functions in logical order.
* Add separation between legacy and extended advertising.
* Update setter to return a reference to this. This allows chain of calls.
* Remove getter that can fail due to bad user inputs.
2018-11-26 10:24:33 +00:00
Vincent Coubard
a255a790a6
BLE: Improve ble::AdvertisingParameters field declaration.
2018-11-26 10:24:33 +00:00
Vincent Coubard
b34d09c47e
BLE: Fix AdvertisingParameters::getChannelXX functions.
2018-11-26 10:24:33 +00:00
Vincent Coubard
184533ab3e
BLE: Fix second time base.
2018-11-26 10:24:33 +00:00
Vincent Coubard
a043f49e7c
BLE: Use common ble::own_address_type_t in ble::ScanParameters.
2018-11-26 10:24:33 +00:00
Vincent Coubard
812b86a197
BLE: cleanup ble::AdvertisingParameters
...
* Use constrained types where relevant.
* Remove fields N/A fields
2018-11-26 10:24:33 +00:00
paul-szczepanek-arm
65d84e4227
fix case
2018-11-26 10:24:33 +00:00
paul-szczepanek-arm
09f71d278d
move feature support into user api
2018-11-26 10:24:33 +00:00
paul-szczepanek-arm
05fb66a987
docs
2018-11-26 10:24:33 +00:00
paul-szczepanek-arm
f3c47f135b
docs
2018-11-26 10:24:33 +00:00
Vincent Coubard
5dc6c1d670
BLE: move ScanParameters into ble namespace.
2018-11-26 10:24:33 +00:00
Vincent Coubard
07cf0f5b91
BLE: Move ConnectionParameters into ble namespace.
2018-11-26 10:24:33 +00:00
Vincent Coubard
f0cbd9f434
BLE: move GapAdvertisingParameters to ble::AdvertisingParameters
2018-11-26 10:24:33 +00:00
Vincent Coubard
1324116377
BLE: rename duration type and extract them out of Gap.
2018-11-26 10:24:33 +00:00
Vincent Coubard
a1d464f2c0
move ble::Bounded in its own file.
2018-11-26 10:24:33 +00:00
Vincent Coubard
20d5de70bd
BLE: Move ble::Duration in its own file.
2018-11-26 10:24:33 +00:00
Vincent Coubard
68703495f6
BLE: Extract types from GapAdvertisingConstant and add them into ble namespace.
2018-11-26 10:24:33 +00:00
Vincent Coubard
6f21326b6a
BLE: Move Gap event types in dedicated file.
2018-11-26 10:24:33 +00:00
Vincent Coubard
3737e385af
BLE: Expose ble::pal::connection_role_t in ble namespace.
2018-11-26 10:24:33 +00:00
Vincent Coubard
4d3354077e
BLE: rename GapExtendedConnectParameters_t into ConnectionParameters
2018-11-26 10:24:32 +00:00
Vincent Coubard
2d1362c2c4
BLE: Move GapScanParameters header into ble/gap/ScanParameters
2018-11-26 10:24:32 +00:00
paul-szczepanek-arm
cf69013bb6
docs
2018-11-26 10:24:32 +00:00
paul-szczepanek-arm
f7310a07e9
docs
2018-11-26 10:24:32 +00:00
paul-szczepanek-arm
0f4ac44bc5
docs
2018-11-26 10:24:32 +00:00
Vincent Coubard
6eee528b79
Update mbed-os/features/FEATURE_BLE/ble/Gap.h
...
Co-Authored-By: paul-szczepanek-arm <paul.szczepanek@arm.com>
2018-11-26 10:24:32 +00:00
Vincent Coubard
472e9ff997
Update mbed-os/features/FEATURE_BLE/ble/Gap.h
...
Co-Authored-By: paul-szczepanek-arm <paul.szczepanek@arm.com>
2018-11-26 10:24:32 +00:00
paul-szczepanek-arm
e9177fa233
docs
2018-11-26 10:24:32 +00:00
paul-szczepanek-arm
da22df74bc
docs and synchronise connection result with other events
2018-11-26 10:24:32 +00:00
Vincent Coubard
4de9a613c8
BLE: Add strict Duration type
...
* Construction from representation type is explicit
* Conversion between unit is only allowed if there is no precision loss
* Range is built inside the type
* More operators!
* min and max values exposed as part of the interface
2018-11-26 10:24:32 +00:00
Vincent Coubard
ff9b380c44
BLE: Use secure types in GapScanParameters.
2018-11-26 10:24:32 +00:00
Vincent Coubard
9604c0187a
BLE: Introduce Duration and Bounded classes.
2018-11-26 10:24:32 +00:00
paul-szczepanek-arm
fa3869cf82
docs
2018-11-26 10:24:32 +00:00
paul-szczepanek-arm
8fe07b47be
docs
2018-11-26 10:24:32 +00:00
paul-szczepanek-arm
360336c89c
docs
2018-11-26 10:24:32 +00:00
paul-szczepanek-arm
9fc577d6e6
docs
2018-11-26 10:24:32 +00:00
paul-szczepanek-arm
642602c925
merge cleanup
2018-11-26 10:24:32 +00:00
paul-szczepanek-arm
4f769df976
merge fail
2018-11-26 10:24:32 +00:00
paul-szczepanek-arm
bb8892a956
more docs
2018-11-26 10:24:32 +00:00
paul-szczepanek-arm
d01b4a53ee
docs
2018-11-26 10:24:32 +00:00
paul-szczepanek-arm
57e4cdd732
new units
2018-11-26 10:24:32 +00:00
paul-szczepanek-arm
7b4439567d
comparison operator
2018-11-26 10:24:32 +00:00
paul-szczepanek-arm
8e18e191fb
new units
2018-11-26 10:24:32 +00:00
paul-szczepanek-arm
e04fd876f5
units
2018-11-26 10:24:32 +00:00
Vincent Coubard
f136b0cb00
BLE: Rework Gap event handler.
...
Every user facing event handler accept a single parameter type; event that contains all the event fields.
That strategy allows us to extend the type later if required while we do not disrupt existing code.
2018-11-26 10:24:32 +00:00
Vincent Coubard
6a63948a7d
BLE: Add phy in sync exstablished event.
2018-11-26 10:24:32 +00:00
Vincent Coubard
194e2cb4f8
BLE: Move common type from pal to ble namespace.
2018-11-26 10:24:32 +00:00
Vincent Coubard
74c2def5ef
BLE: Fix mutability in ble::advertising_event_t
2018-11-26 10:24:32 +00:00
paul-szczepanek-arm
00da0e571a
fix review comments
2018-11-26 10:24:32 +00:00
paul-szczepanek-arm
8733d52da9
event types fixed
2018-11-26 10:24:32 +00:00
paul-szczepanek-arm
9b77f9dcba
default values and func names
2018-11-26 10:24:32 +00:00
paul-szczepanek-arm
68b5aad2ce
ppm case
2018-11-26 10:24:32 +00:00
paul-szczepanek-arm
8cc580d986
only one connection event needed
2018-11-26 10:24:32 +00:00
paul-szczepanek-arm
2cdff44f2a
cancel connection
2018-11-26 10:24:32 +00:00
paul-szczepanek-arm
365a6c8c4d
set random address
2018-11-26 10:24:32 +00:00
paul-szczepanek-arm
c0f4b864ca
clamp values
2018-11-26 10:24:32 +00:00