Lines Matching refs:NRF_SAADC

99         c[i] = NRF_SAADC->CH[i].CONFIG;  in saadc_anomaly_212_workaround_apply()
100 l[i] = NRF_SAADC->CH[i].LIMIT; in saadc_anomaly_212_workaround_apply()
102 nrf_saadc_resolution_t resolution = nrfy_saadc_resolution_get(NRF_SAADC); in saadc_anomaly_212_workaround_apply()
112 NRF_SAADC->CH[i].CONFIG = c[i]; in saadc_anomaly_212_workaround_apply()
113 NRF_SAADC->CH[i].LIMIT = l[i]; in saadc_anomaly_212_workaround_apply()
118 nrfy_saadc_resolution_set(NRF_SAADC, resolution); in saadc_anomaly_212_workaround_apply()
151 nrfy_saadc_channel_configure(NRF_SAADC, channel_index, &p_channel->channel_config, NULL); in saadc_channel_config()
177 nrfy_saadc_channel_input_set(NRF_SAADC, channel, in saadc_channels_disable()
207 nrfy_saadc_int_disable(NRF_SAADC, NRF_SAADC_INT_STOPPED); in saadc_generic_mode_set()
208 nrfy_saadc_stop(NRF_SAADC, true); in saadc_generic_mode_set()
221 nrfy_saadc_periph_configure(NRF_SAADC, &config); in saadc_generic_mode_set()
224 nrfy_saadc_int_set(NRF_SAADC, in saadc_generic_mode_set()
231 nrfy_saadc_int_set(NRF_SAADC, 0); in saadc_generic_mode_set()
244 nrfy_saadc_burst_set(NRF_SAADC, (uint8_t)ch_pos, burst_to_set); in saadc_generic_mode_set()
245 nrfy_saadc_channel_configure(NRF_SAADC, (uint8_t)ch_pos, NULL, &input); in saadc_generic_mode_set()
272 nrfy_saadc_int_init(NRF_SAADC, mask, interrupt_priority, false); in nrfx_saadc_init()
285 nrfy_saadc_int_uninit(NRF_SAADC); in nrfx_saadc_uninit()
286 nrfy_saadc_event_clear(NRF_SAADC, NRF_SAADC_EVENT_DONE); in nrfx_saadc_uninit()
287 nrfy_saadc_disable(NRF_SAADC); in nrfx_saadc_uninit()
450 nrfy_saadc_continuous_mode_enable(NRF_SAADC, p_config->internal_timer_cc); in nrfx_saadc_advanced_mode_set()
454 nrfy_saadc_continuous_mode_disable(NRF_SAADC); in nrfx_saadc_advanced_mode_set()
499 nrfy_saadc_buffer_set(NRF_SAADC, &buffer, false, false); in nrfx_saadc_buffer_set()
538 nrfy_saadc_enable(NRF_SAADC); in nrfx_saadc_mode_trigger()
546 nrfy_saadc_buffer_set(NRF_SAADC, &m_cb.buffer_primary, true, false); in nrfx_saadc_mode_trigger()
550 nrfy_saadc_buffer_set(NRF_SAADC, &m_cb.buffer_primary, true, true); in nrfx_saadc_mode_trigger()
551 nrfy_saadc_sample_start(NRF_SAADC, &m_cb.buffer_primary); in nrfx_saadc_mode_trigger()
552 nrfy_saadc_disable(NRF_SAADC); in nrfx_saadc_mode_trigger()
559 nrfy_saadc_enable(NRF_SAADC); in nrfx_saadc_mode_trigger()
566 nrfy_saadc_buffer_set(NRF_SAADC, &m_cb.buffer_primary, true, false); in nrfx_saadc_mode_trigger()
575 if (nrfy_saadc_resolution_get(NRF_SAADC) == NRF_SAADC_RESOLUTION_8BIT) in nrfx_saadc_mode_trigger()
586 nrfy_saadc_buffer_set(NRF_SAADC, &chunk, true, true); in nrfx_saadc_mode_trigger()
592 nrfy_saadc_oversample_sample_count_get(nrfy_saadc_oversample_get(NRF_SAADC)); in nrfx_saadc_mode_trigger()
596 nrfy_saadc_sample_start(NRF_SAADC, NULL); in nrfx_saadc_mode_trigger()
598 while (!nrfy_saadc_events_process(NRF_SAADC, evt_mask, NULL)) in nrfx_saadc_mode_trigger()
604 nrfy_saadc_sample_start(NRF_SAADC, &chunk); in nrfx_saadc_mode_trigger()
617 nrfy_saadc_disable(NRF_SAADC); in nrfx_saadc_mode_trigger()
636 nrfy_saadc_abort(NRF_SAADC, NULL); in nrfx_saadc_abort()
667 nrfy_saadc_channel_limits_set(NRF_SAADC, channel, limit_low, limit_high); in nrfx_saadc_limits_set()
673 nrfy_saadc_int_disable(NRF_SAADC, int_mask); in nrfx_saadc_limits_set()
678 nrfy_saadc_int_enable(NRF_SAADC, int_mask); in nrfx_saadc_limits_set()
685 nrfy_saadc_int_disable(NRF_SAADC, int_mask); in nrfx_saadc_limits_set()
690 nrfy_saadc_int_enable(NRF_SAADC, int_mask); in nrfx_saadc_limits_set()
709 nrfy_saadc_enable(NRF_SAADC); in nrfx_saadc_offset_calibrate()
711 uint32_t int_mask = nrfy_saadc_int_enable_check(NRF_SAADC, ~0UL); in nrfx_saadc_offset_calibrate()
712 nrfy_saadc_int_set(NRF_SAADC, 0); in nrfx_saadc_offset_calibrate()
715 nrfy_saadc_calibrate(NRF_SAADC, false); in nrfx_saadc_offset_calibrate()
718 nrfy_saadc_int_set(NRF_SAADC, int_mask | NRF_SAADC_INT_STARTED | NRF_SAADC_INT_STOPPED | in nrfx_saadc_offset_calibrate()
723 nrfy_saadc_calibrate(NRF_SAADC, true); in nrfx_saadc_offset_calibrate()
727 nrfy_saadc_buffer_set(NRF_SAADC, &calib_buffer, true, true); in nrfx_saadc_offset_calibrate()
729 nrfy_saadc_stop(NRF_SAADC, true); in nrfx_saadc_offset_calibrate()
730 nrfy_saadc_event_clear(NRF_SAADC, NRF_SAADC_EVENT_END); in nrfx_saadc_offset_calibrate()
731 nrfy_saadc_disable(NRF_SAADC); in nrfx_saadc_offset_calibrate()
734 nrfy_saadc_event_clear(NRF_SAADC, NRF_SAADC_EVENT_CH0_LIMITL); in nrfx_saadc_offset_calibrate()
735 nrfy_saadc_event_clear(NRF_SAADC, NRF_SAADC_EVENT_CH0_LIMITH); in nrfx_saadc_offset_calibrate()
736 nrfy_saadc_int_set(NRF_SAADC, int_mask); in nrfx_saadc_offset_calibrate()
744 nrfy_saadc_disable(NRF_SAADC); in saadc_pre_calibration_state_restore()
745 uint32_t int_mask = nrfy_saadc_int_enable_check(NRF_SAADC, ~0UL) & in saadc_pre_calibration_state_restore()
755 nrfy_saadc_event_clear(NRF_SAADC, NRF_SAADC_EVENT_CH0_LIMITL); in saadc_pre_calibration_state_restore()
756 nrfy_saadc_event_clear(NRF_SAADC, NRF_SAADC_EVENT_CH0_LIMITH); in saadc_pre_calibration_state_restore()
765 nrfy_saadc_int_set(NRF_SAADC, int_mask); in saadc_pre_calibration_state_restore()
778 if (nrfy_saadc_continuous_mode_enable_check(NRF_SAADC)) in saadc_event_started_handle()
781 nrfy_saadc_sample_start(NRF_SAADC, NULL); in saadc_event_started_handle()
787 nrfy_saadc_buffer_set(NRF_SAADC, &m_cb.buffer_secondary, false, false); in saadc_event_started_handle()
802 nrfy_saadc_sample_start(NRF_SAADC, NULL); in saadc_event_started_handle()
808 nrfy_saadc_stop(NRF_SAADC, false); in saadc_event_started_handle()
826 nrfy_saadc_disable(NRF_SAADC); in saadc_event_end_handle()
838 nrfy_saadc_buffer_latch(NRF_SAADC, false); in saadc_event_end_handle()
845 nrfy_saadc_disable(NRF_SAADC); in saadc_event_end_handle()
866 uint32_t limits_activated = nrfy_saadc_int_enable_check(NRF_SAADC, in saadc_event_limits_handle()
868 uint32_t limits_triggered = nrfy_saadc_events_process(NRF_SAADC, limits_activated, NULL) >> in saadc_event_limits_handle()
899 evt_mask = nrfy_saadc_events_process(NRF_SAADC, evt_mask, &m_cb.buffer_primary); in nrfx_saadc_irq_handler()
903 nrfy_saadc_int_disable(NRF_SAADC, NRF_SAADC_INT_CALIBRATEDONE); in nrfx_saadc_irq_handler()
907 nrfy_saadc_buffer_set(NRF_SAADC, &calib_buffer, true, false); in nrfx_saadc_irq_handler()
915 m_cb.buffer_primary.length = nrfy_saadc_amount_get(NRF_SAADC); in nrfx_saadc_irq_handler()
919 if (nrfy_saadc_int_enable_check(NRF_SAADC, NRF_SAADC_INT_CALIBRATEDONE)) in nrfx_saadc_irq_handler()