/* Configure DCI CROP mode by configuring the structure.  */
void DCI_ConfigCROP(DCI_CropConfig_T *cropConfig)
/* Configure DCI CROP mode by configuring the structure.  */
void DCI_ConfigCROP(DCI_CropConfig_T *cropConfig)
{
    DCI->CROPWSTAT_B.HOFSCNT   = (uint16_t)cropConfig->horizontalOffsetCount;
    DCI->CROPWSTAT_B.VSLINECNT = (uint16_t)cropConfig->verticalStartLine;
    DCI->CROPWSIZE_B.CCNT     = (uint16_t)cropConfig->captureCount;
    DCI->CROPWSIZE_B.VLINECNT = (uint16_t)cropConfig->verticalLineCount;
}