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

📄 snimaclpt.cpp

📁 pc loader for 8051 based microcomputers
💻 CPP
字号:
// SnimacLPT.cpp: implementation of the CSnimacLPT class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "SnimacLPT.h"

#include "../PL3000/I2CComm.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

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

CSnimacLPT::CSnimacLPT(CI2CComm* pI2Ckomunikator)
: pI2Ckomunikator_m(pI2Ckomunikator)
{
}

CSnimacLPT::~CSnimacLPT()
{
}

bool CSnimacLPT::Start(std::string& opis)
{
    // Pripremi sve sto je potrebo za kesiranje
    opsegAdresa.Reset();
    pI2Ckomunikator_m->Reset();

    return true;
}

void CSnimacLPT::SnimiSledeciBajt(PRG::tBajt bajt, PRG::tAdresa adresa)
{
    if (!opsegAdresa.Prazan()) {
        if (!pI2Ckomunikator_m->PosaljiBajt(bajt, adresa, opsegAdresa.ZavrsnaAdresa())) {
            throw CSnimacException(pI2Ckomunikator_m->OpisGreske());
        }
    }
}

bool CSnimacLPT::Stop(std::string& opis)
{
    return true;
}

⌨️ 快捷键说明

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