This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

ble_app_proximity, saadc channel data

nRF5_SDK_11.0.0_89a8197\examples\ble_peripheral\ble_app_proximity

main.c

void saadc_event_handler(nrf_drv_saadc_evt_t const * p_event) {

if (p_event->type == NRF_DRV_SAADC_EVT_DONE)
{

... adc_result = p_event->data.done.p_buffer[0];

In this example, it read adc result from p_event->data.done.p_buffer[0].

If i want use two or more adc channel. How can I read the adc result ?

Thanks!