Home
last modified time | relevance | path

Searched refs:regionIdx (Results 1 – 2 of 2) sorted by relevance

/hal_nxp-2.7.6/mcux/drivers/imx/
Dfsl_dcic.h283 void DCIC_EnableRegion(DCIC_Type *base, uint8_t regionIdx, const dcic_region_config_t *config);
291 static inline void DCIC_DisableRegion(DCIC_Type *base, uint8_t regionIdx) in DCIC_DisableRegion() argument
293 assert(regionIdx < DCIC_REGION_COUNT); in DCIC_DisableRegion()
295 base->REGION[regionIdx].DCICRC &= ~DCIC_DCICRC_ROI_EN_MASK; in DCIC_DisableRegion()
305 static inline void DCIC_SetRegionRefCrc(DCIC_Type *base, uint8_t regionIdx, uint32_t crc) in DCIC_SetRegionRefCrc() argument
307 assert(regionIdx < DCIC_REGION_COUNT); in DCIC_SetRegionRefCrc()
309 base->REGION[regionIdx].DCICRRS = crc; in DCIC_SetRegionRefCrc()
319 static inline uint32_t DCIC_GetRegionCalculatedCrc(DCIC_Type *base, uint8_t regionIdx) in DCIC_GetRegionCalculatedCrc() argument
321 assert(regionIdx < DCIC_REGION_COUNT); in DCIC_GetRegionCalculatedCrc()
323 return base->REGION[regionIdx].DCICRCS; in DCIC_GetRegionCalculatedCrc()
Dfsl_dcic.c159 void DCIC_EnableRegion(DCIC_Type *base, uint8_t regionIdx, const dcic_region_config_t *config) in DCIC_EnableRegion() argument
161 assert(regionIdx < DCIC_REGION_COUNT); in DCIC_EnableRegion()
164 base->REGION[regionIdx].DCICRRS = config->refCrc; in DCIC_EnableRegion()
166 …base->REGION[regionIdx].DCICRS = (((uint32_t)config->lowerRightX << DCIC_DCICRS_END_OFFSET_X_SHIFT… in DCIC_EnableRegion()
169 …base->REGION[regionIdx].DCICRC = (((uint32_t)config->upperLeftX << DCIC_DCICRC_START_OFFSET_X_SHIF… in DCIC_EnableRegion()