*******************************************************************************/
#include "common_def.h"
-#include "ss_queue.h"
-#include "ss_task.h"
-#include "ss_msg.h"
-#include "du_cfg.h"
#include "du_app_mac_inf.h"
/**************************************************************************
* RFAILED - failure
*
***************************************************************************/
-int packMacCellCfg(Pst *pst, MacCellCfg *macCellCfg)
+uint8_t packMacCellCfg(Pst *pst, MacCellCfg *macCellCfg)
{
if(pst->selector == ODU_SELECTOR_LC)
{
* RFAILED - failure
*
***************************************************************************/
-int unpackDuMacCellCfg(
- DuMacCellCfgReq func,
- Pst *pst,
- Buffer *mBuf)
+uint8_t unpackDuMacCellCfg(DuMacCellCfgReq func, Pst *pst, Buffer *mBuf)
{
U16 ret = ROK;
MacCellCfg *macCellCfg;
* RFAILED - failure
*
***************************************************************************/
-int packMacCellCfgCfm(Pst *pst, MacCellCfgCfm *macCellCfgCfm)
+uint8_t packMacCellCfgCfm(Pst *pst, MacCellCfgCfm *macCellCfgCfm)
{
if(pst->selector == ODU_SELECTOR_LC)
{
* RFAILED - failure
*
***************************************************************************/
-int unpackMacCellCfgCfm(
- DuMacCellCfgCfm func,
- Pst *pst,
- Buffer *mBuf)
+uint8_t unpackMacCellCfgCfm(DuMacCellCfgCfm func, Pst *pst, Buffer *mBuf)
{
MacCellCfgCfm macCellCfgCfm;
* RFAILED - failure
*
* ****************************************************************/
-uint16_t packMacCellStartReq(Pst *pst, MacCellStartInfo *cellStartInfo)
+uint8_t packMacCellStartReq(Pst *pst, MacCellStartInfo *cellStartInfo)
{
Buffer *mBuf = NULLP;
* RFAILED - failure
*
* ****************************************************************/
-uint16_t unpackMacCellStartReq(DuMacCellStartReq func, Pst *pst, Buffer *mBuf)
+uint8_t unpackMacCellStartReq(DuMacCellStartReq func, Pst *pst, Buffer *mBuf)
{
MacCellStartInfo *cellStartInfo;
* RFAILED - failure
*
* ****************************************************************/
-uint16_t packMacCellStopReq(Pst *pst, MacCellStopInfo *cellStopInfo)
+uint8_t packMacCellStopReq(Pst *pst, MacCellStopInfo *cellStopInfo)
{
if(pst->selector == ODU_SELECTOR_LC)
{
* RFAILED - failure
*
* ****************************************************************/
-uint16_t unpackMacCellStopReq(DuMacCellStopReq func, Pst *pst, Buffer *mBuf)
+uint8_t unpackMacCellStopReq(DuMacCellStopReq func, Pst *pst, Buffer *mBuf)
{
MacCellStopInfo *cellStopInfo;
* RFAILED - failure
*
* ****************************************************************/
-uint16_t packMacSlotInd(Pst *pst, SlotInfo *slotInfo )
+uint8_t packMacSlotInd(Pst *pst, SlotIndInfo *slotInfo )
{
Buffer *mBuf = NULLP;
CMCHKPK(SPkU16, slotInfo->sfn, mBuf);
CMCHKPK(SPkU16, slotInfo->slot, mBuf);
- CM_FREE_SHRABL_BUF(pst->region, pst->pool, slotInfo, sizeof(SlotInfo));
+ CM_FREE_SHRABL_BUF(pst->region, pst->pool, slotInfo, sizeof(SlotIndInfo));
slotInfo = NULL;
}
else if(pst->selector == ODU_SELECTOR_LWLC)
* RFAILED - failure
*
* ****************************************************************/
-uint16_t unpackMacSlotInd(DuMacSlotInd func, Pst *pst, Buffer *mBuf)
+uint8_t unpackMacSlotInd(DuMacSlotInd func, Pst *pst, Buffer *mBuf)
{
if(pst->selector == ODU_SELECTOR_LWLC)
{
- SlotInfo *slotInfo;
+ SlotIndInfo *slotInfo;
/* unpack the address of the structure */
CMCHKUNPK(cmUnpkPtr, (PTR *)&slotInfo, mBuf);
}
else if(pst->selector == ODU_SELECTOR_LC)
{
- SlotInfo slotInfo;
+ SlotIndInfo slotInfo;
CMCHKUNPK(SUnpkU16, &(slotInfo.slot), mBuf);
CMCHKUNPK(SUnpkU16, &(slotInfo.sfn), mBuf);
* RFAILED - failure
*
* ****************************************************************/
-uint16_t packMacStopInd(Pst *pst, MacCellStopInfo *cellStopId)
+uint8_t packMacStopInd(Pst *pst, MacCellStopInfo *cellStopId)
{
Buffer *mBuf = NULLP;
* RFAILED - failure
*
* ****************************************************************/
-uint16_t unpackMacStopInd(DuMacStopInd func, Pst *pst, Buffer *mBuf)
+uint8_t unpackMacStopInd(DuMacStopInd func, Pst *pst, Buffer *mBuf)
{
if(pst->selector == ODU_SELECTOR_LWLC)
{
* RFAILED - failure
*
* ****************************************************************/
-uint16_t packMacUlCcchInd(Pst *pst, UlCcchIndInfo *ulCcchIndInfo)
+uint8_t packMacUlCcchInd(Pst *pst, UlCcchIndInfo *ulCcchIndInfo)
{
Buffer *mBuf = NULLP;
* RFAILED - failure
*
* ****************************************************************/
-uint16_t unpackMacUlCcchInd(DuMacUlCcchInd func, Pst *pst, Buffer *mBuf)
+uint8_t unpackMacUlCcchInd(DuMacUlCcchInd func, Pst *pst, Buffer *mBuf)
{
if(pst->selector == ODU_SELECTOR_LWLC)
{
* RFAILED - failure
*
* ****************************************************************/
-uint16_t packMacDlCcchInd(Pst *pst, DlCcchIndInfo *dlCcchIndInfo)
+uint8_t packMacDlCcchInd(Pst *pst, DlCcchIndInfo *dlCcchIndInfo)
{
Buffer *mBuf = NULLP;
* RFAILED - failure
*
* ****************************************************************/
-uint16_t unpackMacDlCcchInd(DuMacDlCcchInd func, Pst *pst, Buffer *mBuf)
+uint8_t unpackMacDlCcchInd(DuMacDlCcchInd func, Pst *pst, Buffer *mBuf)
{
if(pst->selector == ODU_SELECTOR_LWLC)
{