Searched refs:oa_num (Results 1 – 2 of 2) sorted by relevance
140 __STATIC_INLINE cy_en_ctb_switch_register_sel_t _cyhal_opamp_convert_switch(uint8_t oa_num) in _cyhal_opamp_convert_switch() argument142 CY_ASSERT(oa_num < 2); in _cyhal_opamp_convert_switch()143 return (oa_num == 0) ? CY_CTB_SWITCH_OA0_SW : CY_CTB_SWITCH_OA1_SW; in _cyhal_opamp_convert_switch()152 __STATIC_INLINE cy_en_ctb_opamp_sel_t _cyhal_opamp_convert_switch(uint8_t oa_num) in _cyhal_opamp_convert_switch() argument154 CY_ASSERT(oa_num < 2); in _cyhal_opamp_convert_switch()155 return (oa_num == 0) ? CY_CTB_OPAMP_0 : CY_CTB_OPAMP_1; in _cyhal_opamp_convert_switch()165 __STATIC_INLINE cy_en_ctb_opamp_sel_t _cyhal_opamp_convert_sel(uint8_t oa_num) in _cyhal_opamp_convert_sel() argument167 CY_ASSERT(oa_num < 2); in _cyhal_opamp_convert_sel()168 return (oa_num == 0) ? CY_CTB_OPAMP_0 : CY_CTB_OPAMP_1; in _cyhal_opamp_convert_sel()177 __STATIC_INLINE void _cyhal_opamp_set_isolation_switch(uint8_t oa_num, CTBM_Type *base, bool close) in _cyhal_opamp_set_isolation_switch() argument[all …]
99 for(uint8_t oa_num = 0; oa_num < _CYHAL_OPAMP_PER_CTB; ++oa_num) in _cyhal_ctb_get_interrupt_source() local101 if(Cy_CTB_GetInterruptStatusMasked(ctbm, _cyhal_opamp_convert_sel(oa_num))) in _cyhal_ctb_get_interrupt_source()103 … cyhal_comp_t* inst = _cyhal_comp_ctb_config_structs[(ctb_num * _CYHAL_OPAMP_PER_CTB) + oa_num]; in _cyhal_ctb_get_interrupt_source()