// +FHDR------------------------------------------------------------
//                 Copyright (c) 2022 SmartLogic.
//                       ALL RIGHTS RESERVED
// -----------------------------------------------------------------
// Filename      : ecs_rfm_dm_mgt.h
// Author        : xianfeng.du
// Created On    : 2022-06-25
// Last Modified :
// -----------------------------------------------------------------
// Description:
//
//
// -FHDR------------------------------------------------------------

#ifndef __ECS_RFM_DM_MGT_H__
#define __ECS_RFM_DM_MGT_H__

#include "typedef.h"
#include "hw_cpri.h"
#include "cpri_delay.h"
#include "mtimer_com.h"
#include "phy_para.h"
#include "gpio_drv.h"

typedef struct tEcsRfmDmLocalMgt {
#ifdef DISTRIBUTED_BS
	stCpriPara*				pCpriPara;
	stCpriDelayMeasure*		pCpriDelay;
#endif

#ifdef INTEGRATED_BS

#endif
	stGpioOnBoard* 			pGpioInfo;

	stFhAlarmStat*			pAlarmStatus;
	stMtimerPara*			pMtimerPara[MTIMER_MAX_NUM];
    stOamMsgTransferHeader* pOamMsgPtr;
    stCpriSetLinkDelay*     pOamBaseDelaySetRspPtr   ;
    stCpriGetLinkDelay*     pOamBaseDelayQryRspPtr   ;
    stCpriGetRndDelay*      pOamFiberDelayQryRspPtr  ;
} EcsRfmDmLocalMgt_t;

EcsRfmDmLocalMgt_t* get_ecs_rfm_dm_local_mgt(void);

void ecs_rfm_dm_alloc(void);

#endif

