Home
last modified time | relevance | path

Searched defs:obj (Results 1 – 25 of 53) sorted by relevance

123

/hal_infineon-3.5.0/mtb-hal-cat1/source/
Dcyhal_audio_common.c418 cy_rslt_t _cyhal_audioss_init_clock(_cyhal_audioss_t *obj, const cyhal_clock_t* clk, bool all_mclk) in _cyhal_audioss_init_clock()
455 cy_rslt_t _cyhal_audioss_init_pdl(_cyhal_audioss_t *obj, const _cyhal_audioss_pdl_config_t* pdl_con… in _cyhal_audioss_init_pdl()
476 cy_rslt_t _cyhal_audioss_init_hw(_cyhal_audioss_t *obj, const _cyhal_audioss_pdl_config_t* pdl_conf… in _cyhal_audioss_init_hw()
548 cy_rslt_t _cyhal_audioss_init(_cyhal_audioss_t *obj, const _cyhal_audioss_pins_t* tx_pins, const _c… in _cyhal_audioss_init()
944 cy_rslt_t _cyhal_audioss_init_cfg(_cyhal_audioss_t *obj, const _cyhal_audioss_configurator_t *cfg, … in _cyhal_audioss_init_cfg()
1001 void _cyhal_audioss_free(_cyhal_audioss_t *obj) in _cyhal_audioss_free()
1080 static uint8_t _cyhal_audioss_fifo_trigger_level(_cyhal_audioss_t* obj, bool is_tx) in _cyhal_audioss_fifo_trigger_level()
1098 static bool _cyhal_audioss_is_direction_enabled(_cyhal_audioss_t *obj, bool is_tx) in _cyhal_audioss_is_direction_enabled()
1114 static cy_rslt_t _cyhal_audioss_compute_sclk_div(_cyhal_audioss_t *obj, uint32_t sample_rate_hz, ui… in _cyhal_audioss_compute_sclk_div()
1176 cy_rslt_t _cyhal_audioss_set_sample_rate(_cyhal_audioss_t *obj, uint32_t sample_rate_hz) in _cyhal_audioss_set_sample_rate()
[all …]
Dcyhal_i2c.c137 cyhal_i2c_t* obj = (cyhal_i2c_t*)_cyhal_i2c_irq_obj; in _cyhal_i2c_irq_handler() local
188 cyhal_i2c_t *obj = (cyhal_i2c_t*)_cyhal_i2c_irq_obj; in _cyhal_i2c_cb_wrapper() local
204 cyhal_i2c_t *obj = (cyhal_i2c_t*)_cyhal_i2c_irq_obj; in _cyhal_i2c_cb_addr_wrapper() local
228 cyhal_i2c_t *obj = (cyhal_i2c_t*)obj_ptr; in _cyhal_i2c_pm_callback_instance() local
246 static cy_rslt_t _cyhal_i2c_init_resources(cyhal_i2c_t *obj, cyhal_gpio_t sda, cyhal_gpio_t scl, co… in _cyhal_i2c_init_resources()
340 static cy_rslt_t _cyhal_i2c_init_hw(cyhal_i2c_t *obj, const cy_stc_scb_i2c_config_t *pdl_cfg) in _cyhal_i2c_init_hw()
384 __STATIC_INLINE uint32_t _cyhal_i2c_slave_status(cyhal_i2c_t *obj) in _cyhal_i2c_slave_status()
389 __STATIC_INLINE void _cyhal_i2c_slave_clear_write_status(cyhal_i2c_t *obj) in _cyhal_i2c_slave_clear_write_status()
394 __STATIC_INLINE void _cyhal_i2c_slave_clear_read_status(cyhal_i2c_t *obj) in _cyhal_i2c_slave_clear_read_status()
403 static cy_rslt_t _cyhal_i2c_slave_wait_for_status(cyhal_i2c_t *obj, uint32_t i2c_status, uint32_t t… in _cyhal_i2c_slave_wait_for_status()
[all …]
Dcyhal_usb_dev.c282 static cy_rslt_t _cyhal_usb_dev_hf_clock_setup(cyhal_usb_dev_t *obj) in _cyhal_usb_dev_hf_clock_setup()
339 static cy_rslt_t _cyhal_usb_dev_peri_clock_setup(cyhal_usb_dev_t *obj, const cyhal_clock_t *clk) in _cyhal_usb_dev_peri_clock_setup()
378 static cy_rslt_t _cyhal_usb_dev_pin_setup(cyhal_usb_dev_t *obj, cyhal_gpio_t dp, cyhal_gpio_t dm) in _cyhal_usb_dev_pin_setup()
406 static void _cyhal_usb_dev_free_resources(cyhal_usb_dev_t *obj) in _cyhal_usb_dev_free_resources()
424 cyhal_usb_dev_t *obj = (cyhal_usb_dev_t *)callback_arg; in _cyhal_usb_dev_pm_callback() local
433 cy_rslt_t cyhal_usb_dev_init(cyhal_usb_dev_t *obj, cyhal_gpio_t dp, cyhal_gpio_t dm, const cyhal_cl… in cyhal_usb_dev_init()
535 void cyhal_usb_dev_free(cyhal_usb_dev_t *obj) in cyhal_usb_dev_free()
543 void cyhal_usb_dev_connect(cyhal_usb_dev_t *obj) in cyhal_usb_dev_connect()
548 void cyhal_usb_dev_disconnect(cyhal_usb_dev_t *obj) in cyhal_usb_dev_disconnect()
553 void cyhal_usb_dev_suspend(cyhal_usb_dev_t *obj) in cyhal_usb_dev_suspend()
[all …]
Dcyhal_uart.c173 cyhal_uart_t* obj = (cyhal_uart_t*)_cyhal_uart_irq_obj; in _cyhal_uart_irq_handler() local
285 cyhal_uart_t* obj = (cyhal_uart_t*)arg; in _cyhal_uart_dma_handler_tx() local
324 cyhal_uart_t* obj = (cyhal_uart_t*)arg; in _cyhal_uart_dma_handler_rx() local
377 cyhal_uart_t *obj = (cyhal_uart_t*)_cyhal_uart_irq_obj; in _cyhal_uart_cb_wrapper() local
388 cyhal_uart_t *obj = (cyhal_uart_t*)obj_ptr; in _cyhal_uart_pm_callback_instance() local
607 static cy_rslt_t _cyhal_uart_setup_resources(cyhal_uart_t *obj, cyhal_gpio_t tx, cyhal_gpio_t rx, c… in _cyhal_uart_setup_resources()
751 static cy_rslt_t _cyhal_uart_init_hw(cyhal_uart_t *obj) in _cyhal_uart_init_hw()
793 cy_rslt_t cyhal_uart_init(cyhal_uart_t *obj, cyhal_gpio_t tx, cyhal_gpio_t rx, cyhal_gpio_t cts, cy… in cyhal_uart_init()
852 cy_rslt_t cyhal_uart_init_cfg(cyhal_uart_t *obj, const cyhal_uart_configurator_t *cfg) in cyhal_uart_init_cfg()
888 void cyhal_uart_free(cyhal_uart_t *obj) in cyhal_uart_free()
[all …]
Dcyhal_adc_mic.c72 #define _CYHAL_ADCMIC_NUM_CHANNELS(obj) (sizeof(obj->channel_config) / sizeof(obj->channel_config[0… argument
134 static void _cyhal_adcmic_find_next_channel(cyhal_adc_t* obj, uint8_t* current_idx, int32_t **buffe… in _cyhal_adcmic_find_next_channel()
168 cyhal_adc_t* obj = _cyhal_adcmic_config_structs[block]; in _cyhal_adcmic_irq_handler() local
243 cy_rslt_t _cyhal_adc_config_hw(cyhal_adc_t *obj, const cyhal_adc_configurator_t* cfg, cyhal_gpio_t … in _cyhal_adc_config_hw()
339 cy_rslt_t cyhal_adc_init(cyhal_adc_t *obj, cyhal_gpio_t pin, const cyhal_clock_t *clk) in cyhal_adc_init()
395 void cyhal_adc_free(cyhal_adc_t *obj) in cyhal_adc_free()
423 cy_rslt_t cyhal_adc_configure(cyhal_adc_t *obj, const cyhal_adc_config_t *config) in cyhal_adc_configure()
444 cy_rslt_t cyhal_adc_set_power(cyhal_adc_t *obj, cyhal_power_level_t power) in cyhal_adc_set_power()
458 cy_rslt_t cyhal_adc_set_sample_rate(cyhal_adc_t* obj, uint32_t desired_sample_rate_hz, uint32_t* ac… in cyhal_adc_set_sample_rate()
466 cy_rslt_t cyhal_adc_channel_init_diff(cyhal_adc_channel_t *obj, cyhal_adc_t* adc, cyhal_gpio_t vplu… in cyhal_adc_channel_init_diff()
[all …]
Dcyhal_adc_sar.c474 static uint8_t _cyhal_adc_first_enabled(const cyhal_adc_t* obj) /* Or first channel, if no channel … in _cyhal_adc_first_enabled()
489 static uint8_t _cyhal_adc_last_enabled(const cyhal_adc_t* obj) /* Or last channel, if no channel is… in _cyhal_adc_last_enabled()
505 static int32_t _cyhal_adc_counts_to_uvolts(cyhal_adc_t* obj, uint8_t channel, uint32_t counts) in _cyhal_adc_counts_to_uvolts()
559 static void _cyhal_adc_update_intr_mask(const cyhal_adc_t* obj) in _cyhal_adc_update_intr_mask()
600 static uint8_t _cyhal_adc_max_configured_channel(const cyhal_adc_t* obj) in _cyhal_adc_max_configured_channel()
613 static cyhal_source_t _cyhal_adc_calculate_source(cyhal_adc_t *obj) in _cyhal_adc_calculate_source()
939 static int32_t _cyhal_adc_counts_to_uvolts(cyhal_adc_t* obj, uint8_t channel, int32_t counts) in _cyhal_adc_counts_to_uvolts()
945 static void _cyhal_adc_start_convert(cyhal_adc_t* obj) in _cyhal_adc_start_convert()
961 cyhal_adc_t* obj = _cyhal_adc_config_structs[block]; in _cyhal_adc_irq_handler() local
1072 cyhal_adc_t* obj = (cyhal_adc_t*)arg; in _cyhal_adc_dma_handler() local
[all …]
Dcyhal_spi.c137 static cy_rslt_t _cyhal_spi_int_frequency(cyhal_spi_t *obj, uint32_t hz, uint8_t *over_sample_val) in _cyhal_spi_int_frequency()
273 cyhal_spi_t* obj = (cyhal_spi_t*)_cyhal_spi_irq_obj; in _cyhal_spi_irq_handler() local
374 cyhal_spi_t *obj = (cyhal_spi_t*)_cyhal_spi_irq_obj; in _cyhal_spi_cb_wrapper() local
426 cyhal_spi_t *obj = (cyhal_spi_t *)obj_ptr; in _cyhal_spi_pm_callback_instance() local
493 static cy_rslt_t _cyhal_spi_ssel_config(cyhal_spi_t *obj, cyhal_gpio_t ssel, in _cyhal_spi_ssel_config()
555 static cy_rslt_t _cyhal_spi_wait_for_op(cyhal_spi_t *obj, uint8_t op, uint32_t* timeout) in _cyhal_spi_wait_for_op()
599 static cy_rslt_t _cyhal_spi_setup_resources(cyhal_spi_t *obj, cyhal_gpio_t mosi, cyhal_gpio_t miso,… in _cyhal_spi_setup_resources()
865 static cy_rslt_t _cyhal_spi_init_hw(cyhal_spi_t *obj, cy_stc_scb_spi_config_t *cfg) in _cyhal_spi_init_hw()
914 cy_rslt_t cyhal_spi_init(cyhal_spi_t *obj, cyhal_gpio_t mosi, cyhal_gpio_t miso, cyhal_gpio_t sclk,… in cyhal_spi_init()
958 cy_rslt_t cyhal_spi_init_cfg(cyhal_spi_t *obj, const cyhal_spi_configurator_t *cfg) in cyhal_spi_init_cfg()
[all …]
Dcyhal_sdhc.c1288 static cy_rslt_t _cyhal_sdhc_init_common_hw(cyhal_sdhc_t *obj, const cyhal_sdhc_configurator_t *cfg) in _cyhal_sdhc_init_common_hw()
1577 cy_rslt_t cyhal_sdhc_init_hw(cyhal_sdhc_t *obj, in cyhal_sdhc_init_hw()
1625 static cy_rslt_t _cyhal_sdhc_init_card_common(cyhal_sdhc_t *obj, cy_stc_sd_host_sd_card_config_t *c… in _cyhal_sdhc_init_card_common()
1656 cy_rslt_t cyhal_sdhc_init_card(cyhal_sdhc_t *obj) in cyhal_sdhc_init_card()
1673 cy_rslt_t cyhal_sdhc_init(cyhal_sdhc_t *obj, in cyhal_sdhc_init()
1705 cy_rslt_t cyhal_sdhc_init_cfg(cyhal_sdhc_t *obj, const cyhal_sdhc_configurator_t *cfg) in cyhal_sdhc_init_cfg()
1713 void cyhal_sdhc_free(cyhal_sdhc_t *obj) in cyhal_sdhc_free()
1809 cy_rslt_t cyhal_sdhc_read(cyhal_sdhc_t *obj, uint32_t address, uint8_t *data, size_t *length) in cyhal_sdhc_read()
1827 cy_rslt_t cyhal_sdhc_write(cyhal_sdhc_t *obj, uint32_t address, const uint8_t *data, size_t *length) in cyhal_sdhc_write()
1845 cy_rslt_t cyhal_sdhc_erase(cyhal_sdhc_t *obj, uint32_t start_addr, size_t length, uint32_t timeout_… in cyhal_sdhc_erase()
[all …]
Dcyhal_pdmpcm.c324 static inline int16_t _cyhal_pdm_pcm_get_paired_channel(cyhal_pdm_pcm_t* obj, bool check_used) in _cyhal_pdm_pcm_get_paired_channel()
397 static inline void _cyhal_pdm_pcm_clear_interrupt(cyhal_pdm_pcm_t* obj, uint32_t interrupt) in _cyhal_pdm_pcm_clear_interrupt()
406 static inline uint32_t _cyhal_pdm_pcm_get_interrupt_mask(cyhal_pdm_pcm_t* obj) in _cyhal_pdm_pcm_get_interrupt_mask()
415 static inline void _cyhal_pdm_pcm_set_interrupt_mask(cyhal_pdm_pcm_t* obj, uint32_t mask) in _cyhal_pdm_pcm_set_interrupt_mask()
424 static inline void _cyhal_pdm_pcm_set_rx_fifo_level(cyhal_pdm_pcm_t *obj, uint8_t fifo_level) in _cyhal_pdm_pcm_set_rx_fifo_level()
442 cyhal_pdm_pcm_t *obj = (cyhal_pdm_pcm_t *)callback_arg; in _cyhal_pdm_pcm_pm_callback() local
463 static inline void _cyhal_pdm_pcm_increment_async_buffer(cyhal_pdm_pcm_t *obj, size_t increment) in _cyhal_pdm_pcm_increment_async_buffer()
474 static inline void _cyhal_pdm_pcm_try_read_async(cyhal_pdm_pcm_t *obj) in _cyhal_pdm_pcm_try_read_async()
481 static inline cy_rslt_t _cyhal_pdm_pcm_dma_start(cyhal_pdm_pcm_t *obj) in _cyhal_pdm_pcm_dma_start()
563 cyhal_pdm_pcm_t *obj = _cyhal_pdm_pcm_config_structs[block][channel]; in _cyhal_pdm_pcm_hw_irq_handler() local
[all …]
Dcyhal_dma_dmac.c243 static inline uint8_t _cyhal_dma_dmac_get_cfg_offset(const cyhal_dma_t* obj) in _cyhal_dma_dmac_get_cfg_offset()
249 static inline void _cyhal_dma_dmac_set_obj(cyhal_dma_t *obj) in _cyhal_dma_dmac_set_obj()
255 static inline void _cyhal_dma_dmac_free_obj(cyhal_dma_t *obj) in _cyhal_dma_dmac_free_obj()
310 static inline _cyhal_system_irq_t _cyhal_dma_dmac_get_irqn(cyhal_dma_t *obj) in _cyhal_dma_dmac_get_irqn()
385 static inline cyhal_dma_event_t _cyhal_dma_dmac_convert_interrupt_cause(cyhal_dma_t *obj, uint32_t … in _cyhal_dma_dmac_convert_interrupt_cause()
443 cyhal_dma_t *obj = _cyhal_dma_dmac_get_obj(block, channel); in _cyhal_dma_dmac_irq_handler() local
464 cyhal_dma_t *obj = _cyhal_dma_dmac_get_obj(block, i); in _cyhal_dma_dmac_irq_handler() local
495 static cy_rslt_t _cyhal_dma_dmac_stage(cyhal_dma_t *obj) in _cyhal_dma_dmac_stage()
579 cy_rslt_t _cyhal_dma_dmac_init(cyhal_dma_t *obj, cyhal_source_t *src, cyhal_dest_t *dest, uint8_t p… in _cyhal_dma_dmac_init()
623 cy_rslt_t _cyhal_dma_dmac_init_cfg(cyhal_dma_t *obj, const cyhal_dma_configurator_t *cfg) in _cyhal_dma_dmac_init_cfg()
[all …]
Dcyhal_dma_dw.c145 static inline void _cyhal_dma_dw_set_obj(cyhal_dma_t *obj) in _cyhal_dma_dw_set_obj()
151 static inline void _cyhal_dma_dw_free_obj(cyhal_dma_t *obj) in _cyhal_dma_dw_free_obj()
224 static inline _cyhal_system_irq_t _cyhal_dma_dw_get_irqn(cyhal_dma_t *obj) in _cyhal_dma_dw_get_irqn()
307 static inline cyhal_dma_event_t _cyhal_dma_dw_convert_interrupt_cause(cyhal_dma_t *obj, cy_en_dma_i… in _cyhal_dma_dw_convert_interrupt_cause()
349 cyhal_dma_t *obj = _cyhal_dma_dw_get_obj(block, channel); in _cyhal_dma_dw_irq_handler() local
382 cy_rslt_t _cyhal_dma_dw_stage(cyhal_dma_t *obj) in _cyhal_dma_dw_stage()
426 cy_rslt_t _cyhal_dma_dw_init(cyhal_dma_t *obj, cyhal_source_t *src, cyhal_dest_t *dest, uint8_t pri… in _cyhal_dma_dw_init()
452 cy_rslt_t _cyhal_dma_dw_init_cfg(cyhal_dma_t *obj, const cyhal_dma_configurator_t *cfg) in _cyhal_dma_dw_init_cfg()
480 void _cyhal_dma_dw_free(cyhal_dma_t *obj) in _cyhal_dma_dw_free()
499 cy_rslt_t _cyhal_dma_dw_configure(cyhal_dma_t *obj, const cyhal_dma_cfg_t *cfg) in _cyhal_dma_dw_configure()
[all …]
Dcyhal_dma.c62cyhal_dma_t *obj, cyhal_dma_src_t *src, cyhal_dma_dest_t *dest, cyhal_source_t *dest_source, uint8… in cyhal_dma_init_adv()
130 cy_rslt_t cyhal_dma_init_cfg(cyhal_dma_t *obj, const cyhal_dma_configurator_t *cfg) in cyhal_dma_init_cfg()
153 void cyhal_dma_free(cyhal_dma_t *obj) in cyhal_dma_free()
192 cy_rslt_t cyhal_dma_configure(cyhal_dma_t *obj, const cyhal_dma_cfg_t *cfg) in cyhal_dma_configure()
210 cy_rslt_t cyhal_dma_start_transfer(cyhal_dma_t *obj) in cyhal_dma_start_transfer()
228 cy_rslt_t cyhal_dma_enable(cyhal_dma_t *obj) in cyhal_dma_enable()
246 cy_rslt_t cyhal_dma_disable(cyhal_dma_t *obj) in cyhal_dma_disable()
264 bool cyhal_dma_is_busy(cyhal_dma_t *obj) in cyhal_dma_is_busy()
282 void cyhal_dma_register_callback(cyhal_dma_t *obj, cyhal_dma_event_callback_t callback, void *callb… in cyhal_dma_register_callback()
292 void cyhal_dma_enable_event(cyhal_dma_t *obj, cyhal_dma_event_t event, uint8_t intr_priority, bool … in cyhal_dma_enable_event()
[all …]
Dcyhal_quaddec.c216 static cy_rslt_t _cyhal_quaddec_pin_init(cyhal_quaddec_t *obj, cyhal_gpio_t pin, cyhal_gpio_t *obj_… in _cyhal_quaddec_pin_init()
283 cy_rslt_t _cyhal_quaddec_init_hw(cyhal_quaddec_t *obj, const cy_stc_tcpwm_quaddec_config_t *config,… in _cyhal_quaddec_init_hw()
328 cy_rslt_t cyhal_quaddec_init(cyhal_quaddec_t *obj, cyhal_gpio_t phi_a, cyhal_gpio_t phi_b, in cyhal_quaddec_init()
454 cy_rslt_t cyhal_quaddec_init_cfg(cyhal_quaddec_t *obj, const cyhal_quaddec_configurator_t *cfg) in cyhal_quaddec_init_cfg()
479 void cyhal_quaddec_free(cyhal_quaddec_t *obj) in cyhal_quaddec_free()
509 cy_rslt_t cyhal_quaddec_start(cyhal_quaddec_t *obj) in cyhal_quaddec_start()
532 cy_rslt_t cyhal_quaddec_stop(cyhal_quaddec_t *obj) in cyhal_quaddec_stop()
539 int32_t cyhal_quaddec_get_delta(cyhal_quaddec_t *obj) in cyhal_quaddec_get_delta()
567 uint32_t cyhal_quaddec_read_counter(const cyhal_quaddec_t *obj) in cyhal_quaddec_read_counter()
573 uint32_t cyhal_quaddec_read_capture(const cyhal_quaddec_t *obj) in cyhal_quaddec_read_capture()
[all …]
Dcyhal_timer.c106 cy_rslt_t _cyhal_timer_init_hw(cyhal_timer_t *obj, const cy_stc_tcpwm_counter_config_t *config, con… in _cyhal_timer_init_hw()
156 cy_rslt_t cyhal_timer_init(cyhal_timer_t *obj, cyhal_gpio_t pin, const cyhal_clock_t *clk) in cyhal_timer_init()
218 cy_rslt_t cyhal_timer_init_cfg(cyhal_timer_t *obj, const cyhal_timer_configurator_t *cfg) in cyhal_timer_init_cfg()
236 cy_rslt_t cyhal_timer_configure(cyhal_timer_t *obj, const cyhal_timer_cfg_t *cfg) in cyhal_timer_configure()
282 cy_rslt_t cyhal_timer_set_frequency(cyhal_timer_t *obj, uint32_t hz) in cyhal_timer_set_frequency()
330 cy_rslt_t cyhal_timer_start(cyhal_timer_t *obj) in cyhal_timer_start()
367 cy_rslt_t cyhal_timer_stop(cyhal_timer_t *obj) in cyhal_timer_stop()
390 cy_rslt_t cyhal_timer_reset(cyhal_timer_t *obj) in cyhal_timer_reset()
413 uint32_t cyhal_timer_read(const cyhal_timer_t *obj) in cyhal_timer_read()
468 cy_rslt_t cyhal_timer_connect_digital2(cyhal_timer_t *obj, cyhal_source_t source, cyhal_timer_input… in cyhal_timer_connect_digital2()
[all …]
Dcyhal_qspi.c185 static void _cyhal_qspi_set_pins_frozen(cyhal_qspi_t* obj, bool freeze) in _cyhal_qspi_set_pins_frozen()
251 cyhal_qspi_t *obj = (cyhal_qspi_t *)callback_arg; in _cyhal_qspi_pm_callback() local
301 cyhal_qspi_t *obj = (cyhal_qspi_t *)_cyhal_qspi_irq_obj; in _cyhal_qspi_cb_wrapper() local
322 cyhal_qspi_t* obj = (cyhal_qspi_t*)_cyhal_qspi_irq_obj; in _cyhal_qspi_irq_handler() local
422 static cy_rslt_t _cyhal_qspi_command_transfer(cyhal_qspi_t *obj, const cyhal_qspi_command_t *comman… in _cyhal_qspi_command_transfer()
650 static cy_rslt_t _cyhal_qspi_slave_select_check_reserve(cyhal_qspi_t *obj, cyhal_gpio_t ssel, uint8… in _cyhal_qspi_slave_select_check_reserve()
679 static cy_rslt_t _cyhal_qspi_process_pin_set(cyhal_qspi_t *obj, const cyhal_qspi_slave_pin_config_t… in _cyhal_qspi_process_pin_set()
787 static cy_rslt_t _cyhal_qspi_init_common(cyhal_qspi_t *obj, const cyhal_qspi_configurator_t *cfg, u… in _cyhal_qspi_init_common()
1010cyhal_qspi_t *obj, cyhal_gpio_t sclk, const cyhal_qspi_slave_pin_config_t *pin_set, uint32_t hz, u… in cyhal_qspi_init()
1059 cy_rslt_t cyhal_qspi_init_cfg(cyhal_qspi_t *obj, const cyhal_qspi_configurator_t *cfg) in cyhal_qspi_init_cfg()
[all …]
Dcyhal_pwm.c117 static cy_rslt_t cyhal_pwm_set_period_and_compare(cyhal_pwm_t *obj, uint32_t period, uint32_t compa… in cyhal_pwm_set_period_and_compare()
166 static cy_rslt_t _cyhal_pwm_update_clock_freq(cyhal_pwm_t *obj, uint32_t period_us) in _cyhal_pwm_update_clock_freq()
210 static cy_rslt_t _cyhal_pwm_init_clock(cyhal_pwm_t *obj, uint32_t dead_time_us, const cyhal_clock_t… in _cyhal_pwm_init_clock()
270 static cy_rslt_t _cyhal_pwm_init_hw(cyhal_pwm_t *obj, const cy_stc_tcpwm_pwm_config_t* config, bool… in _cyhal_pwm_init_hw()
298 cy_rslt_t cyhal_pwm_init_cfg(cyhal_pwm_t *obj, const cyhal_pwm_configurator_t *cfg) in cyhal_pwm_init_cfg()
322 cy_rslt_t cyhal_pwm_init_adv(cyhal_pwm_t *obj, cyhal_gpio_t pin, cyhal_gpio_t compl_pin, cyhal_pwm_… in cyhal_pwm_init_adv()
453 void cyhal_pwm_free(cyhal_pwm_t *obj) in cyhal_pwm_free()
465 cy_rslt_t cyhal_pwm_set_period(cyhal_pwm_t *obj, uint32_t period_us, uint32_t pulse_width_us) in cyhal_pwm_set_period()
478 cy_rslt_t cyhal_pwm_set_duty_cycle(cyhal_pwm_t *obj, float duty_cycle, uint32_t frequencyhal_hz) in cyhal_pwm_set_duty_cycle()
495 cy_rslt_t cyhal_pwm_start(cyhal_pwm_t *obj) in cyhal_pwm_start()
[all …]
Dcyhal_dac.c138 static bool _cyhal_dac_is_output_buffered(const cyhal_dac_t *obj) in _cyhal_dac_is_output_buffered()
145 static bool _cyhal_dac_is_external_reference(const cyhal_dac_t *obj) in _cyhal_dac_is_external_reference()
167 static cy_rslt_t _cyhal_dac_configure_oa0(cyhal_dac_t *obj, bool init) in _cyhal_dac_configure_oa0()
192 static cy_rslt_t _cyhal_dac_configure_oa1(cyhal_dac_t *obj, bool init) in _cyhal_dac_configure_oa1()
219 cy_rslt_t _cyhal_dac_init_hw(cyhal_dac_t *obj, const cy_stc_ctdac_config_t *config) in _cyhal_dac_init_hw()
240 cy_rslt_t cyhal_dac_init(cyhal_dac_t *obj, cyhal_gpio_t pin) in cyhal_dac_init()
364 cy_rslt_t cyhal_dac_init_cfg(cyhal_dac_t *obj, const cyhal_dac_configurator_t *cfg) in cyhal_dac_init_cfg()
381 void cyhal_dac_free(cyhal_dac_t *obj) in cyhal_dac_free()
431 void cyhal_dac_write(const cyhal_dac_t *obj, uint16_t value) in cyhal_dac_write()
437 cy_rslt_t cyhal_dac_write_mv(const cyhal_dac_t *obj, uint16_t value) in cyhal_dac_write_mv()
[all …]
Dcyhal_udb_sdio.c162 cyhal_sdio_t *obj = (cyhal_sdio_t *)callback_arg; in _cyhal_sdio_ds_callback() local
252 cy_rslt_t cyhal_sdio_init(cyhal_sdio_t *obj, cyhal_gpio_t cmd, cyhal_gpio_t clk, cyhal_gpio_t data0… in cyhal_sdio_init()
366 void cyhal_sdio_free(cyhal_sdio_t *obj) in cyhal_sdio_free()
390 cy_rslt_t cyhal_sdio_configure(cyhal_sdio_t *obj, const cyhal_sdio_cfg_t *config) in cyhal_sdio_configure()
411 cy_rslt_t cyhal_sdio_host_send_cmd(cyhal_sdio_t *obj, cyhal_sdio_host_transfer_type_t direction, cy… in cyhal_sdio_host_send_cmd()
463 cy_rslt_t cyhal_sdio_host_bulk_transfer(cyhal_sdio_t *obj, cyhal_sdio_host_transfer_type_t directio… in cyhal_sdio_host_bulk_transfer()
520 cy_rslt_t cyhal_sdio_host_transfer_async(cyhal_sdio_t *obj, cyhal_sdio_host_transfer_type_t directi… in cyhal_sdio_host_transfer_async()
535 bool cyhal_sdio_is_busy(const cyhal_sdio_t *obj) in cyhal_sdio_is_busy()
542 cy_rslt_t cyhal_sdio_abort_async(cyhal_sdio_t *obj) in cyhal_sdio_abort_async()
550 void cyhal_sdio_register_callback(cyhal_sdio_t *obj, cyhal_sdio_event_callback_t callback, void *ca… in cyhal_sdio_register_callback()
[all …]
Dcyhal_ipc.c297 static cy_rslt_t _cyhal_ipc_sema_init(cyhal_ipc_t *obj, uint32_t semaphore_num, bool preemptable) in _cyhal_ipc_sema_init()
340 static cy_rslt_t _cyhal_ipc_sema_take(cyhal_ipc_t *obj, uint32_t *timeout_us, uint32_t step_us) in _cyhal_ipc_sema_take()
451 static cy_rslt_t _cyhal_ipc_acquire_core_sync_sema(cyhal_ipc_t *obj, uint32_t *timeout_us) in _cyhal_ipc_acquire_core_sync_sema()
459 static cy_rslt_t _cyhal_ipc_give_core_sync_sema(cyhal_ipc_t *obj, uint32_t *timeout_us) in _cyhal_ipc_give_core_sync_sema()
482 static cy_rslt_t _cyhal_ipc_clear_interrupt(cyhal_ipc_t *obj, uint32_t isr_source_chan, uint32_t is… in _cyhal_ipc_clear_interrupt()
504 static bool _cyhal_ipc_check_isr_handled(cyhal_ipc_t *obj, uint32_t channel, uint32_t *timeout) in _cyhal_ipc_check_isr_handled()
535 static cy_rslt_t _cyhal_ipc_set_isr_expected(cyhal_ipc_t *obj, uint32_t channel) in _cyhal_ipc_set_isr_expected()
559 static cy_rslt_t _cyhal_ipc_enable_interrupt(cyhal_ipc_t *obj, uint32_t channel, bool enable) in _cyhal_ipc_enable_interrupt()
622 static void _cyhal_ipc_add_queue_element(cyhal_ipc_t *obj, cyhal_ipc_queue_t *queue_handle_to_add) in _cyhal_ipc_add_queue_element()
712 static cy_rslt_t _cyhal_ipc_queue_put_get(cyhal_ipc_t *obj, void *msg, uint32_t timeout_us, bool pu… in _cyhal_ipc_queue_put_get()
[all …]
Dcyhal_ezi2c.c76 cyhal_ezi2c_t *obj = (cyhal_ezi2c_t*) _cyhal_scb_get_irq_obj(irqn); in _cyhal_ezi2c_irq_handler() local
116 cyhal_ezi2c_t *obj = (cyhal_ezi2c_t*)(obj_ptr); in _cyhal_ezi2c_pm_callback_instance() local
142 static cy_rslt_t _cyhal_ezi2c_setup_resources(cyhal_ezi2c_t *obj, cyhal_gpio_t sda, cyhal_gpio_t sc… in _cyhal_ezi2c_setup_resources()
224 static cy_rslt_t _cyhal_ezi2c_init_hw(cyhal_ezi2c_t *obj, const cy_stc_scb_ezi2c_config_t* pdl_cfg) in _cyhal_ezi2c_init_hw()
250 static void _cyhal_ezi2c_setup_and_enable(cyhal_ezi2c_t *obj, const cyhal_ezi2c_slave_cfg_t *slave1… in _cyhal_ezi2c_setup_and_enable()
274 cy_rslt_t cyhal_ezi2c_init(cyhal_ezi2c_t *obj, cyhal_gpio_t sda, cyhal_gpio_t scl, const cyhal_cloc… in cyhal_ezi2c_init()
325 void cyhal_ezi2c_free(cyhal_ezi2c_t *obj) in cyhal_ezi2c_free()
363 cyhal_ezi2c_status_t cyhal_ezi2c_get_activity_status(cyhal_ezi2c_t *obj) in cyhal_ezi2c_get_activity_status()
368 void cyhal_ezi2c_register_callback(cyhal_ezi2c_t *obj, cyhal_ezi2c_event_callback_t callback, void … in cyhal_ezi2c_register_callback()
376 void cyhal_ezi2c_enable_event(cyhal_ezi2c_t *obj, cyhal_ezi2c_status_t event, uint8_t intr_priority… in cyhal_ezi2c_enable_event()
[all …]
Dcyhal_lptimer.c280 cyhal_lptimer_t *obj = _cyhal_lptimer_config_structs[instance]; in _cyhal_lptimer_irq_handler() local
347 static uint32_t _cyhal_lptimer_set_delay_common(cyhal_lptimer_t *obj, uint32_t delay) in _cyhal_lptimer_set_delay_common()
416 static uint32_t _cyhal_lptimer_set_delay_common(cyhal_lptimer_t *obj, uint32_t delay) in _cyhal_lptimer_set_delay_common()
531 cy_rslt_t cyhal_lptimer_init(cyhal_lptimer_t *obj) in cyhal_lptimer_init()
611 void cyhal_lptimer_free(cyhal_lptimer_t *obj) in cyhal_lptimer_free()
642 cy_rslt_t cyhal_lptimer_reload(cyhal_lptimer_t *obj) in cyhal_lptimer_reload()
661 cy_rslt_t cyhal_lptimer_set_match(cyhal_lptimer_t *obj, uint32_t ticks) in cyhal_lptimer_set_match()
675 cy_rslt_t cyhal_lptimer_set_delay(cyhal_lptimer_t *obj, uint32_t delay) in cyhal_lptimer_set_delay()
684 uint32_t cyhal_lptimer_read(const cyhal_lptimer_t *obj) in cyhal_lptimer_read()
701 void cyhal_lptimer_register_callback(cyhal_lptimer_t *obj, cyhal_lptimer_event_callback_t callback,… in cyhal_lptimer_register_callback()
[all …]
Dcyhal_nvm.c394 cy_rslt_t cyhal_nvm_init(cyhal_nvm_t *obj) in cyhal_nvm_init()
432 void cyhal_nvm_free(cyhal_nvm_t *obj) in cyhal_nvm_free()
461 void cyhal_nvm_get_info(cyhal_nvm_t *obj, cyhal_nvm_info_t *info) in cyhal_nvm_get_info()
471 cy_rslt_t cyhal_nvm_read(cyhal_nvm_t *obj, uint32_t address, uint8_t *data, size_t size) in cyhal_nvm_read()
519 cy_rslt_t cyhal_nvm_erase(cyhal_nvm_t *obj, uint32_t address) in cyhal_nvm_erase()
578 cy_rslt_t cyhal_nvm_write(cyhal_nvm_t *obj, uint32_t address, const uint32_t* data) in cyhal_nvm_write()
628 cy_rslt_t cyhal_nvm_otp_write(cyhal_nvm_t* obj, uint32_t address, uint8_t data) in cyhal_nvm_otp_write()
661 cy_rslt_t cyhal_nvm_program(cyhal_nvm_t *obj, uint32_t address, const uint32_t *data) in cyhal_nvm_program()
706 cy_rslt_t cyhal_nvm_start_erase(cyhal_nvm_t *obj, uint32_t address) in cyhal_nvm_start_erase()
762 cy_rslt_t cyhal_nvm_start_write(cyhal_nvm_t *obj, uint32_t address, const uint32_t* data) in cyhal_nvm_start_write()
[all …]
Dcyhal_keyscan.c107 cyhal_keyscan_t *obj = _cyhal_keyscan_config_structs[0]; in _cyhal_keyscan_irq_handler() local
126 cyhal_keyscan_t *obj = _cyhal_keyscan_config_structs[0]; in _cyhal_keyscan_cb_wrapper() local
143 cyhal_keyscan_t *obj = _cyhal_keyscan_config_structs[0]; in _cyhal_keyscan_pm_callback() local
175 static cy_rslt_t _cyhal_keyscan_init_resources(cyhal_keyscan_t *obj, uint8_t num_columns, const cyh… in _cyhal_keyscan_init_resources()
299 static cy_rslt_t _cyhal_keyscan_init_hw(cyhal_keyscan_t *obj, cy_stc_ks_config_t *cfg) in _cyhal_keyscan_init_hw()
338 cy_rslt_t cyhal_keyscan_init(cyhal_keyscan_t *obj, uint8_t num_columns, const cyhal_gpio_t *columns, in cyhal_keyscan_init()
364 cy_rslt_t cyhal_keyscan_init_cfg(cyhal_keyscan_t *obj, const cyhal_keyscan_configurator_t *cfg) in cyhal_keyscan_init_cfg()
389 void cyhal_keyscan_free(cyhal_keyscan_t *obj) in cyhal_keyscan_free()
431 cy_rslt_t cyhal_keyscan_read(cyhal_keyscan_t *obj, uint8_t* count, cyhal_keyscan_action_t* keys) in cyhal_keyscan_read()
470 void cyhal_keyscan_register_callback(cyhal_keyscan_t *obj, cyhal_keyscan_event_callback_t callback,… in cyhal_keyscan_register_callback()
[all …]
/hal_infineon-3.5.0/mtb-hal-cat1/include_pvt/
Dcyhal_i2s_impl.h38 #define cyhal_i2s_free(obj) (_cyhal_audioss_free((_cyhal_audioss_t *)(obj))) argument
40 #define cyhal_i2s_set_sample_rate(obj, sample_rate_hz) \ argument
43 #define cyhal_i2s_enable_event(obj, event, intr_priority, enable) \ argument
46 #define cyhal_i2s_start_tx(obj) _cyhal_audioss_start_tx((_cyhal_audioss_t *)(obj)) argument
47 #define cyhal_i2s_stop_tx(obj) _cyhal_audioss_stop_tx((_cyhal_audioss_t *)(obj)) argument
48 #define cyhal_i2s_clear_tx(obj) _cyhal_audioss_clear_tx((_cyhal_audioss_t *)(obj)) argument
50 #define cyhal_i2s_start_rx(obj) _cyhal_audioss_start_rx((_cyhal_audioss_t *)(obj)) argument
51 #define cyhal_i2s_stop_rx(obj) _cyhal_audioss_stop_rx((_cyhal_audioss_t *)(obj)) argument
52 #define cyhal_i2s_clear_rx(obj) _cyhal_audioss_clear_rx((_cyhal_audioss_t *)(obj)) argument
54 #define cyhal_i2s_read(obj, data, length) \ argument
[all …]
Dcyhal_tdm_impl.h38 #define cyhal_tdm_free(obj) (_cyhal_audioss_free((_cyhal_audioss_t *)(obj))) argument
40 #define cyhal_tdm_set_sample_rate(obj, sample_rate_hz) \ argument
43 #define cyhal_tdm_enable_event(obj, event, intr_priority, enable) \ argument
46 #define cyhal_tdm_start_tx(obj) _cyhal_audioss_start_tx((_cyhal_audioss_t *)(obj)) argument
47 #define cyhal_tdm_stop_tx(obj) _cyhal_audioss_stop_tx((_cyhal_audioss_t *)(obj)) argument
48 #define cyhal_tdm_clear_tx(obj) _cyhal_audioss_clear_tx((_cyhal_audioss_t *)(obj)) argument
50 #define cyhal_tdm_start_rx(obj) _cyhal_audioss_start_rx((_cyhal_audioss_t *)(obj)) argument
51 #define cyhal_tdm_stop_rx(obj) _cyhal_audioss_stop_rx((_cyhal_audioss_t *)(obj)) argument
52 #define cyhal_tdm_clear_rx(obj) _cyhal_audioss_clear_rx((_cyhal_audioss_t *)(obj)) argument
54 #define cyhal_tdm_read(obj, data, length) \ argument
[all …]

123