Lines Matching refs:resource

116     uint32_t edge_config_val = (0u == obj->resource.channel_num)  in _cyhal_comp_ctb_get_enabled_events()
157 Cy_CTB_ClearInterrupt(obj->base_ctb, _cyhal_opamp_convert_sel(obj->resource.channel_num)); in _cyhal_comp_ctb_irq_handler()
181 obj->base_ctb = _cyhal_ctb_base[obj->resource.block_num]; in _cyhal_comp_ctb_init_hw()
182 …cy_rslt_t result = Cy_CTB_OpampInit(obj->base_ctb, _cyhal_opamp_convert_sel(obj->resource.channel_… in _cyhal_comp_ctb_init_hw()
188 …_cyhal_irq_register(_cyhal_ctb_irq_n[obj->resource.block_num], CYHAL_ISR_PRIORITY_DEFAULT, _cyhal_… in _cyhal_comp_ctb_init_hw()
189 _cyhal_irq_enable(_cyhal_ctb_irq_n[obj->resource.block_num]); in _cyhal_comp_ctb_init_hw()
190 …_cyhal_comp_ctb_config_structs[(obj->resource.block_num * _CYHAL_OPAMP_PER_CTB) + obj->resource.ch… in _cyhal_comp_ctb_init_hw()
207 obj->resource.type = CYHAL_RSC_INVALID; in _cyhal_comp_ctb_init()
221 …result = _cyhal_opamp_init_common(&(obj->resource), CYHAL_COMP_RSLT_ERR_INVALID_PIN, vin_p, vin_m,… in _cyhal_comp_ctb_init()
245 …j->base_ctb, _cyhal_opamp_convert_switch(obj->resource.channel_num), _cyhal_opamp_pin_to_mask(obj-… in _cyhal_comp_ctb_init()
246 _cyhal_opamp_set_isolation_switch(obj->resource.channel_num, obj->base_ctb, true); in _cyhal_comp_ctb_init()
276 if(CYHAL_RSC_INVALID != obj->resource.type) in _cyhal_comp_ctb_free()
280 …j->base_ctb, _cyhal_opamp_convert_switch(obj->resource.channel_num), _cyhal_opamp_pin_to_mask(obj-… in _cyhal_comp_ctb_free()
281 _cyhal_opamp_set_isolation_switch(obj->resource.channel_num, obj->base_ctb, false); in _cyhal_comp_ctb_free()
285 …_cyhal_comp_ctb_config_structs[(obj->resource.block_num * _CYHAL_OPAMP_PER_CTB) + obj->resource.ch… in _cyhal_comp_ctb_free()
287 uint8_t ctb_num = obj->resource.block_num; in _cyhal_comp_ctb_free()
292 _cyhal_irq_free(_cyhal_ctb_irq_n[obj->resource.block_num]); in _cyhal_comp_ctb_free()
297 cyhal_hwmgr_free(&(obj->resource)); in _cyhal_comp_ctb_free()
300 obj->resource.type = CYHAL_RSC_INVALID; in _cyhal_comp_ctb_free()
313 …Cy_CTB_SetPower(obj->base_ctb, _cyhal_opamp_convert_sel(obj->resource.channel_num), power_level, _… in _cyhal_comp_ctb_set_power()
325 Cy_CTB_CompSetConfig(obj->base_ctb, _cyhal_opamp_convert_sel(obj->resource.channel_num), in _cyhal_comp_ctb_configure()
332 …cy_rslt_t result = Cy_CTB_OpampInit(obj->base_ctb, _cyhal_opamp_convert_sel(obj->resource.channel_… in _cyhal_comp_ctb_configure()
342 …return (1UL == Cy_CTB_CompGetStatus(obj->base_ctb, _cyhal_opamp_convert_sel(obj->resource.channel_… in _cyhal_comp_ctb_read()
358 _cyhal_system_irq_t irqn = _cyhal_ctb_irq_n[obj->resource.block_num]; in _cyhal_comp_ctb_enable_event()
362 …Cy_CTB_CompSetInterruptEdgeType(obj->base_ctb, _cyhal_opamp_convert_sel(obj->resource.channel_num)… in _cyhal_comp_ctb_enable_event()