Searched refs:p_cb (Results 1 – 12 of 12) sorted by relevance
/lk-master/external/platform/nrfx/drivers/src/ |
A D | nrfx_twi.c | 144 if (p_cb->bytes_transferred != p_cb->curr_length) in xfer_completeness_check() 283 if (p_cb->bytes_transferred < p_cb->curr_length) in twi_send_byte() 311 if (p_cb->bytes_transferred < p_cb->curr_length) in twi_receive_byte() 317 if ((p_cb->bytes_transferred == p_cb->curr_length - 1) && (!TWI_FLAG_SUSPEND(p_cb->flags))) in twi_receive_byte() 321 else if (p_cb->bytes_transferred == p_cb->curr_length && (!TWI_FLAG_SUSPEND(p_cb->flags))) in twi_receive_byte() 325 else if (p_cb->bytes_transferred == p_cb->curr_length && TWI_FLAG_SUSPEND(p_cb->flags)) in twi_receive_byte() 414 p_cb->error = !xfer_completeness_check(p_twi, p_cb); in twi_transfer() 680 p_cb->p_curr_buf == p_cb->xfer_desc.p_primary_buf) in twi_irq_handler() 682 p_cb->p_curr_buf = p_cb->xfer_desc.p_secondary_buf; in twi_irq_handler() 683 p_cb->curr_length = p_cb->xfer_desc.secondary_length; in twi_irq_handler() [all …]
|
A D | nrfx_uart.c | 238 uint8_t txd = p_cb->p_tx_buffer[p_cb->tx_counter]; in tx_byte() 427 } while (p_cb->rx_buffer_length > p_cb->rx_counter); in nrfx_uart_rx() 504 p_cb->handler(&event, p_cb->p_context); in rx_done_event() 518 p_cb->handler(&event, p_cb->p_context); in tx_done_event() 529 tx_done_event(p_cb, p_cb->tx_counter); in nrfx_uart_tx_abort() 568 p_cb->handler(&event,p_cb->p_context); in uart_irq_handler() 574 if (p_cb->rx_buffer_length == p_cb->rx_counter) in uart_irq_handler() 583 p_cb->p_rx_buffer = p_cb->p_rx_secondary_buffer; in uart_irq_handler() 597 rx_done_event(p_cb, p_cb->rx_counter, p_cb->p_rx_buffer); in uart_irq_handler() 616 tx_done_event(p_cb, p_cb->tx_buffer_length); in uart_irq_handler() [all …]
|
A D | nrfx_spi.c | 171 if (p_cb->handler) in nrfx_spi_init() 192 if (p_cb->handler) in nrfx_spi_uninit() 239 p_cb->handler(&p_cb->evt, p_cb->p_context); in finish_transfer() 252 if (p_cb->bytes_transferred < p_cb->evt.xfer_desc.rx_length) in transfer_byte() 254 p_cb->evt.xfer_desc.p_rx_buffer[p_cb->bytes_transferred] = rx_data; in transfer_byte() 268 if (p_cb->abort) in transfer_byte() 291 return (p_cb->bytes_transferred < p_cb->evt.xfer_desc.tx_length || in transfer_byte() 292 p_cb->bytes_transferred < p_cb->evt.xfer_desc.rx_length); in transfer_byte() 328 if (p_cb->handler) in spi_xfer() 374 p_cb->abort = false; in nrfx_spi_xfer() [all …]
|
A D | nrfx_twim.c | 284 if (p_cb->handler) in nrfx_twim_init() 303 if (p_cb->handler) in nrfx_twim_uninit() 340 p_cb->int_mask = 0; in nrfx_twim_disable() 353 return p_cb->busy; in nrfx_twim_is_busy() 384 p_cb->error = false; in twim_xfer() 396 if (p_cb->busy) in twim_xfer() 495 if (p_cb->handler) in twim_xfer() 709 p_cb->error = !xfer_completeness_check(p_twim, p_cb); in twim_irq_handler() 719 if (!p_cb->repeated || p_cb->error) in twim_irq_handler() 809 if (!(p_cb->flags & NRFX_TWIM_FLAG_NO_XFER_EVT_HANDLER) || p_cb->error) in twim_irq_handler() [all …]
|
A D | nrfx_uarte.c | 285 if (p_cb->handler) in nrfx_uarte_init() 306 if (p_cb->handler) in nrfx_uarte_uninit() 346 p_cb->handler = NULL; in nrfx_uarte_uninit() 387 p_cb->tx_buffer_length * sizeof(p_cb->p_tx_buffer[0])); in nrfx_uarte_tx() 458 if (p_cb->handler) in nrfx_uarte_rx() 563 p_cb->handler(&event, p_cb->p_context); in rx_done_event() 577 p_cb->handler(&event, p_cb->p_context); in tx_done_event() 627 p_cb->handler(&event, p_cb->p_context); in uarte_irq_handler() 641 p_cb->rx_buffer_length = p_cb->rx_secondary_buffer_length; in uarte_irq_handler() 642 p_cb->p_rx_buffer = p_cb->p_rx_secondary_buffer; in uarte_irq_handler() [all …]
|
A D | nrfx_spim.c | 317 p_cb->handler = handler; in nrfx_spim_init() 318 p_cb->p_context = p_context; in nrfx_spim_init() 415 if (p_cb->handler) in nrfx_spim_init() 436 if (p_cb->handler) in nrfx_spim_uninit() 508 if (!p_cb->use_hw_ss) in finish_transfer() 527 p_cb->handler(&p_cb->evt, p_cb->p_context); in finish_transfer() 583 p_cb->tx_length = 0; in spim_xfer() 584 p_cb->rx_length = 0; in spim_xfer() 617 if (!p_cb->handler) in spim_xfer() 695 if (!p_cb->use_hw_ss) in nrfx_spim_xfer() [all …]
|
A D | nrfx_twis.c | 244 p_cb->error |= error; in nrfx_twis_process_error() 246 call_event_handler(p_cb, &evdata); in nrfx_twis_process_error() 255 if (p_cb->semaphore) in nrfx_twis_state_machine() 259 p_cb->semaphore = 1; in nrfx_twis_state_machine() 427 p_cb->substate = substate; in nrfx_twis_state_machine() 430 p_cb->semaphore = 0; in nrfx_twis_state_machine() 441 if (NULL == p_cb->ev_handler) in nrfx_twis_preprocess_status() 542 p_cb->semaphore = 0; in nrfx_twis_init() 573 p_cb->ev_handler = NULL; in nrfx_twis_uninit() 587 if (NULL != p_cb->ev_handler) in nrfx_twis_enable() [all …]
|
A D | nrfx_spis.c | 249 p_cb->handler = event_handler; in nrfx_spis_init() 250 p_cb->p_context = p_context; in nrfx_spis_init() 336 switch (p_cb->spi_state) in spis_state_entry_action_execute() 348 p_cb->handler(&event, p_cb->p_context); in spis_state_entry_action_execute() 360 p_cb->handler(&event, p_cb->p_context); in spis_state_entry_action_execute() 379 p_cb->spi_state = new_state; in spis_state_change() 414 switch (p_cb->spi_state) in nrfx_spis_buffers_set() 455 switch (p_cb->spi_state) in spis_irq_handler() 458 nrf_spis_tx_buffer_set(p_spis, (uint8_t *)p_cb->tx_buffer, p_cb->tx_buffer_size); in spis_irq_handler() 459 nrf_spis_rx_buffer_set(p_spis, (uint8_t *)p_cb->rx_buffer, p_cb->rx_buffer_size); in spis_irq_handler() [all …]
|
A D | nrfx_pwm.c | 177 if (p_cb->handler) in nrfx_pwm_init() 217 p_cb->flags = flags; in start_playback() 219 if (p_cb->handler) in start_playback() 447 if ((p_cb->flags & NRFX_PWM_FLAG_SIGNAL_END_SEQ0) && p_cb->handler) in irq_handler() 449 p_cb->handler(NRFX_PWM_EVT_END_SEQ0, p_cb->p_context); in irq_handler() 455 if ((p_cb->flags & NRFX_PWM_FLAG_SIGNAL_END_SEQ1) && p_cb->handler) in irq_handler() 457 p_cb->handler(NRFX_PWM_EVT_END_SEQ1, p_cb->p_context); in irq_handler() 465 if (!(p_cb->flags & NRFX_PWM_FLAG_NO_EVT_FINISHED) && p_cb->handler) in irq_handler() 467 p_cb->handler(NRFX_PWM_EVT_FINISHED, p_cb->p_context); in irq_handler() 477 if (p_cb->handler) in irq_handler() [all …]
|
A D | nrfx_wdt.c | 69 p_cb->wdt_event_handler = wdt_event_handler; in nrfx_wdt_init() 72 if (p_cb->state == NRFX_DRV_STATE_UNINITIALIZED) in nrfx_wdt_init() 74 p_cb->state = NRFX_DRV_STATE_INITIALIZED; in nrfx_wdt_init() 110 NRFX_ASSERT(p_cb->alloc_index != 0); in nrfx_wdt_enable() 111 NRFX_ASSERT(p_cb->state == NRFX_DRV_STATE_INITIALIZED); in nrfx_wdt_enable() 113 p_cb->state = NRFX_DRV_STATE_POWERED_ON; in nrfx_wdt_enable() 121 NRFX_ASSERT(p_cb->state == NRFX_DRV_STATE_POWERED_ON); in nrfx_wdt_feed() 122 for (uint8_t i = 0; i < p_cb->alloc_index; i++) in nrfx_wdt_feed() 134 NRFX_ASSERT(p_cb->state == NRFX_DRV_STATE_INITIALIZED); in nrfx_wdt_channel_alloc() 137 if (p_cb->alloc_index < NRF_WDT_CHANNEL_NUMBER) in nrfx_wdt_channel_alloc() [all …]
|
A D | nrfx_egu.c | 100 egu_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_egu_init() local 102 if (p_cb->state != NRFX_DRV_STATE_UNINITIALIZED) in nrfx_egu_init() 107 p_cb->state = NRFX_DRV_STATE_INITIALIZED; in nrfx_egu_init() 108 p_cb->p_context = p_context; in nrfx_egu_init() 109 p_cb->handler = event_handler; in nrfx_egu_init() 150 egu_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_egu_uninit() local 155 p_cb->state = NRFX_DRV_STATE_UNINITIALIZED; in nrfx_egu_uninit() 158 static void egu_irq_handler(NRF_EGU_Type * p_reg, egu_control_block_t * p_cb) in egu_irq_handler() argument 169 p_cb->handler(event_idx, p_cb->p_context); in egu_irq_handler()
|
A D | nrfx_timer.c | 77 timer_control_block_t * p_cb = &m_cb[p_instance->instance_id]; in nrfx_timer_init() local 86 if (p_cb->state != NRFX_DRV_STATE_UNINITIALIZED) in nrfx_timer_init() 106 p_cb->handler = timer_event_handler; in nrfx_timer_init() 107 p_cb->context = p_config->p_context; in nrfx_timer_init() 124 p_cb->state = NRFX_DRV_STATE_INITIALIZED; in nrfx_timer_init() 278 timer_control_block_t * p_cb, in irq_handler() argument 292 p_cb->handler(event, p_cb->context); in irq_handler()
|
Completed in 28 milliseconds