Int32 AlgLink_scdAlgDelete(AlgLink_ScdObj * pObj) { Int32 status; status = SCD_close(&pObj->algObj); UTILS_assert(status==FVID2_SOK); AlgLink_scdAlgChDelete(pObj); AlgLink_scdAlgFreeMem(pObj); return FVID2_SOK; }
Int32 AlgLink_scdAlgDelete(AlgLink_ScdObj * pObj) { Int32 status; AlgLink_scdAlgProcessTskSendCmd(pObj, SYSTEM_CMD_STOP); status = Utils_queDelete(&pObj->processQ); UTILS_assert(status==FVID2_SOK); status = Utils_dmaDeleteCh(&pObj->dmaCh); UTILS_assert(status==FVID2_SOK); status = SCD_close(&pObj->algObj); UTILS_assert(status==FVID2_SOK); AlgLink_scdAlgChDelete(pObj); AlgLink_scdAlgFreeMem(pObj); return FVID2_SOK; }