+/*******************************************************************
+*
+* @brief Returns cellCb based on cell ID
+*
+* @details
+*
+* Function : duGetCellCb
+*
+* Functionality: Returns DU APP CellCb based on cell ID
+*
+* @params[in] F1AP_PDU_t ASN decoded F1AP message
+* @return ROK - success
+* RFAILED - failure
+*
+* ****************************************************************/
+uint8_t duGetCellCb(uint16_t cellId, DuCellCb **cellCb)
+{
+ uint8_t cellIdx;
+ for(cellIdx=0; cellIdx<duCb.numActvCells; cellIdx++)
+ {
+ if(duCb.actvCellLst[cellIdx]->cellId == cellId)
+ *cellCb = duCb.actvCellLst[cellIdx];
+ break;
+ }
+
+ if(!*cellCb)
+ {
+ DU_LOG("\nDU APP : Cell Id %d not found in DU APP", cellId);
+ return RFAILED;
+ }
+
+ return ROK;
+}