Vincent Coubard
0543442cc3
BLE: Fix conversion of advertising type
...
Previously, we were passing the event_properties as defined by the Bluetooth spec which is not what DmAdvConfig expect as the advertising type passed to DmAdvConfig is Cordio tailored (and incomplete).
2018-12-06 11:23:45 +00:00
Vincent Coubard
d9d4a214b8
BLE: Revert change in stack setup initialisation.
...
While good this change breaks some old application that were adding GATT services before the initialisation of BLE.
This patch revert temporarily this change for now
2018-12-06 11:21:43 +00:00
Vincent Coubard
e3d8b28483
Update features/FEATURE_BLE/targets/TARGET_CORDIO/driver/CordioHCIDriver.h
...
Fix doxygen as suggested by @pan-
Co-Authored-By: donatieng <donatien.garnier@arm.com>
2018-12-06 10:19:57 +00:00
Donatien Garnier
4485531173
Update Porting Guide with memory pool changes
2018-12-05 19:24:44 +00:00
Donatien Garnier
7e6efc2571
Cordio: Update CY8C63XX Driver to use default memory pool
2018-12-05 19:24:44 +00:00
Donatien Garnier
f9b236184a
Cordio: Update CYW4343X Driver to use default memory pool
2018-12-05 19:24:44 +00:00
Donatien Garnier
218bf3f80c
Cordio: Update ODIN-W2 Driver to use default memory pool
2018-12-05 19:24:44 +00:00
Donatien Garnier
2978cd8404
Cordio: Make allocating too much memory for pool a warning, not a fatal assert
2018-12-05 19:24:44 +00:00
Donatien Garnier
101c5697e5
Cordio Nordic LL: Readjust memory pool requirements for NRF52840
2018-12-05 19:24:44 +00:00
Donatien Garnier
c99f2497c3
Cordio Nordic LL: Optimize memory for smaller targets
2018-12-05 19:24:44 +00:00
Donatien Garnier
7a33feca23
Cordio: Split get_buffer_pool_description() in pure virtual + default implementation to avoid allocating two memory pools in a static fashion
2018-12-05 19:24:44 +00:00
Donatien Garnier
b83c4fde66
Cordio: Assert if memory pool is not exactly the right size
2018-12-05 19:24:44 +00:00
Oren Cohen
43468504cd
disable nvstore for sequana_psa
2018-12-05 20:00:07 +02:00
David Saada
e1bd5c9fac
Fix a few bugs in TDBStore and KV config
2018-12-05 17:02:02 +02:00
Kari Haapalehto
f7de4a4a0f
Initialize the interface at the construction and make sure
...
that it's done only once.
2018-12-05 14:44:27 +02:00
Martin Kojtal
415747d692
Merge pull request #8933 from yossi2le/yossi_kvstore_integration
...
Fixing Doxygen descriptions
2018-12-05 13:21:00 +01:00
Cruz Monrreal
49a5052d53
Merge pull request #8965 from KariHaapalehto/coverity_fix
...
Coverity fixes.
2018-12-04 17:01:25 -06:00
Amanda Butler
6201b8d32d
Edit TDBStore.h
...
Edit file for punctuation and consistent tense.
2018-12-04 16:27:35 -06:00
Amanda Butler
5c68c5226a
Edit SecureStore.h
...
Edit file for consistent tense.
2018-12-04 16:25:07 -06:00
Amanda Butler
66dc5a2eba
Add word to KVMap.h
...
Add missing article for clarity and capitalization.
2018-12-04 16:24:00 -06:00
Amanda Butler
77a931b579
Edit FileSystemStore.h
...
Make minor edits, mostly for consistent tense across documents.
2018-12-04 16:22:47 -06:00
Cruz Monrreal
53c03f9835
Merge pull request #8934 from yossi2le/yossi_kvstore_k64F_FileSystem
...
Setting K64F to use KVStore FileSystem configuration
2018-12-04 12:25:06 -06:00
Cruz Monrreal
3325070701
Merge pull request #8936 from RonEld/reduce_default_mpi_max_size
...
Reduce default MBEDTLS_MPI_MAX_SIZE
2018-12-04 12:22:15 -06:00
Cruz Monrreal
b3b050170e
Merge pull request #8879 from pan-/ble-extended-advertising-doc-fixes
...
Ble extended advertising doc fixes
2018-12-04 11:51:44 -06:00
Oren Cohen
f1d3eb9340
Add FUTURE_SEQUANA_PSA target
...
* Modify linker scripts to be compatible with bootloader and PSA
* Add memory protection
* Modify original post-build step to allow link with PSA binaries
* Config kvstore for ITS on FUTURE_SEQUANA_PSA
* Enable PSA-Crypto on PSoC6 with NVSeed
2018-12-04 18:38:50 +02:00
Martin Kojtal
e02a8ab2f1
Merge pull request #8925 from Patater/crypto-storage-config-fixes
...
Fix PSA storage typo
2018-12-04 14:34:15 +01:00
Martin Kojtal
403405c44c
Merge pull request #8953 from ARMmbed/yennster-patch-1
...
Update FEATURE_BLE README
2018-12-04 14:32:14 +01:00
Kari Haapalehto
6d8320fd8c
Coverity fixes.
...
These issues has been found by coverity.
2018-12-04 15:32:02 +02:00
Mel W
f92cc7b30b
Capitalization and punctuation
2018-12-04 12:34:48 +02:00
Martin Kojtal
c1c94c83c5
Merge pull request #8904 from pan-/ble-extended-advertising-fixes
...
Ble extended advertising fixes
2018-12-04 09:50:36 +01:00
Martin Kojtal
992bcbafdb
Merge pull request #8926 from Patater/mbedtls-2.15.1
...
mbedtls: Update Mbed TLS to 2.15.1
2018-12-04 09:32:30 +01:00
Cruz Monrreal
3d6dd46948
Merge pull request #8946 from juhoeskeli/STM32L4_aes_set_key_fix
...
STM32L4: before calling HAL_CRYP_DeInit initialize the Instance member
2018-12-03 21:13:29 -06:00
Cruz Monrreal
36bdf0f59d
Merge pull request #8951 from jeromecoutant/PR_NVSTORE
...
Remove NVSTORE enabled from NUCLEO_F410RB
2018-12-03 21:10:51 -06:00
Jenny Plunkett
fa191259b7
Update FEATURE_BLE README
...
Remove all outdated information including supported services and old documentation links
2018-12-03 13:09:01 -06:00
Vincent Coubard
472c57205b
BLE: Fix doxygen parameter declaration order.
2018-12-03 18:03:30 +00:00
Vincent Coubard
d1b0642ad2
BLE: rename AdvertisingReportEvent::getAdvertisingData into getPayload.
...
This change makes it consistent with PeriodicAdvertisingReportEvent.
2018-12-03 17:56:54 +00:00
Vincent Coubard
ed426c5b45
BLE: rename ConnectionParameters::getFilterPolicy into getFilter for consistency.
2018-12-03 17:11:28 +00:00
Vincent Coubard
5abf2f08fa
BLE: Reintroduce refactored type identifier in privacy configuration structures.
2018-12-03 17:04:38 +00:00
Ron Eldor
edc09cf087
Add comment for reasoning for changing default
...
Add a comment in the `adjust-config.sh` script, for effects
and benefits of the new value.
2018-12-03 18:59:25 +02:00
Ron Eldor
097996c25a
Reduce default MBEDTLS_MPI_MAX_SIZE
...
Reduce the default size of `MBEDTLS_MPI_MAX_SIZE` to 512 bytes,
as the default 1024 consumes much stack, and supporting RSA 4096 bit
may suffice at the moment.
2018-12-03 18:59:25 +02:00
Vincent Coubard
dc3ff6a5e0
BLE: Rename ConnectionParameters::setFilterPolicy into setFilter for consistency.
2018-12-03 16:56:20 +00:00
Vincent Coubard
e026bce881
BLE: Change parameter order of ble::Gap::startScan
2018-12-03 16:50:10 +00:00
jeromecoutant
b2cfef23bc
Remove NVSTORE enabled from NUCLEO_F410RB
2018-12-03 16:00:44 +01:00
Yossi Levy
d21bfbfdab
Setting K64F to use KVStore FileSystem configuration
2018-12-03 16:09:19 +02:00
Yossi Levy
cdcf14ef79
Fixing Doxygen descriptions
2018-12-03 16:08:07 +02:00
Juho Eskeli
361d804e2e
STM32L4: before calling HAL_CRYP_DeInit initialize the Instance member
2018-12-03 16:07:49 +02:00
Martin Kojtal
c59aa99861
Merge pull request #8882 from anttiylitokola/mbed-coap-4.7.3
...
Update mbed-coap to version 4.7.3
2018-12-03 13:44:20 +01:00
Martin Kojtal
ce11081db7
Merge pull request #8884 from pan-/fix-cordio-connection-iteration
...
BLE: Fix iteration on connections in CordioGattServer.
2018-12-03 13:40:23 +01:00
Martin Kojtal
bf36ff77c1
Merge pull request #8855 from michalpasztamobica/warnings_fix
...
Fix compilation warnings (apart from nanostack)
2018-12-03 13:31:55 +01:00
Martin Kojtal
c62f654da1
Merge pull request #8843 from miyuki/fix-cxx11
...
Fix C++11 build with Arm Compiler 6
2018-12-03 13:22:11 +01:00
Cruz Monrreal
92a0e48435
Merge pull request #8817 from KariHaapalehto/ethernet_cable_status_callback_correction
...
Correct network status callbacks with ethernet and nanostack
2018-11-30 17:55:15 -06:00
Cruz Monrreal
79da14d1f4
Merge pull request #8797 from RonEld/cryptocell_ecc_errors_alt_fixes
...
Fix issues in Cryptocell 310 cc_internal discovered by On Target Testing
2018-11-30 17:51:50 -06:00
Jaeden Amero
f9417ac12b
crypto: storage: Fix PSA_PS_ERROR_OFFSET typo
...
Correct typo of PSA_PS_ERROR_OFFSET to PSA_ITS_ERROR_OFFSET.
2018-11-30 15:36:22 +00:00
Jaeden Amero
74f93271ab
mbedtls: Update Mbed TLS to 2.15.1
2018-11-30 15:29:34 +00:00
Martin Kojtal
b9927e5f27
Merge pull request #8795 from TeemuKultala/cellular_connect_status_fix
...
cellular: registration status change fix
2018-11-30 14:32:34 +01:00
jeromecoutant
a8c87c0804
STM32F429/STM32F439 alignment
2018-11-30 09:20:29 +01:00
Paul Szczepanek
0c21112482
fix DM_CONN_ID_NONE loop condition
2018-11-30 08:16:17 +00:00
Vincent Coubard
8c4a1a7b7a
BLE: Improve scan response process explanation.
2018-11-29 13:52:04 +00:00
Vincent Coubard
da3720138e
BLE: Fix common/Duration.h doc.
2018-11-29 13:52:04 +00:00
Vincent Coubard
e8972a72a4
BLE: provide better default connection parameters.
2018-11-29 12:32:36 +00:00
Vincent Coubard
4ed3f5620f
BLE: Fix name of DisconnectionEvent into DisconnectionCompleteEvent for consistency.
2018-11-29 12:28:38 +00:00
Vincent Coubard
3ddcdf24a3
BLE: Fix ble::Gap::getMaxAdvertisingDataLength return type.
2018-11-29 12:26:40 +00:00
Vincent Coubard
402a4479d2
BLE: Ensure scan process is stopped before connecting.
2018-11-29 12:22:34 +00:00
Vincent Coubard
78468fb6e3
BLE: Use RANDOM address per default for Advertising, Scan and Connection parameter.
...
Unlike the public address, the RANDOM address is guaranteed to exist.
If privacy is enabled, it means the controller will generates random resolvable addresses or non resolvable addresses depending on the config.
If privacy is not enabled then the device will use the device's random static address that doesn't change between radio processes.
2018-11-29 12:18:11 +00:00
Vincent Coubard
e7ef0b764e
BLE: protect event signaling flag from concurent accesses.
2018-11-28 17:25:44 +00:00
Vincent Coubard
c23911e3d8
BLE: Fix extraction of advertising element type.
2018-11-28 17:15:54 +00:00
Ron Eldor
bcbda3e621
Return not supported for internal process function
...
Return the `MBEDTLS_ERR_PLATFORM_FEATURE_UNSUPPORTED` for the
internal process function, as it is not public.
2018-11-28 15:31:55 +02:00
Ron Eldor
7822fa8065
Style fixes
...
1. Change camelcase variables to Mbed OS style.
2. Remove functions declarations from the `_alt` header, since they
are now added from the module header regardless whether an alternative
implementation exists.
3. Remove the `extern "c"` declaration from the `_alt` headers.
4. Remove redundant extra lines.
2018-11-28 15:31:17 +02:00
Vincent Coubard
c99824892c
BLE: Reintroduce changes to address types lost.
2018-11-28 11:29:40 +00:00
Steve Cartmell
353e991410
doc(pan-cordio): Add toolchain version used to compile cordio-ll readme
2018-11-28 10:26:14 +00:00
Steve Cartmell
a3bae1c48d
doc(pan-cordio): Add readme and license documents for cordio link layer
2018-11-28 10:26:14 +00:00
Donatien Garnier
5a87cfa13d
Fix a few more rebasing issues
2018-11-28 10:26:14 +00:00
Donatien Garnier
89aabaec0d
Fix some rebasing quirks
2018-11-28 10:26:14 +00:00
Donatien Garnier
f9808140df
Add number of advertising sets
2018-11-28 10:26:14 +00:00
Donatien Garnier
3ce1d91d35
Amend Nordic HCI driver to support BLE5 features
2018-11-28 10:26:14 +00:00
Steve Cartmell
1b3efa4ccd
doc(pan-cordio): Add documentation to README on how to enable Cordio LL
2018-11-28 10:26:14 +00:00
Steve Cartmell
12fdab312e
feat(pan-cordio): Add nordic softdevice sources back into repository
2018-11-28 10:26:14 +00:00
Donatien Garnier
c68c150bf8
Fix buffer size for NRF Cordio HCI driver
2018-11-28 10:26:13 +00:00
Steve Cartmell
93bf68df0b
fix(pan-cordio): Remove erroneous files added after rebasing
2018-11-28 10:26:13 +00:00
Steve Cartmell
1e1486ed18
fix(pan-cordio): Replace the compiled uECC library with the sources
2018-11-28 10:19:08 +00:00
Donatien Garnier
01620b9ba2
Use uECC C99 implementation
2018-11-28 10:19:08 +00:00
Steve Cartmell
0f4ded19ac
feat(pan-cordio): Replace NRF51 softdevice BLE stack with cordio
2018-11-28 10:19:08 +00:00
Steve Cartmell
f583596fea
refactor(pan-cordio): Replace the uECC source with a precompiled library
2018-11-28 10:19:08 +00:00
Steve Cartmell
93267699b8
fix(pan-nordic): Fix memory allocation sizes to resolve NRF52832 issues
2018-11-28 10:19:08 +00:00
Steve Cartmell
815d0d5efc
feat(pan-cordio): Add cordio-ll libraries and NORDIC implementation
2018-11-28 10:19:08 +00:00
Steve Cartmell
ca2efcdd11
fix(pan-cordio): Reset timer after updating to reduce chance of overflow
2018-11-28 10:19:08 +00:00
Steve Cartmell
e5aa84308f
refactor(pan-cordio): Use Timer class instead of raw ticker for timing
2018-11-28 10:19:08 +00:00
Steve Cartmell
299ae1d9c6
fix(pan-cordio): Override WSF handler size in a platform specific manner
2018-11-28 10:19:08 +00:00
Steve Cartmell
5782e93a19
fix(pan-cordio): Wrap call to wsfOsReadyToSleep in a critical section
...
The function wsfOsReadyToSleep should only be called when interrupts are
disabled. Entering a critical section before calling the function fixes
any potential issues.
2018-11-28 10:19:08 +00:00
Steve Cartmell
f60c2c9aa8
fix(pan-cordio): Increase the maximum number of supported WSF handlers
...
NRF52480 fails to complete BLE initialisation due to attempting to set
more event handlers than are supported by the WSF library.
Increasing the number of handlers fixes this issue.
2018-11-28 10:19:08 +00:00
Steve Cartmell
065bad6fa6
fix(pan-cordio): Move stack BLE stack setup to later in initialisation
2018-11-28 10:19:08 +00:00
Martin Kojtal
e62abd8aee
Merge pull request #8804 from mohammad1603/inject_entropy_spm
...
PSA Crypto SPM
2018-11-28 09:40:31 +01:00
Martin Kojtal
4758ddd2c6
Merge pull request #8738 from pan-/ble-extended-advertising
...
Ble extended advertising
2018-11-28 09:39:13 +01:00
Vincent Coubard
d115e73e7e
BLE: Fix iteration on connections in CordioGattServer.
2018-11-27 16:01:56 +00:00
paul-szczepanek-arm
5302a7f599
consistent errors
2018-11-27 15:38:01 +00:00
Vincent Coubard
1a6246f130
BLE: Remove double handling of DM_CONN_OPEN_IND .
2018-11-27 15:30:56 +00:00
Vincent Coubard
daee12d623
BLE: Fix set check in GenerigGap::stopAdvertising.
2018-11-27 15:29:52 +00:00
Antti Yli-Tokola
fffbca64e0
Update mbed-coap to version 4.7.3
...
EMPTY response should not be stored to blockwise list.
An Empty message only contains the 4-byte header so it does not require any blockwise operations.
This will fix unneseccary message sending timeouts which leads mbed cloud client to do unnecessary
reconnections which increases the network traffic.
2018-11-27 16:47:17 +02:00
Netanel Gonen
f1c5aeb70e
add MBEDTLS_PSA_CRYPTO_C defined to K64F PSA target
2018-11-27 14:02:55 +02:00
Martin Kojtal
86915d9a7e
Merge pull request #8704 from RonEld/cryptocell_ccm_alt_fixes
...
Fix issues in Cryptocell 310 ccm_alt discovered by On Target Testing
2018-11-27 11:44:33 +01:00
Mohammad AboMokh
819594477c
Refactor trng_get_bytes()
2018-11-27 12:15:52 +02:00
Mohammad AboMokh
b9ea334f1f
Change __WEAK to MBED_WEAK
2018-11-27 12:15:26 +02:00
mohammad1603
4cef73d2eb
Update output_length in trng_get_bytes() provided by psa.
2018-11-27 11:56:58 +02:00
Danny Shavit
e72d910754
Add a weak implementation for trng_get_bytes()
2018-11-27 11:56:49 +02:00
Netanel Gonen
4816266205
add comment to explain why (-1 * rc) is returned
2018-11-27 11:56:44 +02:00
Netanel Gonen
ae0fa609a9
remove psa_its_get_info from seed read function
2018-11-27 11:56:42 +02:00
Mohammad AboMokh
0fde6af120
change MBEDTLS_RANDOM_SEED_ITS_UID define to be PSA_CRYPTO_ITS_RANDOM_SEED_UID
2018-11-27 11:56:36 +02:00
Mohammad AboMokh
7b2c924ac7
Adding defualt behaviour for platforms without TRNG.
...
If setting the MBEDTLS_PLATFORM_NV_SEED_ALT and MBEDTLS_ENTROPY_NV_SEED flags and not
setting MBEDTLS_PLATFORM_NV_SEED_WRITE_MACRO and MBEDTLS_PLATFORM_NV_SEED_READ_MACRO flags
mbed-os will add an entropy source to the relevent partition - SPE in case of daul core or
in case of single core V7 to the main partition.
The defualt behaviour will be to read or write the data from the ITS.
2018-11-27 11:56:31 +02:00
Vincent Coubard
6677fab856
BLE: Move source/Gap.cpp -> source/LegacyGap.cpp
2018-11-27 09:12:28 +00:00
Martin Kojtal
5e6dc940ba
Merge pull request #8821 from jarvte/add_rat_json
...
Cellular: add radio access technology as configurable in json
2018-11-27 09:23:57 +01:00
Martin Kojtal
436644b7bd
Merge pull request #7760 from ARMmbed/feature_namespace
...
Give an option to remove 'using namespace'
2018-11-27 09:04:58 +01:00
Martin Kojtal
2009f028b1
Merge pull request #8592 from deepikabhavnani/nw_stats_ver2
...
Network Socket Statistics
2018-11-27 09:03:49 +01:00
Teppo Järvelin
76672db5cc
Cellular: add Callback functionality to CellularDevice.
2018-11-27 08:05:41 +02:00
Teppo Järvelin
a3f1ad7b8b
Cellular: updated doxygen for CellularContext and CellularDevice.
2018-11-27 08:04:01 +02:00
Amanda Butler
bbb67a69c8
Edit Types.h
...
Edit file.
2018-11-26 19:35:43 -06:00
Amanda Butler
d00ad8bc96
Edit ScanParameters.h
...
Edit file, mostly to fix typos.
2018-11-26 19:18:24 -06:00
Amanda Butler
fa784c2aff
Edit URIBeaconCOnfigService.h
...
Edit file for active voice and comma use.
2018-11-26 19:15:31 -06:00
Amanda Butler
08ef3f7209
Edit iBeacon.h
...
Add commas between two independent clauses joined by a coordinating conjunction.
2018-11-26 19:14:14 -06:00
Amanda Butler
431402c14d
Edit Gap.h
...
Edit most of file, mostly for U.S. spelling and typos.
2018-11-26 19:08:41 -06:00
Amanda Butler
b4c34557d9
Edit Events.h
...
Edit file for person, capitalization and to fix typos.
2018-11-26 18:47:49 -06:00
Amanda Butler
2e02869173
Edit ConnectionParameters.h
...
Edit file, mostly for agreement.
2018-11-26 18:40:55 -06:00
Amanda Butler
c904ac898a
Edit AdvertisingParameters.h
...
Edit file, mostly for active voice and U.S. spelling.
2018-11-26 18:32:35 -06:00
Amanda Butler
31a73fc007
Edit AdvertisitngDataSimpleBuilder.h
...
Edit file, mostly for consistent tense and typos.
2018-11-26 18:17:22 -06:00
Donatien Garnier
5347a8ae4a
Update Duration.h in consistent casing
2018-11-27 00:16:33 +00:00
Amanda Butler
7df90ba3bc
Edit AdvertisingDataBuilder.h
...
Edit file, mostly to fix typos and standardize hyphen use.
2018-11-26 18:12:56 -06:00
Amanda Butler
451f9aad12
Edit Bounded.h
...
Edit file, mostly for consistent capitalization and active voice.
2018-11-26 18:01:30 -06:00
Amanda Butler
ecf8c7320f
Edit Gap.h
...
Edit file for capitalization and active voice.
2018-11-26 17:58:50 -06:00
Vincent Coubard
a65296e9ee
BLE: removed resolved TODO.
2018-11-26 23:44:23 +00:00
Vincent Coubard
7b1e225012
BLE: Fix address name in NRF targets.
2018-11-26 23:36:43 +00:00
Vincent Coubard
66a9e635bd
BLE: report correct event type for legacy advertising report.
2018-11-26 23:28:30 +00:00
Vincent Coubard
0c9ce24638
BLE: remove unwanted trace.
2018-11-26 23:16:31 +00:00
paul-szczepanek-arm
b552f8c3f0
fix return code for implemented func
2018-11-26 23:06:06 +00:00
Vincent Coubard
ef1552a8f5
BLE: report legacy connection event in new event handler.
2018-11-26 23:03:21 +00:00
paul-szczepanek-arm
a14f143c85
set active set to false when stoping advertising
2018-11-26 23:00:29 +00:00
paul-szczepanek-arm
4d986bf376
fix is feature enabled condition and made in consistent
2018-11-26 21:11:34 +00:00
Vincent Coubard
56185582aa
BLE: Report legacy advertising with new API.
2018-11-26 21:01:14 +00:00
Vincent Coubard
0ef7a40475
BLE: Fix set advertising paylaod dispatch.
2018-11-26 21:00:46 +00:00
deepikabhavnani
da69da972f
Add BlockDevice and Filesystem classes inside mbed namespace.
...
Adding new modules inside the namespace could be breaking change for existing code base
hence add `using namespace::class` for classes newly added to mbed namespace to maintian
backwards compatibility.
MBED_NO_GLOBAL_USING_DIRECTIVE is added to remove auto-addition of namespace
Macro guard `MBED_NO_GLOBAL_USING_DIRECTIVE` is added around namespace, to avoid
polluting users namespace.
2018-11-26 13:35:40 -06:00
Vincent Coubard
daf0f429c8
BLE: Fix advertising set issues on legacy controllers.
2018-11-26 19:14:48 +00:00
paul-szczepanek-arm
3ae38ac1e8
always set existing set for legacy handle
2018-11-26 18:53:49 +00:00
Cruz Monrreal
1c1638342d
Merge pull request #8708 from SeeedJP/wio_bg96_hal
...
[Wio BG96] Adding platform HAL
2018-11-26 11:22:29 -06:00
Vincent Coubard
7f33145760
BLE: Fix extended advertising check.
2018-11-26 17:12:50 +00:00
Vincent Coubard
ac47736259
BLE: Enable cordio extended modules if available.
2018-11-26 16:57:47 +00:00
paul-szczepanek-arm
bf535af159
check feature support before calling extended functnions
2018-11-26 16:57:07 +00:00
paul-szczepanek-arm
bed7677c81
stop advertising before reseting
2018-11-26 16:51:28 +00:00
paul-szczepanek-arm
6f3a9ca107
legacy handle starts off present in _existing_sets
2018-11-26 16:29:33 +00:00
paul-szczepanek-arm
f4a560dace
reset advertising sets on reset
2018-11-26 16:25:33 +00:00
deepikabhavnani
c272377a81
Make sure no memory overhead if statistics are disabled
2018-11-26 09:42:45 -06:00
deepikabhavnani
fa6b3d2783
Corrected TCPServer reporting as per review comments
2018-11-26 09:42:45 -06:00
deepikabhavnani
068f2d14c0
Resolve IAR build issue
...
IAR not able to assign default zero value in array and complaints of
internal error as below:
[ERROR] Internal error: [Front end]: assertion failed at:
"..\..\Translator\compiler_core\src\parser\edg\decl_inits.c", line 2031
2018-11-26 09:42:45 -06:00
Amanda Butler
81fc940a8e
Edit SocketStats.h
...
Edit file.
2018-11-26 09:42:45 -06:00
deepikabhavnani
117eb0bc87
Add socketstats stub functions for unittest and addressed reviews
2018-11-26 09:42:50 -06:00
Deepika
f6c1a40b29
Add config options for socket statistics
...
1. MBED_CONF_NSAPI_SOCKET_STATS_ENABLE to enable the statistics
2. MBED_CONF_NSAPI_SOCKET_STATS_MAX_COUNT max sockets statistics cached
2018-11-26 09:42:45 -06:00
Deepika
a851df66e3
Code/bug after testing
...
1. Fixing astyle and docs
2. Extra mutex lock was removed
3. Bytes are updated when send/recv > 0 and not in case of -ve error
4. Review comments
5. Guard statistics implementation in test with MBED_NW_STATS_ENABLED
2018-11-26 09:42:45 -06:00
Deepika
09b4bc07ce
This is the initial version of stats implementation in network layer.
...
SocketStats Class is added to collect and provide the statistics information.
In this phase only socket information is collected and max sockets that can
be recorded at any time are configurable through 'MBED_CONF_NSAPI_SOCKET_STATS_MAX_COUNT'
Network statistics can be enabled through a macro MBED_NW_STATS_ENABLED
More information on design is captured in #8743
2018-11-26 09:42:39 -06:00
paul-szczepanek-arm
2b94b66fd2
deprecate services that are not useless
2018-11-26 15:42:12 +00:00
paul-szczepanek-arm
e54e3eaee0
cast no longer needed
2018-11-26 15:42:12 +00:00
deepikabhavnani
d5da9eb636
Resolved warning "call_in inherits implicit virtual"
2018-11-26 09:41:15 -06:00
Martin Kojtal
3c0d6f0b0c
Merge pull request #8790 from AriParkkila/cell-urc-cb
...
Cellular: Fix ATHandler URC processing
2018-11-26 16:36:54 +01:00
Vincent Coubard
f71e08ccf1
BLE: tag API uses in GenericGap.
2018-11-26 15:26:24 +00:00
Vincent Coubard
2d63714f2e
BLE: Implement connection parameter management in GAP.
2018-11-26 15:25:46 +00:00
Vincent Coubard
89355b9fb0
BLE: Check supervision timeout value in connect.
2018-11-26 15:24:42 +00:00
Vincent Coubard
d1b5c8cbb5
BLE: Mark LEGACY_ADVERTISING_HANDLE as active in initialization.
2018-11-26 15:23:53 +00:00
Vincent Coubard
93b6ecfa7e
BLE: initialize properly deprecated and non deprecated flags.
2018-11-26 15:23:24 +00:00
Vincent Coubard
3aa91ecbba
BLE: return phy_set_t in ConnectionParameters::getPhySet
2018-11-26 15:22:50 +00:00
Vincent Coubard
a915748cbe
BLE: Fallback to legacy connect when required.
2018-11-26 14:13:07 +00:00
Vincent Coubard
190b9bc125
BLE: Fix address type in ::ble::Gap::connect
2018-11-26 14:13:07 +00:00
Ron Eldor
5e0223f78f
Add the platform generic errors
...
Replace the module specific errors with the `MBEDTLS_ERR_PLATFORM_XXX`
errors.
2018-11-26 15:33:17 +02:00
Ron Eldor
5ed3a64527
Return MBEDTLS_ERR_CCM_BAD_INPUT on invalid key
...
Return `MBEDTLS_ERR_AES_FEATURE_UNAVAILABLE` only for valid key lengths,
that are not supported by Cryptocell 310. For other key sizes, return
`MBEDTLS_ERR_CCM_BAD_INPUT`
2018-11-26 15:33:16 +02:00
Ron Eldor
1b34927e83
Style fixes
...
1. Change camelcase variables to Mbed OS style.
2. Remove functions declarations from the `_alt` header, since they
are now added from the module header regardless whether an alternative
implementation exists.
3. Remove the `extern "c"` declaration from the `_alt` headers.
4. Remove whitespaces before opening parenthesis.
5. Fix alignment of function parameters.
6. Fix indentations.
7. Limit lines to 80 characters.
2018-11-26 15:32:46 +02:00
Michal Paszta
e101943cce
Fix compilation warnings (apart from nanostack)
2018-11-26 14:27:48 +01:00
Ron Eldor
c948eaad21
Fix issues in CC310 cc_internal discovered by OTT
...
Return `MBEDTLS_ERR_ECP_INVALID_KEY` when Cryptocell returns
`CRYS_ECPKI_BUILD_KEY_INVALID_PRIV_KEY_SIZE_ERROR`
or `CRYS_ECPKI_BUILD_KEY_INVALID_PUBL_KEY_SIZE_ERROR`,
When the key size is invalid. Found by the "ECDSA zero private parameter"
tests.
2018-11-26 15:09:00 +02:00
Ron Eldor
d487c80d76
Additional fix for ccm_alt from On Target Testings
...
An additional fix for ccm_alt, when the message length is too big.
Check for specific error returned from CC310, and return
`MBEDTLS_ERR_CCM_BAD_INPUT`.
2018-11-26 15:02:19 +02:00
Ron Eldor
53c02d7457
Zeroize output buffer, upon authentication faliure.
...
Clear output buffer upon failure.
2018-11-26 15:01:02 +02:00
Ron Eldor
1aaff0e389
Return `MBEDTLS_ERR_CCM_AUTH_FAILED` where needed.
...
On authentication decryption, when the driver returns the relevant error,
return `MBEDTLS_ERR_CCM_AUTH_FAILED`.
2018-11-26 15:01:01 +02:00
Ron Eldor
4e7e0548d5
Fix memory overflow
...
Fix memory overflow, by adding a local buffer of type
`CRYS_AESCCM_Mac_Res_t `for the tag result, and copy to the input
parameter `tag`.
2018-11-26 14:59:59 +02:00
Ron Eldor
93e0f6493d
Use mbedtls_platform_zeroize
...
Rplace calls to `mbedtls_zeroize()` to `mbedtls_platform_zeroize()`.
2018-11-26 14:57:43 +02:00
Ron Eldor
8cc8481a71
Add unsupported functions for CCM*.
...
Implement the CCM* functions, by returning `MBEDTLS_ERR_AES_FEATURE_UNAVAILABLE`
2018-11-26 14:57:43 +02:00
Mikhail Maltsev
5c351dc6ae
Fix C++11 build with Arm Compiler 6
...
Currently there are two issues which prevent building Mbed OS with
-std=gnu++11 when using Arm Compiler 6:
* NanostackRfPhys2lp.cpp contains a narrowing conversion in a braced
initializer list
* ns_types.h includes <stdalign.h> which Arm Compiler 6 currently
does not provide
This patch fixes both issues. The first one is fixed by changing the
underlying type of the corresponding enumeration when the code is
compiled as C++11. The second issue is worked around by avoiding the
use of <stdalign.h> header for Arm Compiler versions prior to 6.12.
2018-11-26 12:54:51 +00:00
paul-szczepanek-arm
c9e8501b22
make PHY case consistent
2018-11-26 12:30:57 +00:00
Vincent Coubard
d3d93e1ef9
BLE: Improve ble::Gap documentation.
2018-11-26 11:51:00 +00:00
paul-szczepanek-arm
bee115c39e
replace magic numbers
2018-11-26 11:31:03 +00:00
paul-szczepanek-arm
f3a64feaf1
replace magic numbers
2018-11-26 11:26:26 +00:00
paul-szczepanek-arm
a03aaa2342
simplify and explain swapping
2018-11-26 11:26:13 +00:00
paul-szczepanek-arm
e0e186c831
replace consts with a private enum
2018-11-26 11:21:37 +00:00
paul-szczepanek-arm
528deb168f
fix wrong variable being swapped
2018-11-26 11:16:23 +00:00
paul-szczepanek-arm
208b1bd3e9
fix size calculation for UUID data payload
2018-11-26 11:10:39 +00:00
Martin Kojtal
fdca1e3578
Merge pull request #8730 from kfnta/its_kvstore_single_core
...
Add a new PSA Internal Trusted Storage APIs
2018-11-26 11:54:08 +01:00
Vincent Coubard
8cbc53617f
BLE: Add a simple builder for AdvertisingData.
2018-11-26 10:24:35 +00:00
Vincent Coubard
d4a66ae034
BLE: Add an AdvertisingDataParser
2018-11-26 10:24:35 +00:00
Vincent Coubard
09ba26ce4b
BLE: Move advertising data types in their own file.
2018-11-26 10:24:35 +00:00
Vincent Coubard
be7cc41da4
BLE: doxygen fixes.
2018-11-26 10:24:35 +00:00
Vincent Coubard
0407ee8c81
BLE: move privacy configuration type in ble namespace.
2018-11-26 10:24:35 +00:00
Vincent Coubard
dff8f25d49
BLE: Improve Duration documentation.
2018-11-26 10:24:35 +00:00
Vincent Coubard
78d4a9b6c8
BLE: Cleanup enum duplicates in gap/Types.h
2018-11-26 10:24:35 +00:00
Vincent Coubard
884d870b68
BLE: Improve gap/Types.h documentation.
2018-11-26 10:24:35 +00:00
Vincent Coubard
9621b26cab
BLE: Reorganize ble::gap documentation group.
2018-11-26 10:24:35 +00:00
Vincent Coubard
27011fd954
BLE: Document ble::ScanParameters.
2018-11-26 10:24:35 +00:00
Vincent Coubard
11b1e91592
BLE: Rework ScanParameters construction.
2018-11-26 10:24:35 +00:00
Vincent Coubard
3119f9488c
BLE: Construct a phy_set_t from a phy_t.
2018-11-26 10:24:35 +00:00
Vincent Coubard
e130bec6a0
BLE: rework ScanParameters::phy_configuration_t
2018-11-26 10:24:35 +00:00
Vincent Coubard
4db8ddfb90
BLE: fix name of functions in ble::ScanParameters.
2018-11-26 10:24:35 +00:00
Vincent Coubard
936f1c550a
BLE: Update ble::Gap documentation.
2018-11-26 10:24:35 +00:00
Vincent Coubard
6b8b1d0b7a
BLE: remove minimize fragmentation parameter in Gap.
2018-11-26 10:24:35 +00:00
Vincent Coubard
4058f0908a
BLE: Extract computation of minimumSupervisionTimeout.
2018-11-26 10:24:35 +00:00
Vincent Coubard
6cb7645846
BLE: Improve NULL check in ble::AdvertisingDataBuilder implementation.
2018-11-26 10:24:35 +00:00
Vincent Coubard
643fad0162
BLE: Improve code by explaining or textually defining constants
2018-11-26 10:24:35 +00:00
Vincent Coubard
6c09b6c465
BLE: Expose representation type in ble::Duration.
2018-11-26 10:24:35 +00:00
Vincent Coubard
ce2460a92a
BLE: expose representation type and pointer to the inner storage in SafeEnum.
2018-11-26 10:24:35 +00:00
Vincent Coubard
eda3bfb0e3
BLE: Explain magic constant in ble::Gap implementation.
2018-11-26 10:24:35 +00:00
Vincent Coubard
30c6432b5d
BLE: Address code formating issue in CordioPalGap implementation.
2018-11-26 10:24:35 +00:00
Vincent Coubard
76416b2f47
BLE: Improve implementation readability of ble::advertising_event_t
2018-11-26 10:24:35 +00:00
Vincent Coubard
27dd08431e
BLE: remove ble::pal::extended_advertising_report_event_type_t as it is not used.
2018-11-26 10:24:35 +00:00
Vincent Coubard
d32354a7a6
BLE: Fix compiler warning about unused variable.
2018-11-26 10:24:35 +00:00
Vincent Coubard
2a08549b8d
BLE: rename ble::Forever into ble::Value.
2018-11-26 10:24:35 +00:00
Vincent Coubard
e9637c419a
BLE: Remove ble::clamp as it is not used anywhere.
2018-11-26 10:24:35 +00:00
Vincent Coubard
b49870d8ae
BLE: Fix code formating issues in Gap subsystem.
2018-11-26 10:24:35 +00:00
Vincent Coubard
f64b37ba0d
BLE: Fix function braces opening in header files.
2018-11-26 10:24:35 +00:00
Vincent Coubard
1b734a46d2
BLE: Improve ble::Gap::EventHandler documentation.
2018-11-26 10:24:35 +00:00
Vincent Coubard
70ec1cf641
BLE: Improve naming consistency of Gap event types.
2018-11-26 10:24:35 +00:00
Vincent Coubard
dea2ae9c1f
BLE: Exclude Gap Event constructors from documentation.
2018-11-26 10:24:35 +00:00
Vincent Coubard
430777e20b
BLE: Update documentation of Gap::Events.
2018-11-26 10:24:35 +00:00
Vincent Coubard
8fc62efbd8
BLE: Improve naming consistency of ble::Gap::EventHandler functions.
2018-11-26 10:24:35 +00:00
Vincent Coubard
6e4e733c1c
BLE: Add code example for ble::ConnectionParameters.
2018-11-26 10:24:35 +00:00
Vincent Coubard
49455dcc87
BLE: set the phy as first parameter in ble::ConnectionParameters.
2018-11-26 10:24:35 +00:00
Vincent Coubard
1841f4e75e
BLE: Document ble::ConnectionParameters.
2018-11-26 10:24:35 +00:00
Vincent Coubard
8d03d67ae8
BLE: Improve ble::AdvertisingParameters documentation.
2018-11-26 10:24:35 +00:00
Vincent Coubard
52318e464d
BLE: rename AdvertisingParameters::*PolicyMode into AdvertisingParameters::*Filter.
2018-11-26 10:24:35 +00:00
paul-szczepanek-arm
2eaec287fb
simple scan paramater constructor
2018-11-26 10:24:35 +00:00
paul-szczepanek-arm
cd5dabf464
duration added valueInMs
2018-11-26 10:24:35 +00:00
paul-szczepanek-arm
c9dcef17dd
return func made const
2018-11-26 10:24:35 +00:00
Vincent Coubard
9f39dba429
BLE: Fix constant declaration of ble::AdvertisingParameters.
2018-11-26 10:24:35 +00:00
Vincent Coubard
fea3ac87de
BLE: Add forever information to ble::adv_duration_t and ble::scan_duration_t
2018-11-26 10:24:35 +00:00
paul-szczepanek-arm
02cf9ea94d
moved some funcs to cpp, moved cpp to source folder
2018-11-26 10:24:35 +00:00
Vincent Coubard
ba931f1d4c
BLE: Document ble::Duration and satelite classes.
2018-11-26 10:24:34 +00:00
Vincent Coubard
e602a5f06c
BLE: Improve static constant of Range and Duration.
2018-11-26 10:24:34 +00:00
Vincent Coubard
62674e58e6
BLE: Handle forever value in ble::Duration operators.
2018-11-26 10:24:34 +00:00
Vincent Coubard
49f5c7f833
BLE: Fix Bounded constant declaration.
2018-11-26 10:24:34 +00:00
Vincent Coubard
07c05917e0
BLE: Add Duration::forever() function.
2018-11-26 10:24:34 +00:00
paul-szczepanek-arm
7b0cb27427
added type conversion for connection params
2018-11-26 10:24:34 +00:00
paul-szczepanek-arm
7fb863eeb4
missing virtual
2018-11-26 10:24:34 +00:00
Vincent Coubard
80db38c60a
BLE: Cleanup bounded and document it.
2018-11-26 10:24:34 +00:00
paul-szczepanek-arm
e9c0f587af
fix constness to match recent const changes
2018-11-26 10:24:34 +00:00
paul-szczepanek-arm
b293426a81
missing overloads
2018-11-26 10:24:34 +00:00
paul-szczepanek-arm
ed10543093
missing virtual
2018-11-26 10:24:34 +00:00
paul-szczepanek-arm
1bf5826cdc
pull in more inherited overloads
2018-11-26 10:24:34 +00:00
paul-szczepanek-arm
e49b5230cc
fix missing index
2018-11-26 10:24:34 +00:00
Vincent Coubard
87f36450f5
BLE: return immutable buffer from AdvertisingDataBuilder::getAdvertisingData
2018-11-26 10:24:34 +00:00
Vincent Coubard
dfa7749d8a
BLE: Split ble/gap/AdvertisingDataBuilder.h into declaration and implementation file.
2018-11-26 10:24:34 +00:00
Vincent Coubard
86dc6d71ee
BLE: Fix includes of ble/gap/AdvertisingDataBuilder.h ,
2018-11-26 10:24:34 +00:00
Vincent Coubard
0c2efc4dd9
BLE: Fix return value of GenericGap::manageConnectionParametersUpdateRequest.
2018-11-26 10:24:34 +00:00
Vincent Coubard
586aea553b
BLE: Move privacy subsystem to ::ble::Gap.
2018-11-26 10:24:34 +00:00
Vincent Coubard
c54e0d9862
BLE: Move Gap::StopScan into ::ble::Gap::stopScan .
2018-11-26 10:24:34 +00:00
Vincent Coubard
dd2c85d063
BLE: Fix signeness warning in AdvertisingDataBuilder.
2018-11-26 10:24:34 +00:00
Vincent Coubard
bc6078eb77
BLE: prevent warning from deprecated API implementation in GenericGap.
2018-11-26 10:24:34 +00:00
Vincent Coubard
4fdb9c7e67
BLE: provide default implementation ::ble::Gap::isFeatureSupported
2018-11-26 10:24:34 +00:00
Vincent Coubard
a9fd003803
BLE: Move uses of deprecated Gap functions into isolated and warning free block.
2018-11-26 10:24:34 +00:00
Vincent Coubard
1802909272
BLE: Move Gap deprecated implementation in source/Gap.cpp .
...
The implementation has been moved to a block that do not issue deprecation warning as this is an implementation detail.
2018-11-26 10:24:34 +00:00
Vincent Coubard
0b746a78c8
BLE: prefix inclusion of Gap header with "ble/"
2018-11-26 10:24:34 +00:00
paul-szczepanek-arm
2e6fefa289
missing defaults
2018-11-26 10:24:34 +00:00
paul-szczepanek-arm
376cbd25fa
fixed index and default constructor in conn params
2018-11-26 10:24:34 +00:00
paul-szczepanek-arm
b0b6346050
added extra constructor
2018-11-26 10:24:34 +00:00
paul-szczepanek-arm
75e6128776
solve link problems
2018-11-26 10:24:34 +00:00
paul-szczepanek-arm
e5e7f3edef
pull in inherited overloads
2018-11-26 10:24:34 +00:00
paul-szczepanek-arm
935444d128
use correct type for service data based on uuid length
2018-11-26 10:24:34 +00:00
paul-szczepanek-arm
79518ca089
service data allows both types of UUIDs
2018-11-26 10:24:34 +00:00
Vincent Coubard
02d61cfe24
BLE: Move new version of ::GAP in a new class ::ble::Gap .
2018-11-26 10:24:34 +00:00
paul-szczepanek-arm
84dd169d14
allow long uuids in service data
2018-11-26 10:24:34 +00:00
paul-szczepanek-arm
181ce00902
fix size checks
2018-11-26 10:24:34 +00:00
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
paul-szczepanek-arm
b59b29ba9f
reject conenct request if exteneded not enabled but required
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
823825ee24
BLE: Fix ternary expression return type.
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
d659bc6561
BLE: unwrap own_address_type value in GenericGap.
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
5ad50a20f8
BLE: Add PHY precondition check in setScanParameters.
2018-11-26 10:24:32 +00:00
Vincent Coubard
3e884a382e
BLE: Initialisation of legacy advertising set.
2018-11-26 10:24:32 +00:00
Vincent Coubard
6fccb11006
BLE: Deal with random address rotation where appropriate.
2018-11-26 10:24:32 +00:00
Vincent Coubard
09d22a329c
BLE: Address special case when advertising payload size is 0.
2018-11-26 10:24:32 +00:00