Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: BLE_ANCS_SDAPI BLE_temperature BLE_HeartRate writable_gatt ... more
Diff: nRF51822n.cpp
- Revision:
- 96:f98c65780f4a
- Parent:
- 80:cdcc094ab166
- Child:
- 113:2fb5fde31edc
--- a/nRF51822n.cpp Mon Mar 02 11:34:45 2015 +0000 +++ b/nRF51822n.cpp Mon Mar 02 11:34:45 2015 +0000 @@ -81,6 +81,16 @@ return BLE_ERROR_NONE; } +void nRF51822n::getPermittedTxPowerValues(const int8_t **valueArrayPP, size_t *countP) +{ + static const int8_t permittedTxValues[] = { + -40, -30, -20, -16, -12, -8, -4, 0, 4 + }; + + *valueArrayPP = permittedTxValues; + *countP = sizeof(permittedTxValues) / sizeof(int8_t); +} + ble_error_t nRF51822n::init(void) { /* ToDo: Clear memory contents, reset the SD, etc. */