Home
last modified time | relevance | path

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

12

/hal_infineon-3.5.0/mtb-hal-cat1/source/
Dcyhal_syspm.c325 void _cyhal_syspm_register_peripheral_callback(cyhal_syspm_callback_data_t *callback_data) in _cyhal_syspm_register_peripheral_callback() argument
327 CY_ASSERT(callback_data != NULL); in _cyhal_syspm_register_peripheral_callback()
328 _cyhal_syspm_add_callback_to_list(&_cyhal_syspm_peripheral_callback_ptr, callback_data); in _cyhal_syspm_register_peripheral_callback()
331 void _cyhal_syspm_unregister_peripheral_callback(cyhal_syspm_callback_data_t *callback_data) in _cyhal_syspm_unregister_peripheral_callback() argument
333 CY_ASSERT(callback_data != NULL); in _cyhal_syspm_unregister_peripheral_callback()
334 _cyhal_syspm_remove_callback_from_list(&_cyhal_syspm_peripheral_callback_ptr, callback_data); in _cyhal_syspm_unregister_peripheral_callback()
491 void cyhal_syspm_register_callback(cyhal_syspm_callback_data_t *callback_data) in cyhal_syspm_register_callback() argument
493 CY_ASSERT(callback_data != NULL); in cyhal_syspm_register_callback()
494 _cyhal_syspm_add_callback_to_list(&_cyhal_syspm_callback_ptr, callback_data); in cyhal_syspm_register_callback()
497 void cyhal_syspm_unregister_callback(cyhal_syspm_callback_data_t *callback_data) in cyhal_syspm_unregister_callback() argument
[all …]
Dcyhal_lptimer.c311 …if (NULL != obj->callback_data.callback && ((obj->isr_instruction & _CYHAL_LPTIMER_ISR_CALL_USER_C… in _cyhal_lptimer_irq_handler()
313 …l_lptimer_event_callback_t callback = (cyhal_lptimer_event_callback_t) obj->callback_data.callback; in _cyhal_lptimer_irq_handler()
314 (callback)(obj->callback_data.callback_arg, CYHAL_LPTIMER_COMPARE_MATCH); in _cyhal_lptimer_irq_handler()
580 obj->callback_data.callback = NULL; in cyhal_lptimer_init()
581 obj->callback_data.callback_arg = NULL; in cyhal_lptimer_init()
706 obj->callback_data.callback = (cy_israddress) callback; in cyhal_lptimer_register_callback()
707 obj->callback_data.callback_arg = callback_arg; in cyhal_lptimer_register_callback()
761 …cyhal_lptimer_event_callback_t callback = (cyhal_lptimer_event_callback_t) obj->callback_data.call… in cyhal_lptimer_irq_trigger()
762 (callback)(obj->callback_data.callback_arg, CYHAL_LPTIMER_COMPARE_MATCH); in cyhal_lptimer_irq_trigger()
Dcyhal_ezi2c.c83 …cyhal_ezi2c_event_callback_t callback = (cyhal_ezi2c_event_callback_t) obj->callback_data.callback; in _cyhal_ezi2c_irq_handler()
90 …(void) (callback) (obj->callback_data.callback_arg, (cyhal_ezi2c_status_t)(status & obj->irq_cause… in _cyhal_ezi2c_irq_handler()
236 obj->callback_data.callback = NULL; in _cyhal_ezi2c_init_hw()
237 obj->callback_data.callback_arg = NULL; in _cyhal_ezi2c_init_hw()
371 obj->callback_data.callback = (cy_israddress) callback; in cyhal_ezi2c_register_callback()
372 obj->callback_data.callback_arg = callback_arg; in cyhal_ezi2c_register_callback()
Dcyhal_keyscan.c132 …l_keyscan_event_callback_t callback = (cyhal_keyscan_event_callback_t) obj->callback_data.callback; in _cyhal_keyscan_cb_wrapper()
133 callback(obj->callback_data.callback_arg, anded_events); in _cyhal_keyscan_cb_wrapper()
309 obj->callback_data.callback = NULL; in _cyhal_keyscan_init_hw()
310 obj->callback_data.callback_arg = NULL; in _cyhal_keyscan_init_hw()
473 obj->callback_data.callback = (cy_israddress) callback; in cyhal_keyscan_register_callback()
474 obj->callback_data.callback_arg = callback_arg; in cyhal_keyscan_register_callback()
Dcyhal_tdm.c199 obj->callback_data.callback = (cy_israddress) callback; in cyhal_tdm_register_callback()
200 obj->callback_data.callback_arg = callback_arg; in cyhal_tdm_register_callback()
397 cyhal_tdm_event_callback_t callback = (cyhal_tdm_event_callback_t)obj->callback_data.callback; in _cyhal_tdm_invoke_callback()
400 callback(obj->callback_data.callback_arg, (cyhal_tdm_event_t)event); in _cyhal_tdm_invoke_callback()
Dcyhal_i2s.c205 obj->callback_data.callback = (cy_israddress) callback; in cyhal_i2s_register_callback()
206 obj->callback_data.callback_arg = callback_arg; in cyhal_i2s_register_callback()
404 cyhal_i2s_event_callback_t callback = (cyhal_i2s_event_callback_t)obj->callback_data.callback; in _cyhal_i2s_invoke_callback()
407 callback(obj->callback_data.callback_arg, (cyhal_i2s_event_t)event); in _cyhal_i2s_invoke_callback()
Dcyhal_gpio.c324 void cyhal_gpio_register_callback(cyhal_gpio_t pin, cyhal_gpio_callback_data_t* callback_data) in cyhal_gpio_register_callback() argument
340 if (NULL != callback_data) in cyhal_gpio_register_callback()
342 CY_ASSERT(NULL != callback_data->callback); in cyhal_gpio_register_callback()
343 callback_data->pin = pin; in cyhal_gpio_register_callback()
344 callback_data->next = _cyhal_gpio_callbacks[CYHAL_GET_PORT(pin)]; in cyhal_gpio_register_callback()
345 _cyhal_gpio_callbacks[CYHAL_GET_PORT(pin)] = callback_data; in cyhal_gpio_register_callback()
Dcyhal_dma.c69 obj->callback_data.callback = NULL; in cyhal_dma_init_adv()
70 obj->callback_data.callback_arg = NULL; in cyhal_dma_init_adv()
287 obj->callback_data.callback = (cy_israddress)callback; in cyhal_dma_register_callback()
288 obj->callback_data.callback_arg = callback_arg; in cyhal_dma_register_callback()
Dcyhal_sdhc.c317 if (sdxx->callback_data.callback != NULL) in _cyhal_sdhc_gpio_card_detect_callback()
319 … cyhal_sdhc_event_callback_t callback = (cyhal_sdhc_event_callback_t) sdxx->callback_data.callback; in _cyhal_sdhc_gpio_card_detect_callback()
327 (callback) (sdxx->callback_data.callback_arg, CYHAL_SDHC_CARD_REMOVAL); in _cyhal_sdhc_gpio_card_detect_callback()
333 (callback) (sdxx->callback_data.callback_arg, CYHAL_SDHC_CARD_INSERTION); in _cyhal_sdhc_gpio_card_detect_callback()
652 … cyhal_sdio_event_callback_t callback = (cyhal_sdio_event_callback_t) sdxx->callback_data.callback; in _cyhal_sdio_syspm_callback()
655 (callback)(sdxx->callback_data.callback_arg, CYHAL_SDIO_GOING_DOWN); in _cyhal_sdio_syspm_callback()
677 … cyhal_sdio_event_callback_t callback = (cyhal_sdio_event_callback_t) sdxx->callback_data.callback; in _cyhal_sdio_syspm_callback()
680 (callback)(sdxx->callback_data.callback_arg, CYHAL_SDIO_COMING_UP); in _cyhal_sdio_syspm_callback()
1163 if ((sdxx->callback_data.callback != NULL) && (0 != user_events)) in _cyhal_sdhc_irq_handler()
1165 … cyhal_sdhc_event_callback_t callback = (cyhal_sdhc_event_callback_t) sdxx->callback_data.callback; in _cyhal_sdhc_irq_handler()
[all …]
Dcyhal_ipc.c915 … if ((obj->user_events != CYHAL_IPC_NO_INTR) && (obj->callback_data.callback != NULL)) in _cyhal_ipc_irq_handler()
924 … cyhal_ipc_event_callback_t callback = (cyhal_ipc_event_callback_t)obj->callback_data.callback; in _cyhal_ipc_irq_handler()
925 … callback(obj->callback_data.callback_arg, (cyhal_ipc_event_t)activated_occurred_events); in _cyhal_ipc_irq_handler()
1096 obj->callback_data.callback = NULL; in cyhal_ipc_queue_init()
1097 obj->callback_data.callback_arg = NULL; in cyhal_ipc_queue_init()
1229 obj->callback_data.callback = NULL; in cyhal_ipc_queue_get_handle()
1230 obj->callback_data.callback_arg = NULL; in cyhal_ipc_queue_get_handle()
1257 obj->callback_data.callback = (cy_israddress) callback; in cyhal_ipc_queue_register_callback()
1258 obj->callback_data.callback_arg = callback_arg; in cyhal_ipc_queue_register_callback()
Dcyhal_dma_dmac.c449 if(obj->callback_data.callback != NULL && events_to_callback) in _cyhal_dma_dmac_irq_handler()
451 …((cyhal_dma_event_callback_t)obj->callback_data.callback)(obj->callback_data.callback_arg, (cyhal_… in _cyhal_dma_dmac_irq_handler()
467 if (((channels & (1 << i)) != 0) && (obj->callback_data.callback != NULL)) in _cyhal_dma_dmac_irq_handler()
469 …((cyhal_dma_event_callback_t)obj->callback_data.callback)(obj->callback_data.callback_arg, CYHAL_D… in _cyhal_dma_dmac_irq_handler()
599 obj->callback_data.callback = NULL; in _cyhal_dma_dmac_init()
631 obj->callback_data.callback = NULL; in _cyhal_dma_dmac_init_cfg()
Dcyhal_uart.c309 … cyhal_uart_event_callback_t callback = (cyhal_uart_event_callback_t)obj->callback_data.callback; in _cyhal_uart_dma_handler_tx()
312 callback(obj->callback_data.callback_arg, CYHAL_UART_IRQ_TX_TRANSMIT_IN_FIFO); in _cyhal_uart_dma_handler_tx()
343 … cyhal_uart_event_callback_t callback = (cyhal_uart_event_callback_t)obj->callback_data.callback; in _cyhal_uart_dma_handler_rx()
346 callback(obj->callback_data.callback_arg, CYHAL_UART_IRQ_RX_DONE); in _cyhal_uart_dma_handler_rx()
381 … cyhal_uart_event_callback_t callback = (cyhal_uart_event_callback_t) obj->callback_data.callback; in _cyhal_uart_cb_wrapper()
382 callback(obj->callback_data.callback_arg, anded_events); in _cyhal_uart_cb_wrapper()
773 obj->callback_data.callback = NULL; in _cyhal_uart_init_hw()
774 obj->callback_data.callback_arg = NULL; in _cyhal_uart_init_hw()
1526 obj->callback_data.callback = (cy_israddress) callback; in cyhal_uart_register_callback()
1527 obj->callback_data.callback_arg = callback_arg; in cyhal_uart_register_callback()
Dcyhal_pdmpcm.c644 …l_pdm_pcm_event_callback_t callback = (cyhal_pdm_pcm_event_callback_t) obj->callback_data.callback; in _cyhal_pdm_pcm_hw_irq_handler()
647 callback(obj->callback_data.callback_arg, event); in _cyhal_pdm_pcm_hw_irq_handler()
1007 …l_pdm_pcm_event_callback_t callback = (cyhal_pdm_pcm_event_callback_t) obj->callback_data.callback; in _cyhal_pdm_pcm_dma_callback()
1010 callback(obj->callback_data.callback_arg, CYHAL_PDM_PCM_ASYNC_COMPLETE); in _cyhal_pdm_pcm_dma_callback()
1153 obj->callback_data.callback = NULL; in _cyhal_pdm_pcm_init_hw()
1154 obj->callback_data.callback_arg = NULL; in _cyhal_pdm_pcm_init_hw()
1679 …l_pdm_pcm_event_callback_t callback = (cyhal_pdm_pcm_event_callback_t) obj->callback_data.callback; in cyhal_pdm_pcm_read_async()
1683 callback(obj->callback_data.callback_arg, CYHAL_PDM_PCM_ASYNC_COMPLETE); in cyhal_pdm_pcm_read_async()
1721 obj->callback_data.callback = (cy_israddress) callback; in cyhal_pdm_pcm_register_callback()
1722 obj->callback_data.callback_arg = callback_arg; in cyhal_pdm_pcm_register_callback()
Dcyhal_comp.c190 obj->callback_data.callback = (cy_israddress) callback; in cyhal_comp_register_callback()
191 obj->callback_data.callback_arg = callback_arg; in cyhal_comp_register_callback()
Dcyhal_i2c.c194 … cyhal_i2c_event_callback_t callback = (cyhal_i2c_event_callback_t) obj->callback_data.callback; in _cyhal_i2c_cb_wrapper()
195 callback(obj->callback_data.callback_arg, anded_events); in _cyhal_i2c_cb_wrapper()
365 obj->callback_data.callback = NULL; in _cyhal_i2c_init_hw()
366 obj->callback_data.callback_arg = NULL; in _cyhal_i2c_init_hw()
910 obj->callback_data.callback = (cy_israddress) callback; in cyhal_i2c_register_callback()
911 obj->callback_data.callback_arg = callback_arg; in cyhal_i2c_register_callback()
Dcyhal_adc_mic.c199 … cyhal_adc_event_callback_t callback = (cyhal_adc_event_callback_t)obj->callback_data.callback; in _cyhal_adcmic_irq_handler()
202 callback(obj->callback_data.callback_arg, CYHAL_ADC_ASYNC_READ_COMPLETE); in _cyhal_adcmic_irq_handler()
681 obj->callback_data.callback = (cy_israddress) callback; in cyhal_adc_register_callback()
682 obj->callback_data.callback_arg = callback_arg; in cyhal_adc_register_callback()
Dcyhal_qspi.c305 … cyhal_qspi_event_callback_t callback = (cyhal_qspi_event_callback_t) obj->callback_data.callback; in _cyhal_qspi_cb_wrapper()
306 callback(obj->callback_data.callback_arg, hal_event); in _cyhal_qspi_cb_wrapper()
983 obj->callback_data.callback = NULL; in _cyhal_qspi_init_common()
984 obj->callback_data.callback_arg = NULL; in _cyhal_qspi_init_common()
1439 obj->callback_data.callback = (cy_israddress) callback; in cyhal_qspi_register_callback()
1440 obj->callback_data.callback_arg = callback_arg; in cyhal_qspi_register_callback()
Dcyhal_dma_dw.c355 if(obj->callback_data.callback != NULL && events_to_callback) in _cyhal_dma_dw_irq_handler()
357 …((cyhal_dma_event_callback_t)obj->callback_data.callback)(obj->callback_data.callback_arg, (cyhal_… in _cyhal_dma_dw_irq_handler()
460 obj->callback_data.callback = NULL; in _cyhal_dma_dw_init_cfg()
Dcyhal_spi.c387 … cyhal_spi_event_callback_t callback = (cyhal_spi_event_callback_t) obj->callback_data.callback; in _cyhal_spi_cb_wrapper()
388 callback(obj->callback_data.callback_arg, anded_events); in _cyhal_spi_cb_wrapper()
894 obj->callback_data.callback = NULL; in _cyhal_spi_init_hw()
895 obj->callback_data.callback_arg = NULL; in _cyhal_spi_init_hw()
1481 obj->callback_data.callback = (cy_israddress) callback; in cyhal_spi_register_callback()
1482 obj->callback_data.callback_arg = callback_arg; in cyhal_spi_register_callback()
Dcyhal_comp_ctb.c158 cyhal_comp_event_callback_t callback = (cyhal_comp_event_callback_t)obj->callback_data.callback; in _cyhal_comp_ctb_irq_handler()
163 callback(obj->callback_data.callback_arg, event); in _cyhal_comp_ctb_irq_handler()
Dcyhal_tcpwm_common.c450 if (0u != intrCause && tcpwm->callback_data.callback != NULL) in _cyhal_tcpwm_irq_handler()
452 …al_tcpwm_event_callback_t callback = (_cyhal_tcpwm_event_callback_t) tcpwm->callback_data.callback; in _cyhal_tcpwm_irq_handler()
454 (void) (callback) (tcpwm->callback_data.callback_arg, intrCause); in _cyhal_tcpwm_irq_handler()
535 _cyhal_tcpwm_data_structs[index]->callback_data.callback = callback; in _cyhal_tcpwm_irq_handler()
536 _cyhal_tcpwm_data_structs[index]->callback_data.callback_arg = callback_arg; in _cyhal_tcpwm_irq_handler()
/hal_infineon-3.5.0/mtb-hal-cat1/include_pvt/
Dcyhal_hw_types.h197 cyhal_event_callback_data_t callback_data; member
255 cyhal_event_callback_data_t callback_data; member
389 cyhal_event_callback_data_t callback_data; member
486 cyhal_event_callback_data_t callback_data; member
587 cyhal_event_callback_data_t callback_data; member
754 cyhal_event_callback_data_t callback_data; member
797 cyhal_event_callback_data_t callback_data; member
851 cyhal_event_callback_data_t callback_data; member
878 cyhal_event_callback_data_t callback_data; member
921 cyhal_event_callback_data_t callback_data; member
[all …]
Dcyhal_syspm_impl.h76 void _cyhal_syspm_register_peripheral_callback(cyhal_syspm_callback_data_t *callback_data);
77 void _cyhal_syspm_unregister_peripheral_callback(cyhal_syspm_callback_data_t *callback_data);
/hal_infineon-3.5.0/mtb-hal-cat1/include/
Dcyhal_syspm.h337 void cyhal_syspm_register_callback(cyhal_syspm_callback_data_t *callback_data);
343 void cyhal_syspm_unregister_callback(cyhal_syspm_callback_data_t *callback_data);
Dcyhal_gpio.h257 void cyhal_gpio_register_callback(cyhal_gpio_t pin, cyhal_gpio_callback_data_t* callback_data);

12