Lines Matching refs:CY_ASSERT

370         CY_ASSERT(false); // Should never be called with a non-SAR IRQn  in _cyhal_adc_get_block_from_irqn()
615 CY_ASSERT(obj->resource.block_num < _CYHAL_ADC_SAR_INSTANCES); in _cyhal_adc_calculate_source()
645 CY_ASSERT(pin < sizeof(mux_lookup)/sizeof(mux_lookup[0])); in _cyhal_adc_get_mux_switch_control()
676 CY_ASSERT(pin < sizeof(vplus_lookup)/sizeof(vplus_lookup[0])); in _cyhal_adc_get_fw_switch_control()
696 CY_ASSERT(pin < sizeof(vplus_lookup)/sizeof(vplus_lookup[0])); in _cyhal_adc_get_pin_addr()
726 CY_ASSERT(pin < sizeof(vplus_lookup)/sizeof(vplus_lookup[0])); in _cyhal_adc_get_pin_addr()
745 CY_ASSERT(false); in _cyhal_adc_convert_vref()
791 CY_ASSERT(hal_config->ext_vref_mv > 0); // Should have been error checked already in _cyhal_adc_get_vref_mv()
796 CY_ASSERT(CYHAL_ADC_REF_VDDA == hal_config->vref); in _cyhal_adc_get_vref_mv()
1016 CY_ASSERT(CYHAL_ASYNC_DMA == obj->async_mode); in _cyhal_adc_irq_handler()
1041 CY_ASSERT(CY_RSLT_SUCCESS == result); in _cyhal_adc_irq_handler()
1049 CY_ASSERT(false); // DMA not supported on the current device in _cyhal_adc_irq_handler()
1070 CY_ASSERT(CYHAL_DMA_TRANSFER_COMPLETE == event); in _cyhal_adc_dma_handler()
1073 CY_ASSERT(CYHAL_ASYNC_DMA == obj->async_mode); in _cyhal_adc_dma_handler()
1076 CY_ASSERT(false == obj->async_transfer_in_uv); in _cyhal_adc_dma_handler()
1114 CY_ASSERT(NULL != obj); in _cyhal_adc_config_hw()
1341 CY_ASSERT(CY_RSLT_SUCCESS == rslt); in cyhal_adc_free()
1345 CY_ASSERT(CY_RSLT_SUCCESS == rslt); in cyhal_adc_free()
1400 CY_ASSERT(false); in _cyhal_adc_apply_channel_configs()
1902 CY_ASSERT(clock_period_ns > 0); in _cyhal_adc_compute_actual_sample_rate()
2050 CY_ASSERT(obj != NULL); in cyhal_adc_channel_init_diff()
2051 CY_ASSERT(adc != NULL); in cyhal_adc_channel_init_diff()
2208 CY_ASSERT(NULL != obj); in cyhal_adc_channel_configure()
2416 CY_ASSERT(NULL != obj); in cyhal_adc_read_uv()
2424 CY_ASSERT(NULL == obj->async_buff_next); /* Transfer already in progress */ in _cyhal_adc_start_async_read()
2439 CY_ASSERT(NULL != obj); in cyhal_adc_read_async()
2447 CY_ASSERT(NULL != obj); in cyhal_adc_read_async_uv()
2455 CY_ASSERT(NULL != obj); in cyhal_adc_set_async_mode()
2456 CY_ASSERT(NULL == obj->async_buff_next); /* Can't swap mode while a transfer is running */ in cyhal_adc_set_async_mode()
2495 CY_ASSERT(NULL != obj); in cyhal_adc_register_callback()
2530 CY_ASSERT(block_num < _CYHAL_ADC_SAR_INSTANCES); in _cyhal_adc_calculate_dest()