nochanges
Dependents: BLE_Acceleration_Statejudging
Fork of nRF51822 by
Diff: nRF51822n.cpp
- Revision:
- 342:dec88052ffee
- Parent:
- 113:2fb5fde31edc
- Child:
- 345:dfde56236c36
diff -r bfca7a82c3c7 -r dec88052ffee nRF51822n.cpp --- a/nRF51822n.cpp Fri Jun 19 15:55:33 2015 +0100 +++ b/nRF51822n.cpp Fri Jun 19 15:55:34 2015 +0100 @@ -71,33 +71,6 @@ return versionString; } -/* (Valid values are -40, -20, -16, -12, -8, -4, 0, 4) */ -ble_error_t nRF51822n::setTxPower(int8_t txPower) -{ - unsigned rc; - if ((rc = sd_ble_gap_tx_power_set(txPower)) != NRF_SUCCESS) { - switch (rc) { - case NRF_ERROR_BUSY: - return BLE_STACK_BUSY; - case NRF_ERROR_INVALID_PARAM: - default: - return BLE_ERROR_PARAM_OUT_OF_RANGE; - } - } - - 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. */