Lines Matching refs:resource
90 obj->resource = *cfg->resource; in cyhal_comp_init_cfg()
96 if (CYHAL_RSC_LPCOMP == cfg->resource->type) in cyhal_comp_init_cfg()
103 if (CYHAL_RSC_OPAMP == cfg->resource->type) in cyhal_comp_init_cfg()
116 if(obj->resource.type == CYHAL_RSC_OPAMP) in cyhal_comp_free()
125 if(obj->resource.type == CYHAL_RSC_LPCOMP) in cyhal_comp_free()
138 if(obj->resource.type == CYHAL_RSC_OPAMP) in cyhal_comp_set_power()
145 CY_ASSERT(obj->resource.type == CYHAL_RSC_LPCOMP); in cyhal_comp_set_power()
154 if(obj->resource.type == CYHAL_RSC_OPAMP) in cyhal_comp_configure()
161 CY_ASSERT(obj->resource.type == CYHAL_RSC_LPCOMP); in cyhal_comp_configure()
170 if(obj->resource.type == CYHAL_RSC_OPAMP) in cyhal_comp_read()
177 CY_ASSERT(obj->resource.type == CYHAL_RSC_LPCOMP); in cyhal_comp_read()
197 if(obj->resource.type == CYHAL_RSC_OPAMP) in cyhal_comp_enable_event()
205 CY_ASSERT(obj->resource.type == CYHAL_RSC_LPCOMP); in cyhal_comp_enable_event()