Home
last modified time | relevance | path

Searched refs:p_instance (Results 1 – 25 of 26) sorted by relevance

12

/lk-master/external/platform/nrfx/drivers/src/
A Dnrfx_timer.c79 NRFX_ASSERT(p_instance->p_reg != NRF_TIMER0); in nrfx_timer_init()
112 nrf_timer_event_clear(p_instance->p_reg, in nrfx_timer_init()
142 nrfx_timer_disable(p_instance); in nrfx_timer_uninit()
204 nrf_timer_task_trigger(p_instance->p_reg, in nrfx_timer_capture()
228 p_instance->instance_id, in nrfx_timer_compare()
239 nrf_timer_shorts_disable(p_instance->p_reg, in nrfx_timer_extended_compare()
245 nrfx_timer_compare(p_instance, in nrfx_timer_extended_compare()
250 p_instance->instance_id, in nrfx_timer_extended_compare()
261 nrf_timer_event_clear(p_instance->p_reg, in nrfx_timer_compare_int_enable()
263 nrf_timer_int_enable(p_instance->p_reg, in nrfx_timer_compare_int_enable()
[all …]
A Dnrfx_rtc.c76 m_handlers[p_instance->instance_id] = handler; in nrfx_rtc_init()
88 NRFX_IRQ_ENABLE(p_instance->irq); in nrfx_rtc_init()
99 void nrfx_rtc_uninit(nrfx_rtc_t const * p_instance) in nrfx_rtc_uninit() argument
109 NRFX_IRQ_DISABLE(p_instance->irq); in nrfx_rtc_uninit()
113 nrf_rtc_int_disable(p_instance->p_reg, mask); in nrfx_rtc_uninit()
161 p_instance->instance_id, in nrfx_rtc_cc_disable()
184 if (m_cb[p_instance->instance_id].reliable) in nrfx_rtc_cc_set()
215 p_instance->instance_id, in nrfx_rtc_cc_set()
242 nrf_rtc_int_disable(p_instance->p_reg, mask); in nrfx_rtc_tick_disable()
263 nrf_rtc_int_disable(p_instance->p_reg, mask); in nrfx_rtc_overflow_disable()
[all …]
A Dnrfx_uarte.c170 txd = nrf_uarte_tx_pin_get(p_instance->p_reg); in pins_to_default()
213 nrf_uarte_enable(p_instance->p_reg); in apply_workaround_for_enable_anomaly()
228 nrf_uarte_disable(p_instance->p_reg); in apply_workaround_for_enable_anomaly()
231 (void)(p_instance); in apply_workaround_for_enable_anomaly()
267 if (nrfx_prs_acquire(p_instance->p_reg, in nrfx_uarte_init()
278 apply_config(p_instance, p_config); in nrfx_uarte_init()
290 nrf_uarte_enable(p_instance->p_reg); in nrfx_uarte_init()
304 NRF_UARTE_Type * p_reg = p_instance->p_reg; in nrfx_uarte_uninit()
308 interrupts_disable(p_instance); in nrfx_uarte_uninit()
339 pins_to_default(p_instance); in nrfx_uarte_uninit()
[all …]
A Dnrfx_uart.c180 if (nrfx_prs_acquire(p_instance->p_reg, in nrfx_uart_init()
191 apply_config(p_instance, p_config); in nrfx_uart_init()
201 nrf_uart_enable(p_instance->p_reg); in nrfx_uart_init()
217 nrf_uart_disable(p_instance->p_reg); in nrfx_uart_uninit()
221 interrupts_disable(p_instance); in nrfx_uart_uninit()
224 pins_to_default(p_instance); in nrfx_uart_uninit()
227 nrfx_prs_release(p_instance->p_reg); in nrfx_uart_uninit()
277 if (nrfx_uart_tx_in_progress(p_instance)) in nrfx_uart_tx()
300 tx_byte(p_instance->p_reg, p_cb); in nrfx_uart_tx()
403 rx_enable(p_instance); in nrfx_uart_rx()
[all …]
A Dnrfx_pwm.c153 configure_pins(p_instance, p_config); in nrfx_pwm_init()
155 nrf_pwm_enable(p_instance->p_registers); in nrfx_pwm_init()
156 nrf_pwm_configure(p_instance->p_registers, in nrfx_pwm_init()
158 nrf_pwm_decoder_set(p_instance->p_registers, in nrfx_pwm_init()
162 nrf_pwm_int_set(p_instance->p_registers, 0); in nrfx_pwm_init()
203 nrf_pwm_disable(p_instance->p_registers); in nrfx_pwm_uninit()
205 deconfigure_pins(p_instance); in nrfx_pwm_uninit()
255 nrf_pwm_int_set(p_instance->p_registers, in start_playback()
300 nrf_pwm_loop_set(p_instance->p_registers, in nrfx_pwm_simple_playback()
394 if (nrfx_pwm_is_stopped(p_instance)) in nrfx_pwm_stop()
[all …]
A Dnrfx_egu.c93 nrfx_err_t nrfx_egu_init(nrfx_egu_t const * p_instance, in nrfx_egu_init() argument
98 NRFX_ASSERT(p_instance); in nrfx_egu_init()
121 NRFX_ASSERT(p_instance); in nrfx_egu_int_enable()
123 NRFX_ASSERT(m_cb[p_instance->drv_inst_idx].handler); in nrfx_egu_int_enable()
126 nrf_egu_int_enable(p_instance->p_reg, mask); in nrfx_egu_int_enable()
131 NRFX_ASSERT(p_instance); in nrfx_egu_int_disable()
134 nrf_egu_int_disable(p_instance->p_reg, mask); in nrfx_egu_int_disable()
139 NRFX_ASSERT(p_instance); in nrfx_egu_trigger()
146 void nrfx_egu_uninit(nrfx_egu_t const * p_instance) in nrfx_egu_uninit() argument
148 NRFX_ASSERT(p_instance); in nrfx_egu_uninit()
[all …]
A Dnrfx_wdt.c57 nrfx_err_t nrfx_wdt_init(nrfx_wdt_t const * p_instance, in nrfx_wdt_init() argument
64 wdt_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_wdt_init()
85 nrf_wdt_behaviour_set(p_instance->p_reg, p_config->behaviour); in nrfx_wdt_init()
90 nrf_wdt_reload_value_set(p_instance->p_reg, (uint32_t) ticks); in nrfx_wdt_init()
97 NRFX_IRQ_ENABLE(nrfx_get_irq_number(p_instance->p_reg)); in nrfx_wdt_init()
107 void nrfx_wdt_enable(nrfx_wdt_t const * p_instance) in nrfx_wdt_enable() argument
109 wdt_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_wdt_enable()
112 nrf_wdt_task_trigger(p_instance->p_reg, NRF_WDT_TASK_START); in nrfx_wdt_enable()
118 void nrfx_wdt_feed(nrfx_wdt_t const * p_instance) in nrfx_wdt_feed() argument
131 wdt_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_wdt_channel_alloc()
[all …]
A Dnrfx_twis.c463 NRF_TWIS_Type * p_reg = p_instance->p_reg; in nrfx_twis_init()
554 void nrfx_twis_uninit(nrfx_twis_t const * p_instance) in nrfx_twis_uninit() argument
556 NRF_TWIS_Type * p_reg = p_instance->p_reg; in nrfx_twis_uninit()
682 nrfx_twis_preprocess_status(p_instance); in nrfx_twis_error_get_and_clear()
725 nrf_twis_tx_prepare(p_instance->p_reg, in nrfx_twis_tx_prepare()
769 nrf_twis_rx_prepare(p_instance->p_reg, in nrfx_twis_rx_prepare()
780 nrfx_twis_preprocess_status(p_instance); in nrfx_twis_is_busy()
787 nrfx_twis_preprocess_status(p_instance); in nrfx_twis_is_waiting_tx_buff()
794 nrfx_twis_preprocess_status(p_instance); in nrfx_twis_is_waiting_rx_buff()
801 nrfx_twis_preprocess_status(p_instance); in nrfx_twis_is_pending_tx()
[all …]
A Dnrfx_twi.c156 nrfx_err_t nrfx_twi_init(nrfx_twi_t const * p_instance, in nrfx_twi_init() argument
184 if (nrfx_prs_acquire(p_instance->p_twi, in nrfx_twi_init()
210 NRF_TWI_Type * p_twi = p_instance->p_twi; in nrfx_twi_init()
229 void nrfx_twi_uninit(nrfx_twi_t const * p_instance) in nrfx_twi_uninit() argument
238 nrfx_twi_disable(p_instance); in nrfx_twi_uninit()
241 nrfx_prs_release(p_instance->p_twi); in nrfx_twi_uninit()
254 void nrfx_twi_enable(nrfx_twi_t const * p_instance) in nrfx_twi_enable() argument
259 NRF_TWI_Type * p_twi = p_instance->p_twi; in nrfx_twi_enable()
266 void nrfx_twi_disable(nrfx_twi_t const * p_instance) in nrfx_twi_disable() argument
271 NRF_TWI_Type * p_twi = p_instance->p_twi; in nrfx_twi_disable()
[all …]
A Dnrfx_spi.c68 nrfx_err_t nrfx_spi_init(nrfx_spi_t const * p_instance, in nrfx_spi_init() argument
98 if (nrfx_prs_acquire(p_instance->p_reg, in nrfx_spi_init()
160 m_cb[p_instance->drv_inst_idx].ss_pin = p_config->ss_pin; in nrfx_spi_init()
162 NRF_SPI_Type * p_spi = p_instance->p_reg; in nrfx_spi_init()
167 m_cb[p_instance->drv_inst_idx].orc = p_config->orc; in nrfx_spi_init()
175 NRFX_IRQ_ENABLE(nrfx_get_irq_number(p_instance->p_reg)); in nrfx_spi_init()
186 void nrfx_spi_uninit(nrfx_spi_t const * p_instance) in nrfx_spi_uninit() argument
190 NRF_SPI_Type * p_spi = p_instance->p_reg; in nrfx_spi_uninit()
220 nrfx_prs_release(p_instance->p_reg); in nrfx_spi_uninit()
387 spi_xfer(p_instance->p_reg, p_cb, p_xfer_desc); in nrfx_spi_xfer()
[all …]
A Dnrfx_twim.c251 if (nrfx_prs_acquire(p_instance->p_twim, in nrfx_twim_init()
279 NRF_TWIM_Type * p_twim = p_instance->p_twim; in nrfx_twim_init()
298 void nrfx_twim_uninit(nrfx_twim_t const * p_instance) in nrfx_twim_uninit() argument
307 nrfx_twim_disable(p_instance); in nrfx_twim_uninit()
310 nrfx_prs_release(p_instance->p_twim); in nrfx_twim_uninit()
323 void nrfx_twim_enable(nrfx_twim_t const * p_instance) in nrfx_twim_enable() argument
328 nrf_twim_enable(p_instance->p_twim); in nrfx_twim_enable()
334 void nrfx_twim_disable(nrfx_twim_t const * p_instance) in nrfx_twim_disable() argument
339 NRF_TWIM_Type * p_twim = p_instance->p_twim; in nrfx_twim_disable()
350 bool nrfx_twim_is_busy(nrfx_twim_t const * p_instance) in nrfx_twim_is_busy() argument
[all …]
A Dnrfx_spim.c250 nrfx_err_t nrfx_spim_init(nrfx_spim_t const * p_instance, in nrfx_spim_init() argument
275 !SPIM_DCX_PRESENT_VALIDATE(p_instance->drv_inst_idx)) in nrfx_spim_init()
286 NRF_SPIM_Type * p_spim = (NRF_SPIM_Type *)p_instance->p_reg; in nrfx_spim_init()
306 if (nrfx_prs_acquire(p_instance->p_reg, in nrfx_spim_init()
430 void nrfx_spim_uninit(nrfx_spim_t const * p_instance) in nrfx_spim_uninit() argument
434 NRF_SPIM_Type * p_spim = p_instance->p_reg; in nrfx_spim_uninit()
484 nrfx_prs_release(p_instance->p_reg); in nrfx_spim_uninit()
498 return nrfx_spim_xfer(p_instance, p_xfer_desc, 0); in nrfx_spim_xfer_dcx()
665 NRFX_ASSERT(SPIM_LENGTH_VALIDATE(p_instance->drv_inst_idx, in nrfx_spim_xfer()
712 void nrfx_spim_abort(nrfx_spim_t const * p_instance) in nrfx_spim_abort() argument
[all …]
A Dnrfx_spis.c126 nrfx_err_t nrfx_spis_init(nrfx_spis_t const * p_instance, in nrfx_spis_init() argument
133 spis_cb_t * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_spis_init()
136 NRF_SPIS_Type * p_spis = p_instance->p_reg; in nrfx_spis_init()
281 NRFX_IRQ_ENABLE(nrfx_get_irq_number(p_instance->p_reg)); in nrfx_spis_init()
293 void nrfx_spis_uninit(nrfx_spis_t const * p_instance) in nrfx_spis_uninit() argument
295 spis_cb_t * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_spis_uninit()
298 NRF_SPIS_Type * p_spis = p_instance->p_reg; in nrfx_spis_uninit()
302 NRFX_IRQ_DISABLE(nrfx_get_irq_number(p_instance->p_reg)); in nrfx_spis_uninit()
383 nrfx_err_t nrfx_spis_buffers_set(nrfx_spis_t const * p_instance, in nrfx_spis_buffers_set() argument
392 spis_cb_t * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_spis_buffers_set()
[all …]
/lk-master/external/platform/nrfx/drivers/include/
A Dnrfx_timer.h147 void nrfx_timer_uninit(nrfx_timer_t const * p_instance);
154 void nrfx_timer_enable(nrfx_timer_t const * p_instance);
164 void nrfx_timer_disable(nrfx_timer_t const * p_instance);
174 bool nrfx_timer_is_enabled(nrfx_timer_t const * p_instance);
181 void nrfx_timer_pause(nrfx_timer_t const * p_instance);
188 void nrfx_timer_resume(nrfx_timer_t const * p_instance);
195 void nrfx_timer_clear(nrfx_timer_t const * p_instance);
202 void nrfx_timer_increment(nrfx_timer_t const * p_instance);
280 void nrfx_timer_compare(nrfx_timer_t const * p_instance,
351 NRFX_ASSERT(channel < p_instance->cc_channel_count); in nrfx_timer_capture_task_address_get()
[all …]
A Dnrfx_rtc.h137 nrfx_err_t nrfx_rtc_init(nrfx_rtc_t const * p_instance,
149 void nrfx_rtc_uninit(nrfx_rtc_t const * p_instance);
156 void nrfx_rtc_enable(nrfx_rtc_t const * p_instance);
163 void nrfx_rtc_disable(nrfx_rtc_t const * p_instance);
191 nrfx_err_t nrfx_rtc_cc_set(nrfx_rtc_t const * p_instance,
226 void nrfx_rtc_tick_disable(nrfx_rtc_t const * p_instance);
245 void nrfx_rtc_overflow_disable(nrfx_rtc_t const * p_instance);
260 uint32_t nrfx_rtc_max_ticks_get(nrfx_rtc_t const * p_instance);
336 nrf_rtc_int_enable(p_instance->p_reg, mask); in nrfx_rtc_int_enable()
341 return nrf_rtc_counter_get(p_instance->p_reg); in nrfx_rtc_counter_get()
[all …]
A Dnrfx_pwm.h213 nrfx_err_t nrfx_pwm_init(nrfx_pwm_t const * p_instance,
225 void nrfx_pwm_uninit(nrfx_pwm_t const * p_instance);
300 NRFX_STATIC_INLINE void nrfx_pwm_step(nrfx_pwm_t const * p_instance);
335 bool nrfx_pwm_is_stopped(nrfx_pwm_t const * p_instance);
421 NRFX_STATIC_INLINE void nrfx_pwm_step(nrfx_pwm_t const * p_instance) in nrfx_pwm_step() argument
430 nrf_pwm_sequence_set(p_instance->p_registers, seq_id, p_sequence); in nrfx_pwm_sequence_update()
437 nrf_pwm_seq_ptr_set(p_instance->p_registers, seq_id, values.p_raw); in nrfx_pwm_sequence_values_update()
444 nrf_pwm_seq_cnt_set(p_instance->p_registers, seq_id, length); in nrfx_pwm_sequence_length_update()
451 nrf_pwm_seq_refresh_set(p_instance->p_registers, seq_id, repeats); in nrfx_pwm_sequence_repeats_update()
464 return nrf_pwm_task_address_get(p_instance->p_registers, task); in nrfx_pwm_task_address_get()
[all …]
A Dnrfx_twis.h190 nrfx_err_t nrfx_twis_init(nrfx_twis_t const * p_instance,
209 void nrfx_twis_uninit(nrfx_twis_t const * p_instance);
221 void nrfx_twis_enable(nrfx_twis_t const * p_instance);
231 void nrfx_twis_disable(nrfx_twis_t const * p_instance);
266 nrfx_err_t nrfx_twis_tx_prepare(nrfx_twis_t const * p_instance,
300 nrfx_err_t nrfx_twis_rx_prepare(nrfx_twis_t const * p_instance,
327 bool nrfx_twis_is_busy(nrfx_twis_t const * p_instance);
365 bool nrfx_twis_is_pending_tx(nrfx_twis_t const * p_instance);
377 bool nrfx_twis_is_pending_rx(nrfx_twis_t const * p_instance);
382 return nrf_twis_tx_amount_get(p_instance->p_reg); in nrfx_twis_tx_amount()
[all …]
A Dnrfx_uart.h190 nrfx_err_t nrfx_uart_init(nrfx_uart_t const * p_instance,
199 void nrfx_uart_uninit(nrfx_uart_t const * p_instance);
241 nrfx_err_t nrfx_uart_tx(nrfx_uart_t const * p_instance,
253 bool nrfx_uart_tx_in_progress(nrfx_uart_t const * p_instance);
263 void nrfx_uart_tx_abort(nrfx_uart_t const * p_instance);
300 nrfx_err_t nrfx_uart_rx(nrfx_uart_t const * p_instance,
312 bool nrfx_uart_rx_ready(nrfx_uart_t const * p_instance);
323 void nrfx_uart_rx_enable(nrfx_uart_t const * p_instance);
333 void nrfx_uart_rx_disable(nrfx_uart_t const * p_instance);
343 void nrfx_uart_rx_abort(nrfx_uart_t const * p_instance);
[all …]
A Dnrfx_uarte.h199 nrfx_err_t nrfx_uarte_init(nrfx_uarte_t const * p_instance,
208 void nrfx_uarte_uninit(nrfx_uarte_t const * p_instance);
258 nrfx_err_t nrfx_uarte_tx(nrfx_uarte_t const * p_instance,
270 bool nrfx_uarte_tx_in_progress(nrfx_uarte_t const * p_instance);
280 void nrfx_uarte_tx_abort(nrfx_uarte_t const * p_instance);
324 nrfx_err_t nrfx_uarte_rx(nrfx_uarte_t const * p_instance,
338 bool nrfx_uarte_rx_ready(nrfx_uarte_t const * p_instance);
358 void nrfx_uarte_rx_abort(nrfx_uarte_t const * p_instance);
369 uint32_t nrfx_uarte_errorsrc_get(nrfx_uarte_t const * p_instance);
376 return nrf_uarte_task_address_get(p_instance->p_reg, task); in nrfx_uarte_task_address_get()
[all …]
A Dnrfx_wdt.h123 nrfx_err_t nrfx_wdt_init(nrfx_wdt_t const * p_instance,
138 nrfx_err_t nrfx_wdt_channel_alloc(nrfx_wdt_t const * p_instance,
150 void nrfx_wdt_enable(nrfx_wdt_t const * p_instance);
159 void nrfx_wdt_feed(nrfx_wdt_t const * p_instance);
167 void nrfx_wdt_channel_feed(nrfx_wdt_t const * p_instance, nrfx_wdt_channel_id channel_id);
177 NRFX_STATIC_INLINE uint32_t nrfx_wdt_task_address_get(nrfx_wdt_t const * p_instance,
188 NRFX_STATIC_INLINE uint32_t nrfx_wdt_event_address_get(nrfx_wdt_t const * p_instance,
193 NRFX_STATIC_INLINE uint32_t nrfx_wdt_task_address_get(nrfx_wdt_t const * p_instance, in nrfx_wdt_task_address_get() argument
196 return nrf_wdt_task_address_get(p_instance->p_reg, task); in nrfx_wdt_task_address_get()
199 NRFX_STATIC_INLINE uint32_t nrfx_wdt_event_address_get(nrfx_wdt_t const * p_instance, in nrfx_wdt_event_address_get() argument
[all …]
A Dnrfx_twi.h215 nrfx_err_t nrfx_twi_init(nrfx_twi_t const * p_instance,
225 void nrfx_twi_uninit(nrfx_twi_t const * p_instance);
232 void nrfx_twi_enable(nrfx_twi_t const * p_instance);
239 void nrfx_twi_disable(nrfx_twi_t const * p_instance);
277 nrfx_err_t nrfx_twi_xfer(nrfx_twi_t const * p_instance,
289 bool nrfx_twi_is_busy(nrfx_twi_t const * p_instance);
298 size_t nrfx_twi_data_count_get(nrfx_twi_t const * p_instance);
310 uint32_t nrfx_twi_stopped_event_get(nrfx_twi_t const * p_instance);
A Dnrfx_egu.h108 nrfx_err_t nrfx_egu_init(nrfx_egu_t const * p_instance,
119 void nrfx_egu_int_enable(nrfx_egu_t const * p_instance, uint32_t mask);
127 void nrfx_egu_int_disable(nrfx_egu_t const * p_instance, uint32_t mask);
135 void nrfx_egu_trigger(nrfx_egu_t const * p_instance, uint8_t event_idx);
142 void nrfx_egu_uninit(nrfx_egu_t const * p_instance);
A Dnrfx_twim.h227 nrfx_err_t nrfx_twim_init(nrfx_twim_t const * p_instance,
237 void nrfx_twim_uninit(nrfx_twim_t const * p_instance);
244 void nrfx_twim_enable(nrfx_twim_t const * p_instance);
251 void nrfx_twim_disable(nrfx_twim_t const * p_instance);
308 nrfx_err_t nrfx_twim_xfer(nrfx_twim_t const * p_instance,
320 bool nrfx_twim_is_busy(nrfx_twim_t const * p_instance);
334 uint32_t nrfx_twim_start_task_get(nrfx_twim_t const * p_instance, nrfx_twim_xfer_type_t xfer_type);
346 uint32_t nrfx_twim_stopped_event_get(nrfx_twim_t const * p_instance);
A Dnrfx_spim.h266 nrfx_err_t nrfx_spim_init(nrfx_spim_t const * p_instance,
276 void nrfx_spim_uninit(nrfx_spim_t const * p_instance);
321 nrfx_err_t nrfx_spim_xfer(nrfx_spim_t const * p_instance,
354 nrfx_err_t nrfx_spim_xfer_dcx(nrfx_spim_t const * p_instance,
370 uint32_t nrfx_spim_start_task_get(nrfx_spim_t const * p_instance);
382 uint32_t nrfx_spim_end_event_get(nrfx_spim_t const * p_instance);
389 void nrfx_spim_abort(nrfx_spim_t const * p_instance);
A Dnrfx_spi.h212 nrfx_err_t nrfx_spi_init(nrfx_spi_t const * p_instance,
222 void nrfx_spi_uninit(nrfx_spi_t const * p_instance);
241 nrfx_err_t nrfx_spi_xfer(nrfx_spi_t const * p_instance,
250 void nrfx_spi_abort(nrfx_spi_t const * p_instance);

Completed in 61 milliseconds

12