![]() |
nRF5 SDK
v16.0.0
|
| Choose documentation: | nRF5 SDK | S112 SoftDevice API | S113 SoftDevice API | S132 SoftDevice API | S140 SoftDevice API | S212 SoftDevice API | S312 SoftDevice API | S332 SoftDevice API | S340 SoftDevice API |
Layer providing compatibility with the former API. More...
Modules | |
| SAADC peripheral driver - legacy layer configuration | |
Macros | |
| #define | NRF_DRV_SAADC_EVT_DONE NRFX_SAADC_EVT_DONE |
| Macro for forwarding the new implementation. | |
| #define | NRF_DRV_SAADC_EVT_LIMIT NRFX_SAADC_EVT_LIMIT |
| Macro for forwarding the new implementation. | |
| #define | NRF_DRV_SAADC_EVT_CALIBRATEDONE NRFX_SAADC_EVT_CALIBRATEDONE |
| Macro for forwarding the new implementation. | |
| #define | nrf_drv_saadc_evt_type_t nrfx_saadc_evt_type_t |
| Macro for forwarding the new implementation. | |
| #define | nrf_drv_saadc_done_evt_t nrfx_saadc_done_evt_t |
| Macro for forwarding the new implementation. | |
| #define | nrf_drv_saadc_limit_evt_t nrfx_saadc_limit_evt_t |
| Macro for forwarding the new implementation. | |
| #define | nrf_drv_saadc_evt_t nrfx_saadc_evt_t |
| Macro for forwarding the new implementation. | |
| #define | nrf_drv_saadc_event_handler_t nrfx_saadc_event_handler_t |
| Macro for forwarding the new implementation. | |
| #define | NRF_DRV_SAADC_LIMITH_DISABLED NRFX_SAADC_LIMITH_DISABLED |
| Macro for forwarding the new implementation. | |
| #define | NRF_DRV_SAADC_LIMITL_DISABLED NRFX_SAADC_LIMITL_DISABLED |
| Macro for forwarding the new implementation. | |
| #define | NRF_DRV_SAADC_DEFAULT_CONFIG NRFX_SAADC_DEFAULT_CONFIG |
| Macro for forwarding the new implementation. | |
| #define | NRF_DRV_SAADC_DEFAULT_CHANNEL_CONFIG_SE NRFX_SAADC_DEFAULT_CHANNEL_CONFIG_SE |
| Macro for forwarding the new implementation. | |
| #define | NRF_DRV_SAADC_DEFAULT_CHANNEL_CONFIG_DIFFERENTIAL NRFX_SAADC_DEFAULT_CHANNEL_CONFIG_DIFFERENTIAL |
| Macro for forwarding the new implementation. | |
| #define | nrf_drv_saadc_uninit nrfx_saadc_uninit |
| Macro for forwarding the new implementation. | |
| #define | nrf_drv_saadc_channel_init nrfx_saadc_channel_init |
| Macro for forwarding the new implementation. | |
| #define | nrf_drv_saadc_channel_uninit nrfx_saadc_channel_uninit |
| Macro for forwarding the new implementation. | |
| #define | nrf_drv_saadc_sample nrfx_saadc_sample |
| Macro for forwarding the new implementation. | |
| #define | nrf_drv_saadc_sample_convert nrfx_saadc_sample_convert |
| Macro for forwarding the new implementation. | |
| #define | nrf_drv_saadc_buffer_convert nrfx_saadc_buffer_convert |
| Macro for forwarding the new implementation. | |
| #define | nrf_drv_saadc_calibrate_offset nrfx_saadc_calibrate_offset |
| Macro for forwarding the new implementation. | |
| #define | nrf_drv_saadc_is_busy nrfx_saadc_is_busy |
| Macro for forwarding the new implementation. | |
| #define | nrf_drv_saadc_abort nrfx_saadc_abort |
| Macro for forwarding the new implementation. | |
| #define | nrf_drv_saadc_limits_set nrfx_saadc_limits_set |
| Macro for forwarding the new implementation. | |
| #define | nrf_drv_saadc_sample_task_get nrfx_saadc_sample_task_get |
| Macro for forwarding the new implementation. | |
Typedefs | |
| typedef nrfx_saadc_config_t | nrf_drv_saadc_config_t |
| Type definition for forwarding the new implementation. | |
Functions | |
| __STATIC_INLINE ret_code_t | nrf_drv_saadc_init (nrf_drv_saadc_config_t const *p_config, nrfx_saadc_event_handler_t event_handler) |
| Function for initializing the SAADC. More... | |
Layer providing compatibility with the former API.
| __STATIC_INLINE ret_code_t nrf_drv_saadc_init | ( | nrf_drv_saadc_config_t const * | p_config, |
| nrfx_saadc_event_handler_t | event_handler | ||
| ) |
Function for initializing the SAADC.
| [in] | p_config | Pointer to the structure with initial configuration. If NULL, the default one is used. |
| [in] | event_handler | Event handler provided by the user. |
| NRF_SUCCESS | If initialization was successful. |
| NRF_ERROR_INVALID_STATE | If the driver is already initialized. |
| NRF_ERROR_INVALID_PARAM | If event_handler is NULL. |