# limitations under the License. #
################################################################################
*******************************************************************************/
-
+#include "common_def.h"
#include "lwr_mac_upr_inf.h"
+/*******************************************************************
+ *
+ * @brief Packs and Sends CRC Ind to MAC
+ *
+ * @details
+ *
+ * Function : packCrcInd
+ *
+ * Functionality:
+ * Packs and Sends CRC Ind to MAC
+ *
+ * @params[in] Post structure pointer
+ * CRC indication
+ * @return ROK - success
+ * RFAILED - failure
+ *
+ * ****************************************************************/
+uint16_t packCrcInd(Pst *pst, CrcInd *crcInd)
+{
+ if((pst->selector == ODU_SELECTOR_LC) || (pst->selector == ODU_SELECTOR_LWLC))
+ {
+ return ROK;
+ }
+ return RFAILED;
+}
+
+/*******************************************************************
+ *
+ * @brief Packs and Sends Rx Data Ind to MAC
+ *
+ * @details
+ *
+ * Function : packRxDataInd
+ *
+ * Functionality:
+ * Packs and Sends Rx data Ind to MAC
+ *
+ * @params[in] Post structure pointer
+ * Rx Data indication
+ * @return ROK - success
+ * RFAILED - failure
+ *
+ * ****************************************************************/
+uint16_t packRxDataInd(Pst *pst, RxDataInd *rxDataInd)
+{
+ if((pst->selector == ODU_SELECTOR_LC) || (pst->selector == ODU_SELECTOR_LWLC))
+ {
+ return ROK;
+ }
+ else
+ {
+ return RFAILED;
+ }
+}
+
+
/*******************************************************************
*
* @brief Packs and Sends RACH Ind to MAC
* ****************************************************************/
uint16_t packRachInd(Pst *pst, RachInd *rachInd)
{
- if((pst->selector == MAC_SELECTOR_LC) || (pst->selector == MAC_SELECTOR_LWLC))
+ if((pst->selector == ODU_SELECTOR_LC) || (pst->selector == ODU_SELECTOR_LWLC))
{
return ROK;
}
- else
- {
- return RFAILED;
- }
+ return RFAILED;
}
/*******************************************************************
return ROK;
}
+/*******************************************************************
+ *
+ * @brief Packs and Sends Stop Ind to MAC
+ *
+ * @details
+ *
+ * Function : packStopInd
+ *
+ * Functionality:
+ * Packs and Sends Stop Ind to MAC
+ *
+ * @params[in] Post structure pointer
+ * @return ROK - success
+ * RFAILED - failure
+ *
+ * ****************************************************************/
+uint16_t packStopInd(Pst *pst)
+{
+ if((pst->selector == ODU_SELECTOR_LC) || (pst->selector == ODU_SELECTOR_LWLC))
+ {
+ return ROK;
+ }
+ else
+ {
+ return RFAILED;
+ }
+}
+
/**********************************************************************
End of file
**********************************************************************/