nRF51 SDK
|
APIs for SoftDevice management. More...
Modules | |
SoftDevice Manager Error Codes | |
Error definitions for the SDM API. | |
Macros | |
#define | SDM_SVC_BASE 0x10 |
SoftDevice Manager SVC Base number. | |
Typedefs | |
typedef uint32_t | nrf_clock_lfclksrc_t |
Type representing lfclk oscillator source. | |
typedef void(* | softdevice_assertion_handler_t )(uint32_t pc, uint16_t line_number, const uint8_t *p_file_name) |
SoftDevice Assertion Handler type. More... | |
Enumerations | |
enum | { SD_NRF_SOFTDEVICE_ENABLE = SDM_SVC_BASE, SD_NRF_SOFTDEVICE_DISABLE, SD_NRF_SOFTDEVICE_IS_ENABLED, SVC_NRF_SDM_LAST } |
nRF SoftDevice Manager API SVC numbers. More... | |
enum | { NRF_CLOCK_LFCLKSRC_RC_250_PPM, NRF_CLOCK_LFCLKSRC_SYNTH_250_PPM, NRF_CLOCK_LFCLKSRC_XTAL_500_PPM, NRF_CLOCK_LFCLKSRC_XTAL_250_PPM, NRF_CLOCK_LFCLKSRC_XTAL_150_PPM, NRF_CLOCK_LFCLKSRC_XTAL_100_PPM, NRF_CLOCK_LFCLKSRC_XTAL_75_PPM, NRF_CLOCK_LFCLKSRC_XTAL_50_PPM, NRF_CLOCK_LFCLKSRC_XTAL_30_PPM, NRF_CLOCK_LFCLKSRC_XTAL_20_PPM } |
Possible lfclk oscillator sources. More... | |
Functions | |
uint32_t | SVCALL (SD_NRF_SOFTDEVICE_ENABLE) sd_softdevice_enable(nrf_clock_lfclksrc_t clock_source |
Enables the SoftDevice and by extension the protocol stack. More... | |
uint32_t | SVCALL (SD_NRF_SOFTDEVICE_DISABLE) sd_softdevice_disable(void) |
Disables the SoftDevice and by extension the protocol stack. More... | |
uint32_t | SVCALL (SD_NRF_SOFTDEVICE_IS_ENABLED) sd_softdevice_is_enabled(uint8_t *p_softdevice_enabled) |
Check if the SoftDevice is enabled. More... | |
Variables | |
uint32_t softdevice_assertion_handler_t | assertion_handler |
typedef void(* softdevice_assertion_handler_t)(uint32_t pc, uint16_t line_number, const uint8_t *p_file_name) |
When an unexpected error occurs within the SoftDevice it will call the SoftDevice assertion handler callback. The protocol stack will be in an undefined state when this happens and the only way to recover will be to perform a reset, using e.g. CMSIS NVIC_SystemReset().
[in] | pc | The program counter of the failed assert. |
[in] | line_number | Line number where the assert failed. |
[in] | file_name | File name where the assert failed. |
anonymous enum |
anonymous enum |
uint32_t SVCALL | ( | SD_NRF_SOFTDEVICE_ENABLE | ) |
Idempotent function to enable the SoftDevice.
clock_source | Low frequency clock source and accuracy. (Note: In the case of XTAL source, the PPM accuracy of the chosen clock source must be greater than or equal to the actual characteristics of your XTAL clock). |
assertion_handler | Callback for SoftDevice assertions. |
uint32_t SVCALL | ( | SD_NRF_SOFTDEVICE_DISABLE | ) |
Idempotent function to disable the SoftDevice.
uint32_t SVCALL | ( | SD_NRF_SOFTDEVICE_IS_ENABLED | ) |
[out] | p_softdevice_enabled | If the SoftDevice is enabled: 1 else 0. |