?? asyinterface.cpp
字號:
///////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2003, Ulink Telecom Equipment Co., Ltd. All rights reserved.
//
// File:
//
// AsyInterface.cpp
//
// Abstract:
//
// implementation of the CAsyInterface class.
//
// History:
//
// V1.0 2003-04-08 Alex Duan Original version.
// V1.1 2003-11-12 Alex Duan Replace >>/<< with OnSaveData/OnLoadData
//
///////////////////////////////////////////////////////////////////////////////
#include "AsyInterface.h"
#include "APPCORE.H"
///////////////////////////////////////////////////////////////////////////////
// CAsyInterface
IMPLEMENT_DYNAMIC(CAsyInterface, CInterface)
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CAsyInterface::CAsyInterface()
{
m_nBaudRate = 9600;
m_uDataBits = 8;
m_uParity = 0;
m_uStopBits = 1;
}
CAsyInterface::~CAsyInterface()
{
}
///////////////////////////////////////////////////////////////////////////////
// Return Value:
// A value indicating the Loopback mode which is defined in CInterface
// Remarks:
// Gets current loopback mode of the ASY interface.
int CAsyInterface::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 ASY interface
BOOL CAsyInterface::SetLoopbackMode(int nMode)
{
UNUSED(nMode);
return FALSE;
}
// load parameters
void CAsyInterface::OnLoadData()
{
CInterface::OnLoadData();
LOAD_INT(m_nBaudRate);
LOAD_INT(m_uDataBits);
LOAD_INT(m_uParity);
LOAD_INT(m_uStopBits);
}
// save parameters
void CAsyInterface::OnSaveData()
{
CInterface::OnSaveData();
SAVE_INT(m_nBaudRate);
SAVE_INT(m_uDataBits);
SAVE_INT(m_uParity);
SAVE_INT(m_uStopBits);
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -