Home
last modified time | relevance | path

Searched refs:state (Results 1 – 25 of 28) sorted by relevance

12

/hal_nordic-3.4.0/nrfx/drivers/src/
Dnrfx_adc.c53 nrfx_drv_state_t state; member
64 if (m_cb.state != NRFX_DRV_STATE_UNINITIALIZED) in nrfx_adc_init()
80 m_cb.state = NRFX_DRV_STATE_INITIALIZED; in nrfx_adc_init()
99 m_cb.state = NRFX_DRV_STATE_UNINITIALIZED; in nrfx_adc_uninit()
159 NRFX_ASSERT(m_cb.state != NRFX_DRV_STATE_UNINITIALIZED); in nrfx_adc_sample()
169 NRFX_ASSERT(m_cb.state != NRFX_DRV_STATE_UNINITIALIZED); in nrfx_adc_sample_convert()
170 if (m_cb.state == NRFX_DRV_STATE_POWERED_ON) in nrfx_adc_sample_convert()
180 m_cb.state = NRFX_DRV_STATE_POWERED_ON; in nrfx_adc_sample_convert()
193 m_cb.state = NRFX_DRV_STATE_INITIALIZED; in nrfx_adc_sample_convert()
247 NRFX_ASSERT(m_cb.state != NRFX_DRV_STATE_UNINITIALIZED); in nrfx_adc_buffer_convert()
[all …]
Dnrfx_qspi.c102 nrfx_qspi_state_t state; /**< Driver state. */ member
113 NRFX_ASSERT(m_cb.state != NRFX_QSPI_STATE_UNINITIALIZED); in qspi_xfer()
121 if ((m_cb.state != NRFX_QSPI_STATE_IDLE) && in qspi_xfer()
122 (m_cb.state != desired_state)) in qspi_xfer()
142 m_cb.state = desired_state; in qspi_xfer()
333 if (m_cb.state != NRFX_QSPI_STATE_UNINITIALIZED) in nrfx_qspi_init()
356 m_cb.state = NRFX_QSPI_STATE_IDLE; in nrfx_qspi_init()
372 if (m_cb.state == NRFX_QSPI_STATE_UNINITIALIZED) in nrfx_qspi_reconfigure()
376 if (m_cb.state != NRFX_QSPI_STATE_IDLE) in nrfx_qspi_reconfigure()
398 NRFX_ASSERT(m_cb.state != NRFX_QSPI_STATE_UNINITIALIZED); in nrfx_qspi_cinstr_xfer()
[all …]
Dnrfx_ipc.c44 nrfx_drv_state_t state; member
53 if (m_cb.state != NRFX_DRV_STATE_UNINITIALIZED) in nrfx_ipc_init()
61 m_cb.state = NRFX_DRV_STATE_INITIALIZED; in nrfx_ipc_init()
71 NRFX_ASSERT(m_cb.state == NRFX_DRV_STATE_INITIALIZED); in nrfx_ipc_config_load()
89 NRFX_ASSERT(m_cb.state == NRFX_DRV_STATE_INITIALIZED); in nrfx_ipc_uninit()
103 m_cb.state = NRFX_DRV_STATE_UNINITIALIZED; in nrfx_ipc_uninit()
108 NRFX_ASSERT(m_cb.state == NRFX_DRV_STATE_INITIALIZED); in nrfx_ipc_receive_event_enable()
114 NRFX_ASSERT(m_cb.state == NRFX_DRV_STATE_INITIALIZED); in nrfx_ipc_receive_event_disable()
120 NRFX_ASSERT(m_cb.state == NRFX_DRV_STATE_INITIALIZED); in nrfx_ipc_receive_event_group_enable()
126 NRFX_ASSERT(m_cb.state == NRFX_DRV_STATE_INITIALIZED); in nrfx_ipc_receive_event_group_disable()
Dnrfx_timer.c76 nrfx_drv_state_t state; member
128 if (p_cb->state != NRFX_DRV_STATE_UNINITIALIZED) in nrfx_timer_init()
151 p_cb->state = err_code == NRFX_SUCCESS ? in nrfx_timer_init()
165 if (p_cb->state == NRFX_DRV_STATE_UNINITIALIZED) in nrfx_timer_reconfigure()
169 if (p_cb->state == NRFX_DRV_STATE_POWERED_ON) in nrfx_timer_reconfigure()
188 m_cb[p_instance->instance_id].state = NRFX_DRV_STATE_UNINITIALIZED; in nrfx_timer_uninit()
194 NRFX_ASSERT(m_cb[p_instance->instance_id].state == NRFX_DRV_STATE_INITIALIZED); in nrfx_timer_enable()
196 m_cb[p_instance->instance_id].state = NRFX_DRV_STATE_POWERED_ON; in nrfx_timer_enable()
202 NRFX_ASSERT(m_cb[p_instance->instance_id].state != NRFX_DRV_STATE_UNINITIALIZED); in nrfx_timer_disable()
204 m_cb[p_instance->instance_id].state = NRFX_DRV_STATE_INITIALIZED; in nrfx_timer_disable()
[all …]
Dnrfx_wdt.c50 nrfx_drv_state_t state; member
97 if (p_cb->state == NRFX_DRV_STATE_UNINITIALIZED) in nrfx_wdt_init()
99 p_cb->state = NRFX_DRV_STATE_INITIALIZED; in nrfx_wdt_init()
126 if (p_cb->state == NRFX_DRV_STATE_INITIALIZED) in nrfx_wdt_reconfigure()
130 if (p_cb->state == NRFX_DRV_STATE_POWERED_ON) in nrfx_wdt_reconfigure()
142 NRFX_ASSERT(p_cb->state == NRFX_DRV_STATE_INITIALIZED); in nrfx_wdt_enable()
144 p_cb->state = NRFX_DRV_STATE_POWERED_ON; in nrfx_wdt_enable()
151 NRFX_ASSERT(p_cb->state == NRFX_DRV_STATE_POWERED_ON); in nrfx_wdt_feed()
164 NRFX_ASSERT(p_cb->state == NRFX_DRV_STATE_INITIALIZED); in nrfx_wdt_channel_alloc()
185 NRFX_ASSERT(m_cb[p_instance->drv_inst_idx].state == NRFX_DRV_STATE_POWERED_ON); in nrfx_wdt_channel_feed()
Dnrfx_qdec.c58 nrfx_drv_state_t state; member
123 if (p_cb->state != NRFX_DRV_STATE_UNINITIALIZED) in nrfx_qdec_init()
141 p_cb->state = NRFX_DRV_STATE_INITIALIZED; in nrfx_qdec_init()
154 if (p_cb->state == NRFX_DRV_STATE_UNINITIALIZED) in nrfx_qdec_reconfigure()
158 if (p_cb->state == NRFX_DRV_STATE_POWERED_ON) in nrfx_qdec_reconfigure()
173 NRFX_ASSERT(p_cb->state != NRFX_DRV_STATE_UNINITIALIZED); in nrfx_qdec_uninit()
192 p_cb->state = NRFX_DRV_STATE_UNINITIALIZED; in nrfx_qdec_uninit()
202 NRFX_ASSERT(p_cb->state == NRFX_DRV_STATE_INITIALIZED); in nrfx_qdec_enable()
206 p_cb->state = NRFX_DRV_STATE_POWERED_ON; in nrfx_qdec_enable()
216 NRFX_ASSERT(p_cb->state == NRFX_DRV_STATE_POWERED_ON); in nrfx_qdec_disable()
[all …]
Dnrfx_rtc.c61 nrfx_drv_state_t state; /**< Instance state. */ member
79 if (m_cb[p_instance->instance_id].state != NRFX_DRV_STATE_UNINITIALIZED) in nrfx_rtc_init()
98 m_cb[p_instance->instance_id].state = NRFX_DRV_STATE_INITIALIZED; in nrfx_rtc_init()
110 NRFX_ASSERT(m_cb[p_instance->instance_id].state != NRFX_DRV_STATE_UNINITIALIZED); in nrfx_rtc_uninit()
115 m_cb[p_instance->instance_id].state = NRFX_DRV_STATE_UNINITIALIZED; in nrfx_rtc_uninit()
121 NRFX_ASSERT(m_cb[p_instance->instance_id].state == NRFX_DRV_STATE_INITIALIZED); in nrfx_rtc_enable()
124 m_cb[p_instance->instance_id].state = NRFX_DRV_STATE_POWERED_ON; in nrfx_rtc_enable()
130 NRFX_ASSERT(m_cb[p_instance->instance_id].state != NRFX_DRV_STATE_UNINITIALIZED); in nrfx_rtc_disable()
133 m_cb[p_instance->instance_id].state = NRFX_DRV_STATE_INITIALIZED; in nrfx_rtc_disable()
139 NRFX_ASSERT(m_cb[p_instance->instance_id].state != NRFX_DRV_STATE_UNINITIALIZED); in nrfx_rtc_cc_disable()
[all …]
Dnrfx_egu.c67 nrfx_drv_state_t state; member
113 if (p_cb->state != NRFX_DRV_STATE_UNINITIALIZED) in nrfx_egu_init()
118 p_cb->state = NRFX_DRV_STATE_INITIALIZED; in nrfx_egu_init()
133 NRFX_ASSERT(m_cb[p_instance->drv_inst_idx].state == NRFX_DRV_STATE_INITIALIZED); in nrfx_egu_int_enable()
143 NRFX_ASSERT(m_cb[p_instance->drv_inst_idx].state == NRFX_DRV_STATE_INITIALIZED); in nrfx_egu_int_disable()
151 NRFX_ASSERT(m_cb[p_instance->drv_inst_idx].state == NRFX_DRV_STATE_INITIALIZED); in nrfx_egu_trigger()
166 p_cb->state = NRFX_DRV_STATE_UNINITIALIZED; in nrfx_egu_uninit()
Dnrfx_pwm.c77 nrfx_drv_state_t volatile state; member
179 if (p_cb->state != NRFX_DRV_STATE_UNINITIALIZED) in nrfx_pwm_init()
199 p_cb->state = NRFX_DRV_STATE_INITIALIZED; in nrfx_pwm_init()
211 if (p_cb->state == NRFX_DRV_STATE_UNINITIALIZED) in nrfx_pwm_reconfigure()
215 if (p_cb->state == NRFX_DRV_STATE_POWERED_ON) in nrfx_pwm_reconfigure()
228 NRFX_ASSERT(p_cb->state != NRFX_DRV_STATE_UNINITIALIZED); in nrfx_pwm_uninit()
242 p_cb->state = NRFX_DRV_STATE_UNINITIALIZED; in nrfx_pwm_uninit()
250 p_cb->state = NRFX_DRV_STATE_POWERED_ON; in start_playback()
324 NRFX_ASSERT(p_cb->state != NRFX_DRV_STATE_UNINITIALIZED); in nrfx_pwm_simple_playback()
368 NRFX_ASSERT(p_cb->state != NRFX_DRV_STATE_UNINITIALIZED); in nrfx_pwm_complex_playback()
[all …]
Dnrfx_spi.c55 nrfx_drv_state_t state; member
146 if (p_cb->state != NRFX_DRV_STATE_UNINITIALIZED) in nrfx_spi_init()
184 p_cb->state = NRFX_DRV_STATE_INITIALIZED; in nrfx_spi_init()
197 if (p_cb->state == NRFX_DRV_STATE_UNINITIALIZED) in nrfx_spi_reconfigure()
214 NRFX_ASSERT(p_cb->state != NRFX_DRV_STATE_UNINITIALIZED); in nrfx_spi_uninit()
251 p_cb->state = NRFX_DRV_STATE_UNINITIALIZED; in nrfx_spi_uninit()
379 NRFX_ASSERT(p_cb->state != NRFX_DRV_STATE_UNINITIALIZED); in nrfx_spi_xfer()
426 NRFX_ASSERT(p_cb->state != NRFX_DRV_STATE_UNINITIALIZED); in nrfx_spi_abort()
Dnrfx_i2s.c74 nrfx_drv_state_t state; member
219 if (p_cb->state != NRFX_DRV_STATE_UNINITIALIZED) in nrfx_i2s_init()
280 p_cb->state = NRFX_DRV_STATE_INITIALIZED; in nrfx_i2s_init()
290 NRFX_ASSERT(p_cb->state != NRFX_DRV_STATE_UNINITIALIZED); in nrfx_i2s_uninit()
318 p_cb->state = NRFX_DRV_STATE_UNINITIALIZED; in nrfx_i2s_uninit()
342 if (p_cb->state != NRFX_DRV_STATE_INITIALIZED) in nrfx_i2s_start()
381 p_cb->state = NRFX_DRV_STATE_POWERED_ON; in nrfx_i2s_start()
406 NRFX_ASSERT(p_cb->state == NRFX_DRV_STATE_POWERED_ON); in nrfx_i2s_next_buffers_set()
463 NRFX_ASSERT(p_cb->state != NRFX_DRV_STATE_UNINITIALIZED); in nrfx_i2s_stop()
525 p_cb->state = NRFX_DRV_STATE_INITIALIZED; in irq_handler()
Dnrfx_twis.c81 nrfx_drv_state_t state; member
499 if (p_cb->state != NRFX_DRV_STATE_UNINITIALIZED) in nrfx_twis_init()
551 p_cb->state = NRFX_DRV_STATE_INITIALIZED; in nrfx_twis_init()
561 if (m_cb[p_instance->drv_inst_idx].state == NRFX_DRV_STATE_UNINITIALIZED) in nrfx_twis_reconfigure()
579 NRFX_ASSERT(p_cb->state != NRFX_DRV_STATE_UNINITIALIZED); in nrfx_twis_uninit()
595 p_cb->state = NRFX_DRV_STATE_UNINITIALIZED; in nrfx_twis_uninit()
603 NRFX_ASSERT(p_cb->state == NRFX_DRV_STATE_INITIALIZED); in nrfx_twis_enable()
615 p_cb->state = NRFX_DRV_STATE_POWERED_ON; in nrfx_twis_enable()
624 NRFX_ASSERT(p_cb->state != NRFX_DRV_STATE_UNINITIALIZED); in nrfx_twis_disable()
629 p_cb->state = NRFX_DRV_STATE_INITIALIZED; in nrfx_twis_disable()
[all …]
Dnrfx_twi.c106 nrfx_drv_state_t state; member
185 if (p_cb->state != NRFX_DRV_STATE_UNINITIALIZED) in nrfx_twi_init()
234 p_cb->state = NRFX_DRV_STATE_INITIALIZED; in nrfx_twi_init()
247 if (p_cb->state == NRFX_DRV_STATE_UNINITIALIZED) in nrfx_twi_reconfigure()
265 NRFX_ASSERT(p_cb->state != NRFX_DRV_STATE_UNINITIALIZED); in nrfx_twi_uninit()
283 p_cb->state = NRFX_DRV_STATE_UNINITIALIZED; in nrfx_twi_uninit()
290 NRFX_ASSERT(p_cb->state == NRFX_DRV_STATE_INITIALIZED); in nrfx_twi_enable()
295 p_cb->state = NRFX_DRV_STATE_POWERED_ON; in nrfx_twi_enable()
302 NRFX_ASSERT(p_cb->state != NRFX_DRV_STATE_UNINITIALIZED); in nrfx_twi_disable()
309 p_cb->state = NRFX_DRV_STATE_INITIALIZED; in nrfx_twi_disable()
Dnrfx_spis.c94 nrfx_drv_state_t state; //!< driver initialization state. member
247 if (p_cb->state != NRFX_DRV_STATE_UNINITIALIZED) in nrfx_spis_init()
296 p_cb->state = NRFX_DRV_STATE_INITIALIZED; in nrfx_spis_init()
312 if (p_cb->state == NRFX_DRV_STATE_UNINITIALIZED) in nrfx_spis_reconfigure()
332 NRFX_ASSERT(p_cb->state != NRFX_DRV_STATE_UNINITIALIZED); in nrfx_spis_uninit()
364 p_cb->state = NRFX_DRV_STATE_UNINITIALIZED; in nrfx_spis_uninit()
Dnrfx_twim.c99 nrfx_drv_state_t state; member
262 if (p_cb->state != NRFX_DRV_STATE_UNINITIALIZED) in nrfx_twim_init()
308 p_cb->state = NRFX_DRV_STATE_INITIALIZED; in nrfx_twim_init()
321 if (p_cb->state == NRFX_DRV_STATE_UNINITIALIZED) in nrfx_twim_reconfigure()
338 NRFX_ASSERT(p_cb->state != NRFX_DRV_STATE_UNINITIALIZED); in nrfx_twim_uninit()
356 p_cb->state = NRFX_DRV_STATE_UNINITIALIZED; in nrfx_twim_uninit()
363 NRFX_ASSERT(p_cb->state == NRFX_DRV_STATE_INITIALIZED); in nrfx_twim_enable()
367 p_cb->state = NRFX_DRV_STATE_POWERED_ON; in nrfx_twim_enable()
374 NRFX_ASSERT(p_cb->state != NRFX_DRV_STATE_UNINITIALIZED); in nrfx_twim_disable()
378 p_cb->state = NRFX_DRV_STATE_INITIALIZED; in nrfx_twim_disable()
Dnrfx_uarte.c70 nrfx_drv_state_t state; member
225 if (p_cb->state != NRFX_DRV_STATE_UNINITIALIZED) in nrfx_uarte_init()
263 p_cb->state = NRFX_DRV_STATE_INITIALIZED; in nrfx_uarte_init()
276 if (p_cb->state == NRFX_DRV_STATE_UNINITIALIZED) in nrfx_uarte_reconfigure()
325 p_cb->state = NRFX_DRV_STATE_UNINITIALIZED; in nrfx_uarte_uninit()
337 NRFX_ASSERT(p_cb->state == NRFX_DRV_STATE_INITIALIZED); in nrfx_uarte_tx()
405 NRFX_ASSERT(p_cb->state == NRFX_DRV_STATE_INITIALIZED); in nrfx_uarte_rx()
Dnrfx_nfct.c145 nrfx_drv_state_t state; member
426 if (m_nfct_cb.state != NRFX_DRV_STATE_UNINITIALIZED) in nrfx_nfct_init()
443 m_nfct_cb.state = NRFX_DRV_STATE_INITIALIZED; in nrfx_nfct_init()
463 m_nfct_cb.state = NRFX_DRV_STATE_UNINITIALIZED; in nrfx_nfct_uninit()
618 void nrfx_nfct_state_force(nrfx_nfct_state_t state) in nrfx_nfct_state_force() argument
621 if (state == NRFX_NFCT_STATE_ACTIVATED) in nrfx_nfct_state_force()
629 nrf_nfct_task_trigger(NRF_NFCT, (nrf_nfct_task_t) state); in nrfx_nfct_state_force()
Dnrfx_uart.c70 nrfx_drv_state_t state; member
198 if (p_cb->state != NRFX_DRV_STATE_UNINITIALIZED) in nrfx_uart_init()
236 p_cb->state = NRFX_DRV_STATE_INITIALIZED; in nrfx_uart_init()
249 if (p_cb->state == NRFX_DRV_STATE_UNINITIALIZED) in nrfx_uart_reconfigure()
284 p_cb->state = NRFX_DRV_STATE_UNINITIALIZED; in nrfx_uart_uninit()
325 NRFX_ASSERT(p_cb->state == NRFX_DRV_STATE_INITIALIZED); in nrfx_uart_tx()
408 NRFX_ASSERT(m_cb[p_instance->drv_inst_idx].state == NRFX_DRV_STATE_INITIALIZED); in nrfx_uart_rx()
Dnrfx_spim.c150 nrfx_drv_state_t state; member
514 if (p_cb->state != NRFX_DRV_STATE_UNINITIALIZED) in nrfx_spim_init()
552 p_cb->state = NRFX_DRV_STATE_INITIALIZED; in nrfx_spim_init()
565 if (p_cb->state == NRFX_DRV_STATE_UNINITIALIZED) in nrfx_spim_reconfigure()
599 NRFX_ASSERT(p_cb->state != NRFX_DRV_STATE_UNINITIALIZED); in nrfx_spim_uninit()
645 p_cb->state = NRFX_DRV_STATE_UNINITIALIZED; in nrfx_spim_uninit()
784 NRFX_ASSERT(p_cb->state != NRFX_DRV_STATE_UNINITIALIZED); in nrfx_spim_xfer()
833 NRFX_ASSERT(p_cb->state != NRFX_DRV_STATE_UNINITIALIZED); in nrfx_spim_abort()
Dnrfx_gpiote.c172 nrfx_drv_state_t state; member
594 if (m_cb.state != NRFX_DRV_STATE_UNINITIALIZED) in nrfx_gpiote_init()
607 m_cb.state = NRFX_DRV_STATE_INITIALIZED; in nrfx_gpiote_init()
618 return (m_cb.state != NRFX_DRV_STATE_UNINITIALIZED) ? true : false; in nrfx_gpiote_is_init()
624 NRFX_ASSERT(m_cb.state != NRFX_DRV_STATE_UNINITIALIZED); in nrfx_gpiote_uninit()
635 m_cb.state = NRFX_DRV_STATE_UNINITIALIZED; in nrfx_gpiote_uninit()
746 void nrfx_gpiote_out_task_force(nrfx_gpiote_pin_t pin, uint8_t state) in nrfx_gpiote_out_task_force() argument
752 state ? NRF_GPIOTE_INITIAL_VALUE_HIGH : NRF_GPIOTE_INITIAL_VALUE_LOW; in nrfx_gpiote_out_task_force()
/hal_nordic-3.4.0/drivers/nrf_802154/driver/src/
Dnrf_802154_core.c175 static rsch_prio_t min_required_rsch_prio(radio_state_t state);
177 static void request_preconditions_for_state(radio_state_t state) in request_preconditions_for_state() argument
179 nrf_802154_rsch_crit_sect_prio_request(min_required_rsch_prio(state)); in request_preconditions_for_state()
186 static void state_set(radio_state_t state) in state_set() argument
188 m_state = state; in state_set()
192 (uint32_t)state); in state_set()
194 request_preconditions_for_state(state); in state_set()
556 static rsch_prio_t min_required_rsch_prio(radio_state_t state) in min_required_rsch_prio() argument
558 switch (state) in min_required_rsch_prio()
596 static bool is_state_allowed_for_prio(rsch_prio_t prio, radio_state_t state) in is_state_allowed_for_prio() argument
[all …]
/hal_nordic-3.4.0/nrfx/samples/src/nrfx_saadc/advanced_blocking/
DREADME.md20 Program works as a simple state machine and starts in state @p m_current_state == STATE_SINGLE_CONF…
21 In this state the following configurations apply:
/hal_nordic-3.4.0/drivers/nrf_802154/driver/src/mac_features/
Dnrf_802154_delayed_trx.c126 delayed_trx_op_state_t state; ///< State of the delayed timeslot. member
216 (uint8_t *)&p_dly_op_data->state, in dly_op_state_set()
317 if (m_dly_rx_data[i].state == DELAYED_TRX_OP_STATE_ONGOING) in ongoing_dly_rx_slot_get()
747 m_dly_rx_data[i].state = DELAYED_TRX_OP_STATE_STOPPED; in nrf_802154_delayed_trx_init()
754 m_dly_tx_data[i].state = DELAYED_TRX_OP_STATE_STOPPED; in nrf_802154_delayed_trx_init()
897 nrf_802154_sl_atomic_store_u8((uint8_t *)&p_dly_op_data->state, in nrf_802154_delayed_trx_receive_cancel()
955 if (m_dly_rx_data[i].state != DELAYED_TRX_OP_STATE_PENDING) in nrf_802154_delayed_trx_nearest_drx_time_to_midpoint_get()
/hal_nordic-3.4.0/nrfx/samples/src/nrfx_saadc/simple_non_blocking/
DREADME.md20 Program works as a simple state machine and starts in state @p m_current_state == STATE_SINGLE_CONF…
21 In this state the following configurations apply:
/hal_nordic-3.4.0/nrfx/samples/src/nrfx_saadc/simple_blocking/
DREADME.md19 Program works as a simple state machine and starts in state @p m_current_state == STATE_SINGLE_CONF…
20 In this state the following configurations apply:

12