Lines Matching refs:saadc_state

78     nrf_saadc_state_t          saadc_state;                  ///< State of the SAADC driver.  member
184 if ((m_cb.saadc_state == NRF_SAADC_STATE_IDLE) || in saadc_busy_check()
185 (m_cb.saadc_state == NRF_SAADC_STATE_ADV_MODE) || in saadc_busy_check()
186 (m_cb.saadc_state == NRF_SAADC_STATE_SIMPLE_MODE)) in saadc_busy_check()
252 if (m_cb.saadc_state != NRF_SAADC_STATE_UNINITIALIZED) in nrfx_saadc_init()
264 m_cb.saadc_state = NRF_SAADC_STATE_IDLE; in nrfx_saadc_init()
289 m_cb.saadc_state = NRF_SAADC_STATE_UNINITIALIZED; in nrfx_saadc_uninit()
294 return (m_cb.saadc_state != NRF_SAADC_STATE_UNINITIALIZED); in nrfx_saadc_init_check()
300 NRFX_ASSERT(m_cb.saadc_state != NRF_SAADC_STATE_UNINITIALIZED); in nrfx_saadc_channels_config()
326 NRFX_ASSERT(m_cb.saadc_state != NRF_SAADC_STATE_UNINITIALIZED); in nrfx_saadc_channel_config()
341 NRFX_ASSERT(m_cb.saadc_state != NRF_SAADC_STATE_UNINITIALIZED); in nrfx_saadc_channels_configured_get()
348 NRFX_ASSERT(m_cb.saadc_state != NRF_SAADC_STATE_UNINITIALIZED); in nrfx_saadc_channels_deconfig()
365 NRFX_ASSERT(m_cb.saadc_state != NRF_SAADC_STATE_UNINITIALIZED); in nrfx_saadc_simple_mode_set()
397 m_cb.saadc_state = NRF_SAADC_STATE_SIMPLE_MODE; in nrfx_saadc_simple_mode_set()
407 NRFX_ASSERT(m_cb.saadc_state != NRF_SAADC_STATE_UNINITIALIZED); in nrfx_saadc_advanced_mode_set()
461 m_cb.saadc_state = NRF_SAADC_STATE_ADV_MODE; in nrfx_saadc_advanced_mode_set()
468 NRFX_ASSERT(m_cb.saadc_state != NRF_SAADC_STATE_UNINITIALIZED); in nrfx_saadc_buffer_set()
488 switch (m_cb.saadc_state) in nrfx_saadc_buffer_set()
525 NRFX_ASSERT(m_cb.saadc_state != NRF_SAADC_STATE_UNINITIALIZED); in nrfx_saadc_mode_trigger()
526 NRFX_ASSERT(m_cb.saadc_state != NRF_SAADC_STATE_IDLE); in nrfx_saadc_mode_trigger()
534 switch (m_cb.saadc_state) in nrfx_saadc_mode_trigger()
545 m_cb.saadc_state = NRF_SAADC_STATE_SIMPLE_MODE_SAMPLE; in nrfx_saadc_mode_trigger()
565 m_cb.saadc_state = NRF_SAADC_STATE_ADV_MODE_SAMPLE; in nrfx_saadc_mode_trigger()
631 NRFX_ASSERT(m_cb.saadc_state != NRF_SAADC_STATE_UNINITIALIZED); in nrfx_saadc_abort()
633 if (m_cb.saadc_state == NRF_SAADC_STATE_CALIBRATION ? m_cb.calib_event_handler : in nrfx_saadc_abort()
648 NRFX_ASSERT(m_cb.saadc_state != NRF_SAADC_STATE_UNINITIALIZED); in nrfx_saadc_limits_set()
656 if ((m_cb.saadc_state == NRF_SAADC_STATE_IDLE) || in nrfx_saadc_limits_set()
657 (m_cb.saadc_state == NRF_SAADC_STATE_CALIBRATION)) in nrfx_saadc_limits_set()
698 NRFX_ASSERT(m_cb.saadc_state != NRF_SAADC_STATE_UNINITIALIZED); in nrfx_saadc_offset_calibrate()
705 m_cb.saadc_state_prev = m_cb.saadc_state; in nrfx_saadc_offset_calibrate()
706 m_cb.saadc_state = NRF_SAADC_STATE_CALIBRATION; in nrfx_saadc_offset_calibrate()
732 m_cb.saadc_state = m_cb.saadc_state_prev; in nrfx_saadc_offset_calibrate()
748 m_cb.saadc_state = m_cb.saadc_state_prev; in saadc_pre_calibration_state_restore()
772 switch (m_cb.saadc_state) in saadc_event_started_handle()
784 m_cb.saadc_state = NRF_SAADC_STATE_ADV_MODE_SAMPLE_STARTED; in saadc_event_started_handle()
823 switch (m_cb.saadc_state) in saadc_event_end_handle()
827 m_cb.saadc_state = NRF_SAADC_STATE_SIMPLE_MODE; in saadc_event_end_handle()
846 m_cb.saadc_state = NRF_SAADC_STATE_ADV_MODE; in saadc_event_end_handle()
912 if (m_cb.saadc_state != NRF_SAADC_STATE_CALIBRATION) in nrfx_saadc_irq_handler()
939 if (m_cb.saadc_state != NRF_SAADC_STATE_CALIBRATION) in nrfx_saadc_irq_handler()