⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 liuinterface.cpp

📁 基于Nuleus操作系统和s3c4510的编写的EFC。已经包含了该EFC的设计说明。这是个实际产品的代码
💻 CPP
字号:
///////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2003, Ulink Telecom Equipment Co., Ltd. All rights reserved.
//
// File:
//
//    LiuInterface.cpp
//
// Abstract:
//
//    implementation of the CLiuInterface class.
//
// History:
//
//    V1.0	2003-03-31	Alex Duan	Original version.
//    V1.1	2003-11-12	Alex Duan	Replace >>/<< with OnSaveData/OnLoadData
//
///////////////////////////////////////////////////////////////////////////////

#include "LiuInterface.h"
#include "APPCORE.H"

///////////////////////////////////////////////////////////////////////////////
// CLiuInterface

IMPLEMENT_DYNAMIC(CLiuInterface, CInterface)

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CLiuInterface::CLiuInterface()
{
	m_almSetting.dwAll	= -1;
	m_conConfig.dwAll	= -1;
	m_bPrbsTest			= FALSE;
	m_eiInsertion.uAll	= 0;
	memset(&m_ecCounter, 0, sizeof(m_ecCounter));
}

CLiuInterface::~CLiuInterface()
{

}

///////////////////////////////////////////////////////////////////////////////
// Return Value:
//		A value indicating the Loopback mode which is defined in CInterface
// Remarks:
//		Gets current loopback mode of the LIU interface.
int CLiuInterface::GetLoopbackMode() const
{
	return LOOPBACK_OFF;
}

///////////////////////////////////////////////////////////////////////////////
// Parameters:
//		nMode	Loopback mode defined in CInterface class
// Return Value:
//		TRUE if successful, otherwise FALSE.
// Remarks:
//		Sets current loopback mode of the LIU interface
BOOL CLiuInterface::SetLoopbackMode(int nMode)
{
	UNUSED(nMode);
	return FALSE;
}

// load parameters
void CLiuInterface::OnLoadData()
{
	CInterface::OnLoadData();
	LOAD_INT(m_almSetting.dwAll);
	LOAD_INT(m_conConfig.dwAll);
}

// save parameters
void CLiuInterface::OnSaveData()
{
	CInterface::OnSaveData();
	SAVE_INT(m_almSetting.dwAll);
	SAVE_INT(m_conConfig.dwAll);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -