use Q_FUNC_INFO instead of __PRETTY_FUNCTION__
This commit is contained in:
parent
945380e685
commit
979d1545f3
@ -124,7 +124,7 @@ int At250Bus::WaitEndOfWrite(int timeout) // 07/08/99
|
||||
|
||||
int At250Bus::Reset(void)
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__;
|
||||
qDebug() << Q_FUNC_INFO;
|
||||
|
||||
SPIBus::Reset();
|
||||
ShotDelay();
|
||||
@ -137,7 +137,7 @@ int At250Bus::Reset(void)
|
||||
|
||||
long At250Bus::Read(int addr, uint8_t *data, long length, int page_size)
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__ << "(" << (hex) << addr << ", " << data << ", " << (dec) << length << ")";
|
||||
qDebug() << Q_FUNC_INFO << "(" << (hex) << addr << ", " << data << ", " << (dec) << length << ")";
|
||||
|
||||
long len;
|
||||
|
||||
@ -159,7 +159,7 @@ long At250Bus::Read(int addr, uint8_t *data, long length, int page_size)
|
||||
|
||||
ReadEnd();
|
||||
|
||||
qDebug() << __PRETTY_FUNCTION__ << "=" << len;
|
||||
qDebug() << Q_FUNC_INFO << "=" << len;
|
||||
|
||||
return len;
|
||||
}
|
||||
|
@ -36,12 +36,12 @@
|
||||
At250BigBus::At250BigBus(BusInterface *ptr)
|
||||
: At250Bus(ptr)
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__ << "(" << (hex) << ptr << (dec) << ")";
|
||||
qDebug() << Q_FUNC_INFO << "(" << (hex) << ptr << (dec) << ")";
|
||||
}
|
||||
|
||||
long At250BigBus::Read(int addr, uint8_t *data, long length, int page_size)
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__ << "(" << (hex) << addr << ", " << data << ", " << (dec) << length << ")";
|
||||
qDebug() << Q_FUNC_INFO << "(" << (hex) << addr << ", " << data << ", " << (dec) << length << ")";
|
||||
ReadStart();
|
||||
|
||||
long len;
|
||||
@ -69,7 +69,7 @@ long At250BigBus::Read(int addr, uint8_t *data, long length, int page_size)
|
||||
EndCycle();
|
||||
|
||||
ReadEnd();
|
||||
qDebug() << __PRETTY_FUNCTION__ << "=" << len;
|
||||
qDebug() << Q_FUNC_INFO << "=" << len;
|
||||
|
||||
return len;
|
||||
}
|
||||
|
@ -98,7 +98,7 @@ void At89sBus::SetDelay()
|
||||
Q_CHECK_PTR(busI);
|
||||
busI->SetDelay(n);
|
||||
|
||||
qDebug() << __PRETTY_FUNCTION__ << "=" << n;
|
||||
qDebug() << Q_FUNC_INFO << "=" << n;
|
||||
}
|
||||
|
||||
int At89sBus::ReadDataByte(long addr)
|
||||
|
@ -63,7 +63,7 @@ At90sBus::At90sBus(BusInterface *ptr)
|
||||
old1200mode(false),
|
||||
enable_flashpage_polling(false)
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__;
|
||||
qDebug() << Q_FUNC_INFO;
|
||||
|
||||
//With this values the AVR can be programmed even at low voltage (3.2V)
|
||||
twd_erase = 30;
|
||||
@ -145,7 +145,7 @@ int At90sBus::Reset()
|
||||
{
|
||||
bool success_flag = false;
|
||||
|
||||
qDebug() << __PRETTY_FUNCTION__ << "I";
|
||||
qDebug() << Q_FUNC_INFO << "I";
|
||||
|
||||
RefreshParameters();
|
||||
|
||||
@ -159,7 +159,7 @@ int At90sBus::Reset()
|
||||
|
||||
WaitMsec(E2Profile::GetAVRDelayAfterReset()); // At least 20msec (AVR datasheets)
|
||||
|
||||
qDebug() << __PRETTY_FUNCTION__ << "() ** SendDataByte";
|
||||
qDebug() << Q_FUNC_INFO << "() ** SendDataByte";
|
||||
|
||||
SendDataByte(EnableProg0);
|
||||
SendDataByte(EnableProg1);
|
||||
@ -184,7 +184,7 @@ int At90sBus::Reset()
|
||||
|
||||
for (int k = 0; k < 32 && !success_flag; k++)
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__ << "() ** SendEnableProg";
|
||||
qDebug() << Q_FUNC_INFO << "() ** SendEnableProg";
|
||||
|
||||
SendDataByte(EnableProg0);
|
||||
SendDataByte(EnableProg1);
|
||||
|
@ -49,7 +49,7 @@ At93cBus::At93cBus(BusInterface *ptr)
|
||||
address_len(6), //9346
|
||||
organization(ORG16)
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__;
|
||||
qDebug() << Q_FUNC_INFO;
|
||||
}
|
||||
|
||||
int At93cBus::Erase(int type)
|
||||
@ -180,7 +180,7 @@ long At93cBus::Read(int addr, uint8_t *data, long length, int page_size)
|
||||
|
||||
ReadEnd();
|
||||
|
||||
qDebug() << __PRETTY_FUNCTION__ << "=" << len;
|
||||
qDebug() << Q_FUNC_INFO << "=" << len;
|
||||
|
||||
return len;
|
||||
}
|
||||
|
@ -73,19 +73,19 @@ class BusInterface
|
||||
|
||||
virtual int TestOpen(int port)
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__ << "(" << port << ") IN";
|
||||
qDebug() << Q_FUNC_INFO << "(" << port << ") IN";
|
||||
|
||||
int ret_val = TestSave(port);
|
||||
|
||||
TestRestore();
|
||||
|
||||
qDebug() << __PRETTY_FUNCTION__ << "=" << ret_val << " OUT";
|
||||
qDebug() << Q_FUNC_INFO << "=" << ret_val << " OUT";
|
||||
|
||||
return ret_val;
|
||||
}
|
||||
virtual int TestPort(int port)
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__ << "(" << port << ") IN";
|
||||
qDebug() << Q_FUNC_INFO << "(" << port << ") IN";
|
||||
|
||||
return TestOpen(port);
|
||||
}
|
||||
@ -93,7 +93,7 @@ class BusInterface
|
||||
{
|
||||
int ret_val;
|
||||
|
||||
qDebug() << __PRETTY_FUNCTION__ << "(" << port << ") IN";
|
||||
qDebug() << Q_FUNC_INFO << "(" << port << ") IN";
|
||||
|
||||
old_portno = installed;
|
||||
|
||||
@ -103,13 +103,13 @@ class BusInterface
|
||||
{
|
||||
}
|
||||
|
||||
qDebug() << __PRETTY_FUNCTION__ << "=" << ret_val << " OUT";
|
||||
qDebug() << Q_FUNC_INFO << "=" << ret_val << " OUT";
|
||||
|
||||
return ret_val;
|
||||
}
|
||||
virtual void TestRestore()
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__ << "IN *** Inst=" << installed;
|
||||
qDebug() << Q_FUNC_INFO << "IN *** Inst=" << installed;
|
||||
|
||||
if (IsInstalled())
|
||||
{
|
||||
@ -122,7 +122,7 @@ class BusInterface
|
||||
old_portno = -1;
|
||||
}
|
||||
|
||||
qDebug() << __PRETTY_FUNCTION__ << "OUT";
|
||||
qDebug() << Q_FUNC_INFO << "OUT";
|
||||
}
|
||||
|
||||
virtual int SetPower(bool onoff)
|
||||
|
@ -49,7 +49,7 @@ e2App::e2App() :
|
||||
port_number(0)
|
||||
{
|
||||
// Constructor
|
||||
qDebug() << __PRETTY_FUNCTION__;
|
||||
qDebug() << Q_FUNC_INFO;
|
||||
|
||||
// awinfo = 0;
|
||||
|
||||
@ -93,7 +93,7 @@ e2App::e2App() :
|
||||
|
||||
e2App::~e2App()
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__;
|
||||
qDebug() << Q_FUNC_INFO;
|
||||
}
|
||||
|
||||
|
||||
@ -181,7 +181,7 @@ void e2App::initSettings()
|
||||
//=====================>>> e2App::OpenPort <<<==============================
|
||||
int e2App::OpenPort(int port)
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__ << "(" << port << ")";
|
||||
qDebug() << Q_FUNC_INFO << "(" << port << ")";
|
||||
|
||||
if (port >= 0)
|
||||
{
|
||||
@ -196,20 +196,20 @@ int e2App::OpenPort(int port)
|
||||
//=====================>>> e2App::ClosePort <<<==============================
|
||||
void e2App::ClosePort()
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__ << " iniBus=" << (hex) << iniBus << (dec);
|
||||
qDebug() << Q_FUNC_INFO << " iniBus=" << (hex) << iniBus << (dec);
|
||||
iniBus->Close();
|
||||
}
|
||||
|
||||
//=====================>>> e2App::TestPort <<<==============================
|
||||
int e2App::TestPort(int port, bool open_only)
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__ << "(port=" << port << ", open_only=" << open_only << ")";
|
||||
qDebug() << Q_FUNC_INFO << "(port=" << port << ", open_only=" << open_only << ")";
|
||||
|
||||
int rv = (open_only) ?
|
||||
busIntp->TestOpen(port) :
|
||||
busIntp->TestPort(port);
|
||||
|
||||
qDebug() << __PRETTY_FUNCTION__ << " = " << rv;
|
||||
qDebug() << Q_FUNC_INFO << " = " << rv;
|
||||
|
||||
return rv;
|
||||
}
|
||||
@ -217,32 +217,32 @@ int e2App::TestPort(int port, bool open_only)
|
||||
//=====================>>> e2App::OpenBus <<<==============================
|
||||
int e2App::OpenBus(BusIO *p)
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__ << "(" << (hex) << p << (dec) << ")";
|
||||
qDebug() << Q_FUNC_INFO << "(" << (hex) << p << (dec) << ")";
|
||||
|
||||
iniBus->Close();
|
||||
|
||||
qDebug() << __PRETTY_FUNCTION__ << " ** Close";
|
||||
qDebug() << Q_FUNC_INFO << " ** Close";
|
||||
|
||||
iniBus = p;
|
||||
int rv = iniBus->Open(GetPort());
|
||||
|
||||
qDebug() << __PRETTY_FUNCTION__ << " ** Open = " << rv;
|
||||
qDebug() << Q_FUNC_INFO << " ** Open = " << rv;
|
||||
|
||||
if (rv == OK)
|
||||
{
|
||||
rv = busIntp->SetPower(true);
|
||||
|
||||
qDebug() << __PRETTY_FUNCTION__ << " ** SetPower";
|
||||
qDebug() << Q_FUNC_INFO << " ** SetPower";
|
||||
|
||||
//Power up delay
|
||||
busIntp->WaitMsec(E2Profile::GetPowerUpDelay());
|
||||
|
||||
qDebug() << __PRETTY_FUNCTION__ << " ** Reset";
|
||||
qDebug() << Q_FUNC_INFO << " ** Reset";
|
||||
|
||||
iniBus->Reset(); //28/10/98
|
||||
}
|
||||
|
||||
qDebug() << __PRETTY_FUNCTION__ << " = " << rv;
|
||||
qDebug() << Q_FUNC_INFO << " = " << rv;
|
||||
|
||||
return rv;
|
||||
}
|
||||
@ -250,7 +250,7 @@ int e2App::OpenBus(BusIO *p)
|
||||
//=====================>>> e2App::SleepBus <<<==============================
|
||||
void e2App::SleepBus()
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__ << " iniBus=" << (hex) << iniBus << (dec);
|
||||
qDebug() << Q_FUNC_INFO << " iniBus=" << (hex) << iniBus << (dec);
|
||||
|
||||
busIntp->WaitMsec(5); // 08/04/98 -- power hold time
|
||||
busIntp->SetPower(false);
|
||||
@ -320,7 +320,7 @@ vWindow *e2App::NewAppWin(vWindow *win, char *name,
|
||||
|
||||
int e2App::Calibration()
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__;
|
||||
qDebug() << Q_FUNC_INFO;
|
||||
|
||||
int rv = OK;
|
||||
// OpenBus(&iicB); //aggiunto il 06/03/98
|
||||
|
@ -97,7 +97,7 @@ e2CmdWindow::e2CmdWindow(QWidget *parent) :
|
||||
|
||||
setupUi(this);
|
||||
|
||||
qDebug() << __PRETTY_FUNCTION__ << "(" APP_NAME ")";
|
||||
qDebug() << Q_FUNC_INFO << "(" APP_NAME ")";
|
||||
|
||||
cbxEEPType = NULL;
|
||||
cbxEEPSubType = NULL;
|
||||
@ -299,7 +299,7 @@ e2CmdWindow::e2CmdWindow(QWidget *parent) :
|
||||
|
||||
e2CmdWindow::~e2CmdWindow()
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__;
|
||||
qDebug() << Q_FUNC_INFO;
|
||||
|
||||
// Now put a delete for each new in the constructor.
|
||||
|
||||
@ -549,7 +549,7 @@ void e2CmdWindow::setLang(QAction *mnu)
|
||||
lngStr = lngStr.remove(QChar('&'));
|
||||
lngStr = lngStr.toLower();
|
||||
|
||||
qDebug() << __PRETTY_FUNCTION__ << " lang: " << lngStr;
|
||||
qDebug() << Q_FUNC_INFO << " lang: " << lngStr;
|
||||
|
||||
E2Profile::SetCurrentLang(lngStr);
|
||||
|
||||
@ -666,7 +666,7 @@ bool e2CmdWindow::getLangTable()
|
||||
return false;
|
||||
}
|
||||
|
||||
qDebug() << __PRETTY_FUNCTION__ << " " << fileLang;
|
||||
qDebug() << Q_FUNC_INFO << " " << fileLang;
|
||||
|
||||
if (QFile::exists(E2Profile::GetLangDir() + "/" + fileLang) == false)
|
||||
{
|
||||
@ -1329,7 +1329,7 @@ void e2CmdWindow::selectTypeSubtype(const QString &tp, const QString &subtp)
|
||||
QString st_tmp = subtp;
|
||||
st_tmp.remove(QChar('&'));
|
||||
|
||||
//qDebug() << __PRETTY_FUNCTION__ << " " << t_tmp << st_tmp << currentMenu->title;
|
||||
//qDebug() << Q_FUNC_INFO << " " << t_tmp << st_tmp << currentMenu->title;
|
||||
//bool rebuildSubmenu = true;
|
||||
|
||||
if (currentMenu == NULL || currentMenu->title != t_tmp || cbxEEPSubType->count() == 0) // update the type combobox
|
||||
@ -6265,7 +6265,7 @@ void e2CmdWindow::Draw()
|
||||
qbuf->setData(reinterpret_cast<char *>(awip->GetBufPtr()), awip->GetSplittedInfo());
|
||||
e2HexEdit->setData(*qbuf);
|
||||
|
||||
qDebug() << __PRETTY_FUNCTION__ << "Datalen: " << e2HexEdit->data().length() << " Splitted: " << awip->GetSplittedInfo() << " Size: " << awip->GetSize();
|
||||
qDebug() << Q_FUNC_INFO << "Datalen: " << e2HexEdit->data().length() << " Splitted: " << awip->GetSplittedInfo() << " Size: " << awip->GetSize();
|
||||
|
||||
char *ptr = reinterpret_cast<char *>(awip->GetBufPtr());
|
||||
long ofst = awip->GetSplittedInfo();
|
||||
@ -6276,7 +6276,7 @@ void e2CmdWindow::Draw()
|
||||
e2HexEditSplit->setData(*qbufSplit);
|
||||
e2HexEditSplit->show();
|
||||
|
||||
qDebug() << __PRETTY_FUNCTION__ << "Datalen: " << e2HexEditSplit->data().length() << " Offset: " << ofst << " Len: " << len;
|
||||
qDebug() << Q_FUNC_INFO << "Datalen: " << e2HexEditSplit->data().length() << " Offset: " << ofst << " Len: " << len;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -6520,7 +6520,7 @@ void e2CmdWindow::SetProgress(int progress)
|
||||
|
||||
void e2CmdWindow::SetAppBusy()
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__;
|
||||
qDebug() << Q_FUNC_INFO;
|
||||
app_status = AppBusy;
|
||||
// EK 2017
|
||||
// TODO
|
||||
@ -6529,7 +6529,7 @@ void e2CmdWindow::SetAppBusy()
|
||||
|
||||
void e2CmdWindow::SetAppReady()
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__;
|
||||
qDebug() << Q_FUNC_INFO;
|
||||
app_status = AppReady;
|
||||
// EK 2017
|
||||
// TODO
|
||||
@ -6538,7 +6538,7 @@ void e2CmdWindow::SetAppReady()
|
||||
|
||||
void e2CmdWindow::Exit()
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__;
|
||||
qDebug() << Q_FUNC_INFO;
|
||||
|
||||
if (!IsAppReady())
|
||||
{
|
||||
|
@ -720,7 +720,7 @@ void e2Dialog::on_cbxInterfUSBNum_currentIndexChanged(int index)
|
||||
if (index >= 0)
|
||||
{
|
||||
port_no = usb_no = index;
|
||||
qDebug() << __PRETTY_FUNCTION__ << "Selected USB port " << port_no;
|
||||
qDebug() << Q_FUNC_INFO << "Selected USB port " << port_no;
|
||||
}
|
||||
}
|
||||
|
||||
@ -729,13 +729,13 @@ void e2Dialog::on_cbxInterfGPIONum_currentIndexChanged(int index)
|
||||
if (index >= 0)
|
||||
{
|
||||
port_no = gpio_no = index;
|
||||
qDebug() << __PRETTY_FUNCTION__ << "Selected GPIO port " << port_no;
|
||||
qDebug() << Q_FUNC_INFO << "Selected GPIO port " << port_no;
|
||||
}
|
||||
}
|
||||
|
||||
void e2Dialog::onUSB(bool connected, quint16 vid, quint16 pid)
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__ << " " << connected << " " << vid << " " << pid;
|
||||
qDebug() << Q_FUNC_INFO << " " << connected << " " << vid << " " << pid;
|
||||
|
||||
usbList.clear();
|
||||
usbList = MpsseInterface::find_all(usb_vp.vid, usb_vp.pid);
|
||||
@ -757,7 +757,7 @@ void e2Dialog::on_pushDefaultsUSB_clicked()
|
||||
InterfPins dpins; //default pins
|
||||
if (!TypeToInterfPins(interf_type, dpins))
|
||||
{
|
||||
qWarning() << __PRETTY_FUNCTION__ << " TypeToInterfPins(" << interf_type << ") Failed";
|
||||
qWarning() << Q_FUNC_INFO << " TypeToInterfPins(" << interf_type << ") Failed";
|
||||
}
|
||||
cbxClockOutUSB->setCurrentIndex(dpins.clock);
|
||||
cbxControlOutUSB->setCurrentIndex(dpins.ctrl);
|
||||
@ -803,7 +803,7 @@ void e2Dialog::on_pushDefaultsGPIO_clicked()
|
||||
InterfPins dpins; //default pins
|
||||
if (!TypeToInterfPins(interf_type, dpins))
|
||||
{
|
||||
qWarning() << __PRETTY_FUNCTION__ << " TypeToInterfPins(" << interf_type << ") Failed";
|
||||
qWarning() << Q_FUNC_INFO << " TypeToInterfPins(" << interf_type << ") Failed";
|
||||
}
|
||||
cbxClockOutGPIO->setCurrentIndex(dpins.clock);
|
||||
cbxControlOutGPIO->setCurrentIndex(dpins.ctrl);
|
||||
|
@ -152,7 +152,7 @@ int I2CBus::SendStop()
|
||||
|
||||
if (k == 0)
|
||||
{
|
||||
qWarning() << __PRETTY_FUNCTION__ << "*** SCL error";
|
||||
qWarning() << Q_FUNC_INFO << "*** SCL error";
|
||||
return IICERR_SCLCONFLICT;
|
||||
}
|
||||
}
|
||||
@ -165,7 +165,7 @@ int I2CBus::SendStop()
|
||||
|
||||
if (getSDA() == 0)
|
||||
{
|
||||
qWarning() << __PRETTY_FUNCTION__ << "*** SDA error";
|
||||
qWarning() << Q_FUNC_INFO << "*** SDA error";
|
||||
return IICERR_SDACONFLICT;
|
||||
}
|
||||
|
||||
@ -292,14 +292,14 @@ void I2CBus::SetDelay()
|
||||
Q_CHECK_PTR(busI);
|
||||
busI->SetDelay(n);
|
||||
|
||||
qDebug() << __PRETTY_FUNCTION__ << "=" << n;
|
||||
qDebug() << Q_FUNC_INFO << "=" << n;
|
||||
}
|
||||
|
||||
long I2CBus::Read(int slave, uint8_t *data, long length, int page_size)
|
||||
{
|
||||
long len;
|
||||
|
||||
//qDebug() << __PRETTY_FUNCTION__ << "(" << (hex) << slave << "," << (void *)data << "," << (dec) << length << ") - IN";
|
||||
//qDebug() << Q_FUNC_INFO << "(" << (hex) << slave << "," << (void *)data << "," << (dec) << length << ") - IN";
|
||||
len = StartRead(slave, data, length);
|
||||
|
||||
if (len == length)
|
||||
@ -308,7 +308,7 @@ long I2CBus::Read(int slave, uint8_t *data, long length, int page_size)
|
||||
len = 0;
|
||||
}
|
||||
|
||||
//qDebug() << __PRETTY_FUNCTION__ << "=" << len << ", err_no =" << err_no << " - OUT";
|
||||
//qDebug() << Q_FUNC_INFO << "=" << len << ", err_no =" << err_no << " - OUT";
|
||||
|
||||
return len;
|
||||
}
|
||||
@ -317,7 +317,7 @@ long I2CBus::Write(int slave, uint8_t const *data, long length, int page_size)
|
||||
{
|
||||
long len;
|
||||
|
||||
//qDebug() << __PRETTY_FUNCTION__ << "(" << (hex) << slave << "," << data << "," << (dec) << length << ") - IN";
|
||||
//qDebug() << Q_FUNC_INFO << "(" << (hex) << slave << "," << data << "," << (dec) << length << ") - IN";
|
||||
|
||||
len = StartWrite(slave, data, length);
|
||||
|
||||
@ -327,7 +327,7 @@ long I2CBus::Write(int slave, uint8_t const *data, long length, int page_size)
|
||||
len = 0;
|
||||
}
|
||||
|
||||
//qDebug() << __PRETTY_FUNCTION__ << "=" << len << ", err_no =" << err_no << " - OUT";
|
||||
//qDebug() << Q_FUNC_INFO << "=" << len << ", err_no =" << err_no << " - OUT";
|
||||
|
||||
return len;
|
||||
}
|
||||
@ -363,7 +363,7 @@ long I2CBus::StartRead(uint8_t slave, uint8_t *data, long length)
|
||||
int temp;
|
||||
long len = length;
|
||||
|
||||
//qDebug() << __PRETTY_FUNCTION__ << "(" << (hex) << slave << "," << data << "," << (dec) << length << ") - IN";
|
||||
//qDebug() << Q_FUNC_INFO << "(" << (hex) << slave << "," << data << "," << (dec) << length << ") - IN";
|
||||
|
||||
if (len > 0)
|
||||
{
|
||||
@ -407,7 +407,7 @@ long I2CBus::StartRead(uint8_t slave, uint8_t *data, long length)
|
||||
err_no = 0;
|
||||
|
||||
fineR:
|
||||
//qDebug() << __PRETTY_FUNCTION__ << "=" << (long)(length - len) << ", err_no =" << err_no << " - OUT";
|
||||
//qDebug() << Q_FUNC_INFO << "=" << (long)(length - len) << ", err_no =" << err_no << " - OUT";
|
||||
|
||||
return length - len;
|
||||
}
|
||||
@ -417,7 +417,7 @@ long I2CBus::StartWrite(uint8_t slave, uint8_t const *data, long length)
|
||||
int error;
|
||||
long len = length;
|
||||
|
||||
//qDebug() << __PRETTY_FUNCTION__ << "(" << (hex) << slave << "," << data << "," << (dec) << length << ") - IN";
|
||||
//qDebug() << Q_FUNC_INFO << "(" << (hex) << slave << "," << data << "," << (dec) << length << ") - IN";
|
||||
|
||||
if (len == 0)
|
||||
{
|
||||
@ -449,25 +449,25 @@ long I2CBus::StartWrite(uint8_t slave, uint8_t const *data, long length)
|
||||
}
|
||||
|
||||
fineW:
|
||||
//qDebug() << __PRETTY_FUNCTION__ << "=" << (long)(length - len) << ", err_no =" << err_no << " - OUT";
|
||||
//qDebug() << Q_FUNC_INFO << "=" << (long)(length - len) << ", err_no =" << err_no << " - OUT";
|
||||
|
||||
return length - len;
|
||||
}
|
||||
|
||||
int I2CBus::Stop(void)
|
||||
{
|
||||
//qDebug() << __PRETTY_FUNCTION__ << "- IN";
|
||||
//qDebug() << Q_FUNC_INFO << "- IN";
|
||||
|
||||
err_no = SendStop() ? IICERR_STOP : 0;
|
||||
|
||||
//qDebug() << __PRETTY_FUNCTION__ << "=" << err_no << "- OUT";
|
||||
//qDebug() << Q_FUNC_INFO << "=" << err_no << "- OUT";
|
||||
|
||||
return err_no;
|
||||
}
|
||||
|
||||
int I2CBus::Reset(void)
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__ << "- IN";
|
||||
qDebug() << Q_FUNC_INFO << "- IN";
|
||||
|
||||
SetDelay();
|
||||
|
||||
@ -476,14 +476,14 @@ int I2CBus::Reset(void)
|
||||
setSCLSDA();
|
||||
WaitMsec(100); //a big delay to allow no-CMOS 2402 to work
|
||||
|
||||
qDebug() << __PRETTY_FUNCTION__ << "- OUT";
|
||||
qDebug() << Q_FUNC_INFO << "- OUT";
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
||||
void I2CBus::Close(void)
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__ << "busI=" << (hex) << busI << (dec);
|
||||
qDebug() << Q_FUNC_INFO << "busI=" << (hex) << busI << (dec);
|
||||
|
||||
setSCLSDA();
|
||||
BusIO::Close();
|
||||
|
@ -52,7 +52,7 @@
|
||||
IMBus::IMBus(BusInterface *ptr)
|
||||
: BusIO(ptr)
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__;
|
||||
qDebug() << Q_FUNC_INFO;
|
||||
|
||||
StatusLocation = 526; //526 for NVM3060, 14 for MDA2062
|
||||
SecondaryAddress = false;
|
||||
@ -63,7 +63,7 @@ IMBus::IMBus(BusInterface *ptr)
|
||||
// Distruttore
|
||||
IMBus::~IMBus()
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__;
|
||||
qDebug() << Q_FUNC_INFO;
|
||||
}
|
||||
|
||||
void IMBus::SetStatusLocation(int val)
|
||||
@ -131,7 +131,7 @@ void IMBus::SetDelay()
|
||||
Q_CHECK_PTR(busI);
|
||||
busI->SetDelay(n);
|
||||
|
||||
qDebug() << __PRETTY_FUNCTION__ << "=" << n;
|
||||
qDebug() << Q_FUNC_INFO << "=" << n;
|
||||
}
|
||||
|
||||
int IMBus::SendDataBit(int b)
|
||||
|
@ -240,7 +240,7 @@ void LinuxSysFsInterface::DeInitPins()
|
||||
|
||||
int LinuxSysFsInterface::Open(int port_no)
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__ << " (" << port_no << ") IN";
|
||||
qDebug() << Q_FUNC_INFO << " (" << port_no << ") IN";
|
||||
|
||||
int ret_val = OK;
|
||||
|
||||
@ -252,14 +252,14 @@ int LinuxSysFsInterface::Open(int port_no)
|
||||
}
|
||||
}
|
||||
|
||||
qDebug() << __PRETTY_FUNCTION__ << " = " << ret_val << " OUT";
|
||||
qDebug() << Q_FUNC_INFO << " = " << ret_val << " OUT";
|
||||
|
||||
return ret_val;
|
||||
}
|
||||
|
||||
void LinuxSysFsInterface::Close()
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__ << " IN";
|
||||
qDebug() << Q_FUNC_INFO << " IN";
|
||||
|
||||
if (IsInstalled())
|
||||
{
|
||||
@ -268,13 +268,13 @@ void LinuxSysFsInterface::Close()
|
||||
DeInstall();
|
||||
}
|
||||
|
||||
qDebug() << __PRETTY_FUNCTION__ << " OUT";
|
||||
qDebug() << Q_FUNC_INFO << " OUT";
|
||||
}
|
||||
|
||||
// Per l'AVR e` la linea di RESET
|
||||
void LinuxSysFsInterface::SetControlLine(int res)
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__ << " (" << res << ") *** Inst=" << IsInstalled() << ", fd=" << fd_ctrl;
|
||||
qDebug() << Q_FUNC_INFO << " (" << res << ") *** Inst=" << IsInstalled() << ", fd=" << fd_ctrl;
|
||||
|
||||
if (IsInstalled())
|
||||
{
|
||||
@ -306,7 +306,7 @@ void LinuxSysFsInterface::SetControlLine(int res)
|
||||
|
||||
void LinuxSysFsInterface::SetDataOut(int sda)
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__ << "(" << sda << ") *** Inst=" << IsInstalled() << ", fd=" << fd_dataout;
|
||||
qDebug() << Q_FUNC_INFO << "(" << sda << ") *** Inst=" << IsInstalled() << ", fd=" << fd_dataout;
|
||||
|
||||
if (IsInstalled())
|
||||
{
|
||||
@ -338,7 +338,7 @@ void LinuxSysFsInterface::SetDataOut(int sda)
|
||||
|
||||
void LinuxSysFsInterface::SetClock(int scl)
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__ << "(" << scl << ") *** Inst=" << IsInstalled() << ", fd=" << fd_clock;
|
||||
qDebug() << Q_FUNC_INFO << "(" << scl << ") *** Inst=" << IsInstalled() << ", fd=" << fd_clock;
|
||||
|
||||
if (IsInstalled())
|
||||
{
|
||||
@ -370,7 +370,7 @@ void LinuxSysFsInterface::SetClock(int scl)
|
||||
|
||||
void LinuxSysFsInterface::SetClockData()
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__ << " *** Inst=" << IsInstalled();
|
||||
qDebug() << Q_FUNC_INFO << " *** Inst=" << IsInstalled();
|
||||
|
||||
if (IsInstalled())
|
||||
{
|
||||
@ -381,7 +381,7 @@ void LinuxSysFsInterface::SetClockData()
|
||||
|
||||
void LinuxSysFsInterface::ClearClockData()
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__ << " *** Inst=" << IsInstalled();
|
||||
qDebug() << Q_FUNC_INFO << " *** Inst=" << IsInstalled();
|
||||
|
||||
if (IsInstalled())
|
||||
{
|
||||
@ -408,7 +408,7 @@ int LinuxSysFsInterface::GetDataIn()
|
||||
qWarning("LinuxSysFsInterface::GetDataIn() read failed (%d)\n", ret);
|
||||
exit(1);
|
||||
}
|
||||
qDebug() << __PRETTY_FUNCTION__ << "=" << val << ", fd=" << fd_datain;
|
||||
qDebug() << Q_FUNC_INFO << "=" << val << ", fd=" << fd_datain;
|
||||
|
||||
if (cmdWin->GetPolarity() & DININV)
|
||||
{
|
||||
@ -430,14 +430,14 @@ int LinuxSysFsInterface::GetClock()
|
||||
|
||||
int LinuxSysFsInterface::IsClockDataUP()
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__ << " *** Inst=" << IsInstalled();
|
||||
qDebug() << Q_FUNC_INFO << " *** Inst=" << IsInstalled();
|
||||
|
||||
return GetDataIn();
|
||||
}
|
||||
|
||||
int LinuxSysFsInterface::IsClockDataDOWN()
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__ << " *** Inst=" << IsInstalled();
|
||||
qDebug() << Q_FUNC_INFO << " *** Inst=" << IsInstalled();
|
||||
|
||||
return !GetDataIn();
|
||||
}
|
||||
|
@ -39,12 +39,12 @@
|
||||
MicroWireBus::MicroWireBus(BusInterface *ptr)
|
||||
: BusIO(ptr)
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__;
|
||||
qDebug() << Q_FUNC_INFO;
|
||||
}
|
||||
|
||||
MicroWireBus::~MicroWireBus()
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__;
|
||||
qDebug() << Q_FUNC_INFO;
|
||||
}
|
||||
|
||||
void MicroWireBus::SetDelay()
|
||||
@ -82,7 +82,7 @@ void MicroWireBus::SetDelay()
|
||||
Q_CHECK_PTR(busI);
|
||||
busI->SetDelay(n);
|
||||
|
||||
qDebug() << __PRETTY_FUNCTION__ << "=" << n;
|
||||
qDebug() << Q_FUNC_INFO << "=" << n;
|
||||
}
|
||||
|
||||
int MicroWireBus::SendDataBit(int b)
|
||||
@ -192,14 +192,14 @@ int MicroWireBus::WaitReadyAfterWrite(long timeout)
|
||||
WaitUsec(1);
|
||||
}
|
||||
|
||||
qDebug() << __PRETTY_FUNCTION__ << "=" << k;
|
||||
qDebug() << Q_FUNC_INFO << "=" << k;
|
||||
|
||||
return k ? OK : E2P_TIMEOUT;
|
||||
}
|
||||
|
||||
int MicroWireBus::Reset(void)
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__;
|
||||
qDebug() << Q_FUNC_INFO;
|
||||
|
||||
SetDelay();
|
||||
|
||||
|
@ -49,12 +49,12 @@ MpsseInterface::MpsseInterface()
|
||||
pin_poweron(0),
|
||||
ftdi_port(FTDI_PORTA)
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__;
|
||||
qDebug() << Q_FUNC_INFO;
|
||||
}
|
||||
|
||||
MpsseInterface::~MpsseInterface()
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__;
|
||||
qDebug() << Q_FUNC_INFO;
|
||||
|
||||
Close();
|
||||
}
|
||||
@ -116,11 +116,11 @@ int MpsseInterface::InitPins()
|
||||
|
||||
if (pin_ctrl == 0 && pin_clock == 0 && pin_datain == 0 && pin_dataout == 0)
|
||||
{
|
||||
qWarning() << __PRETTY_FUNCTION__ << " Unconfigured pins";
|
||||
qWarning() << Q_FUNC_INFO << " Unconfigured pins";
|
||||
return E2ERR_OPENFAILED;
|
||||
}
|
||||
|
||||
qDebug() << __PRETTY_FUNCTION__ << (hex)
|
||||
qDebug() << Q_FUNC_INFO << (hex)
|
||||
<< " Ctrl=" << pin_ctrl
|
||||
<< ", Clock=" << pin_clock << ", ClockIn=" << pin_clockin
|
||||
<< ", DataIn=" << pin_datain << ", DataOut=" << pin_dataout
|
||||
@ -193,17 +193,17 @@ int MpsseInterface::SetFrequency(uint32_t freq)
|
||||
divisor = (sysclock / (2 * freq)) - 1;
|
||||
if (divisor < 0)
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__ << "Frequency high" << freq;
|
||||
qDebug() << Q_FUNC_INFO << "Frequency high" << freq;
|
||||
divisor = 0;
|
||||
}
|
||||
|
||||
if (divisor > 65535)
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__ << "Frequency low" << freq;
|
||||
qDebug() << Q_FUNC_INFO << "Frequency low" << freq;
|
||||
divisor = 65535;
|
||||
}
|
||||
|
||||
qDebug() << __PRETTY_FUNCTION__ << "Frequency" << (sysclock / (2 * (divisor + 1))) << ", Divisor" << divisor << ", SysClock" << sysclock;
|
||||
qDebug() << Q_FUNC_INFO << "Frequency" << (sysclock / (2 * (divisor + 1))) << ", Divisor" << divisor << ", SysClock" << sysclock;
|
||||
|
||||
cmdbuf.append(TCK_DIVISOR);
|
||||
cmdbuf.append(divisor & 0xff);
|
||||
@ -214,7 +214,7 @@ int MpsseInterface::SetFrequency(uint32_t freq)
|
||||
|
||||
int MpsseInterface::Open(int port)
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__ << "(" << port << (hex) << usb_vp.vid << ":" << usb_vp.pid << ") IN";
|
||||
qDebug() << Q_FUNC_INFO << "(" << port << (hex) << usb_vp.vid << ":" << usb_vp.pid << ") IN";
|
||||
|
||||
int ret_val = OK;
|
||||
|
||||
@ -269,19 +269,19 @@ int MpsseInterface::Open(int port)
|
||||
}
|
||||
else
|
||||
{
|
||||
qWarning() << __PRETTY_FUNCTION__ << ctx.error_string();
|
||||
qWarning() << Q_FUNC_INFO << ctx.error_string();
|
||||
ret_val = E2ERR_OPENFAILED;
|
||||
}
|
||||
}
|
||||
|
||||
qDebug() << __PRETTY_FUNCTION__ << "=" << ret_val << "OUT";
|
||||
qDebug() << Q_FUNC_INFO << "=" << ret_val << "OUT";
|
||||
|
||||
return ret_val;
|
||||
}
|
||||
|
||||
void MpsseInterface::Close()
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__ << "IN - Installed: " << IsInstalled();
|
||||
qDebug() << Q_FUNC_INFO << "IN - Installed: " << IsInstalled();
|
||||
|
||||
if (IsInstalled())
|
||||
{
|
||||
@ -306,7 +306,7 @@ int MpsseInterface::Flush()
|
||||
}
|
||||
else
|
||||
{
|
||||
qWarning() << __PRETTY_FUNCTION__ << "write failed:" << ctx.error_string();
|
||||
qWarning() << Q_FUNC_INFO << "write failed:" << ctx.error_string();
|
||||
ret = -1;
|
||||
}
|
||||
}
|
||||
@ -421,7 +421,7 @@ int MpsseInterface::GetPins()
|
||||
ret = ctx.read(buf, 2);
|
||||
if (ret < 0)
|
||||
{
|
||||
qWarning() << __PRETTY_FUNCTION__ << "read failed:" << ctx.error_string();
|
||||
qWarning() << Q_FUNC_INFO << "read failed:" << ctx.error_string();
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
@ -466,7 +466,7 @@ int MpsseInterface::GetLowPinsMulti(int bufsiz, uint8_t *buf, int len)
|
||||
ret = ctx.read(buf, len);
|
||||
if (ret < 0)
|
||||
{
|
||||
qWarning() << __PRETTY_FUNCTION__ << "read failed:" << ctx.error_string();
|
||||
qWarning() << Q_FUNC_INFO << "read failed:" << ctx.error_string();
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
@ -602,7 +602,7 @@ int MpsseInterface::xferBit(int &err, int b, int mode)
|
||||
ret = ctx.read(&ret_byte, 1);
|
||||
if (ret < 0)
|
||||
{
|
||||
qWarning() << __PRETTY_FUNCTION__ << "read failed:" << ctx.error_string();
|
||||
qWarning() << Q_FUNC_INFO << "read failed:" << ctx.error_string();
|
||||
err = -1;
|
||||
}
|
||||
}
|
||||
@ -697,7 +697,7 @@ uint8_t MpsseInterface::xferByte(int &err, uint8_t by, int mode, int bpw, bool l
|
||||
ret = ctx.read(&ret_byte, 1);
|
||||
if (ret < 0)
|
||||
{
|
||||
qWarning() << __PRETTY_FUNCTION__ << "read failed:" << ctx.error_string();
|
||||
qWarning() << Q_FUNC_INFO << "read failed:" << ctx.error_string();
|
||||
err = -1;
|
||||
}
|
||||
}
|
||||
@ -760,7 +760,7 @@ unsigned long MpsseInterface::xferWord(int &err, unsigned long word_out, int mod
|
||||
|
||||
int MpsseInterface::SetPower(bool onoff)
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__ << "(" << onoff << ")";
|
||||
qDebug() << Q_FUNC_INFO << "(" << onoff << ")";
|
||||
|
||||
if (IsInstalled() && pin_poweron > 0)
|
||||
{
|
||||
@ -780,7 +780,7 @@ int MpsseInterface::SetPower(bool onoff)
|
||||
|
||||
void MpsseInterface::SetControlLine(int res)
|
||||
{
|
||||
//qDebug() << __PRETTY_FUNCTION__ << "(" << res << ") *** Inst=" << IsInstalled();
|
||||
//qDebug() << Q_FUNC_INFO << "(" << res << ") *** Inst=" << IsInstalled();
|
||||
|
||||
if (IsInstalled())
|
||||
{
|
||||
@ -791,14 +791,14 @@ void MpsseInterface::SetControlLine(int res)
|
||||
|
||||
if (SendPins(OutDataMask(pin_ctrl, (res != 0))) != OK)
|
||||
{
|
||||
qWarning() << __PRETTY_FUNCTION__ << "write failed.";
|
||||
qWarning() << Q_FUNC_INFO << "write failed.";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void MpsseInterface::SetDataOut(int sda)
|
||||
{
|
||||
//qDebug() << __PRETTY_FUNCTION__ << "(" << sda << ") *** Inst=" << IsInstalled();
|
||||
//qDebug() << Q_FUNC_INFO << "(" << sda << ") *** Inst=" << IsInstalled();
|
||||
|
||||
if (IsInstalled())
|
||||
{
|
||||
@ -809,14 +809,14 @@ void MpsseInterface::SetDataOut(int sda)
|
||||
|
||||
if (SendPins(OutDataMask(pin_dataout, (sda != 0))) != OK)
|
||||
{
|
||||
qWarning() << __PRETTY_FUNCTION__ << "write failed.";
|
||||
qWarning() << Q_FUNC_INFO << "write failed.";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void MpsseInterface::SetClock(int scl)
|
||||
{
|
||||
//qDebug() << __PRETTY_FUNCTION__ << "(" << scl << ") *** Inst=" << IsInstalled();
|
||||
//qDebug() << Q_FUNC_INFO << "(" << scl << ") *** Inst=" << IsInstalled();
|
||||
|
||||
if (IsInstalled())
|
||||
{
|
||||
@ -827,14 +827,14 @@ void MpsseInterface::SetClock(int scl)
|
||||
|
||||
if (SendPins(OutDataMask(pin_clock, (scl != 0))) != OK)
|
||||
{
|
||||
qWarning() << __PRETTY_FUNCTION__ << "write failed.";
|
||||
qWarning() << Q_FUNC_INFO << "write failed.";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void MpsseInterface::SetClockData()
|
||||
{
|
||||
//qDebug() << __PRETTY_FUNCTION__ << "*** Inst=" << IsInstalled();
|
||||
//qDebug() << Q_FUNC_INFO << "*** Inst=" << IsInstalled();
|
||||
|
||||
if (IsInstalled())
|
||||
{
|
||||
@ -853,14 +853,14 @@ void MpsseInterface::SetClockData()
|
||||
int n_data = OutDataMask(pin_clock, scl);
|
||||
if (SendPins(OutDataMask(n_data, pin_dataout, sda)) != OK)
|
||||
{
|
||||
qWarning() << __PRETTY_FUNCTION__ << "write failed.";
|
||||
qWarning() << Q_FUNC_INFO << "write failed.";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void MpsseInterface::ClearClockData()
|
||||
{
|
||||
//qDebug() << __PRETTY_FUNCTION__ << "*** Inst=" << IsInstalled();
|
||||
//qDebug() << Q_FUNC_INFO << "*** Inst=" << IsInstalled();
|
||||
|
||||
if (IsInstalled())
|
||||
{
|
||||
@ -879,7 +879,7 @@ void MpsseInterface::ClearClockData()
|
||||
int n_data = OutDataMask(pin_clock, scl);
|
||||
if (SendPins(OutDataMask(n_data, pin_dataout, sda)) != OK)
|
||||
{
|
||||
qWarning() << __PRETTY_FUNCTION__ << "write failed.";
|
||||
qWarning() << Q_FUNC_INFO << "write failed.";
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -917,7 +917,7 @@ int MpsseInterface::GetDataIn()
|
||||
int val = GetPins();
|
||||
if (val < 0)
|
||||
{
|
||||
qWarning() << __PRETTY_FUNCTION__ << "read failed.";
|
||||
qWarning() << Q_FUNC_INFO << "read failed.";
|
||||
return val;
|
||||
}
|
||||
else
|
||||
@ -956,7 +956,7 @@ int MpsseInterface::GetClock()
|
||||
int val = GetPins();
|
||||
if (val < 0)
|
||||
{
|
||||
qWarning() << __PRETTY_FUNCTION__ << "read failed.";
|
||||
qWarning() << Q_FUNC_INFO << "read failed.";
|
||||
return val;
|
||||
}
|
||||
else
|
||||
@ -990,7 +990,7 @@ int MpsseInterface::IsClockDataUP()
|
||||
int val = GetPins();
|
||||
if (val < 0)
|
||||
{
|
||||
qWarning() << __PRETTY_FUNCTION__ << "read failed.";
|
||||
qWarning() << Q_FUNC_INFO << "read failed.";
|
||||
return val;
|
||||
}
|
||||
else
|
||||
@ -1023,7 +1023,7 @@ int MpsseInterface::IsClockDataDOWN()
|
||||
int val = GetPins();
|
||||
if (val < 0)
|
||||
{
|
||||
qWarning() << __PRETTY_FUNCTION__ << "read failed.";
|
||||
qWarning() << Q_FUNC_INFO << "read failed.";
|
||||
return val;
|
||||
}
|
||||
else
|
||||
@ -1039,14 +1039,14 @@ int MpsseInterface::IsClockDataDOWN()
|
||||
|
||||
int MpsseInterface::GetPresence(int mask, int val)
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__ << "() *** Inst=" << IsInstalled();
|
||||
qDebug() << Q_FUNC_INFO << "() *** Inst=" << IsInstalled();
|
||||
|
||||
if (IsInstalled())
|
||||
{
|
||||
int pinval = GetPins();
|
||||
if (pinval < 0)
|
||||
{
|
||||
qWarning() << __PRETTY_FUNCTION__ << "read failed.";
|
||||
qWarning() << Q_FUNC_INFO << "read failed.";
|
||||
return val;
|
||||
}
|
||||
else
|
||||
@ -1062,7 +1062,7 @@ int MpsseInterface::GetPresence(int mask, int val)
|
||||
|
||||
int MpsseInterface::TestPort(int port_no)
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__ << "(" << port_no << ") IN";
|
||||
qDebug() << Q_FUNC_INFO << "(" << port_no << ") IN";
|
||||
|
||||
int ret_val = TestSave(port_no);
|
||||
|
||||
@ -1111,7 +1111,7 @@ int MpsseInterface::TestPort(int port_no)
|
||||
|
||||
TestRestore();
|
||||
|
||||
qDebug() << __PRETTY_FUNCTION__ << "() = " << ret_val << " OUT";
|
||||
qDebug() << Q_FUNC_INFO << "() = " << ret_val << " OUT";
|
||||
|
||||
return ret_val;
|
||||
}
|
||||
|
@ -54,7 +54,7 @@ Pic12Bus::Pic12Bus(BusInterface *ptr)
|
||||
// BeginProgOnlyCode(0x18) //Begin Programming Only Cycle
|
||||
EndProgCode(0x0e)
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__ << "()";
|
||||
qDebug() << Q_FUNC_INFO << "()";
|
||||
|
||||
OverProgrammingMult = 11; //Default OverProgramming X value (x11)
|
||||
OverProgrammingAdd = 0; //Default OverProgramming + value (+0)
|
||||
@ -100,7 +100,7 @@ void Pic12Bus::SetDelay()
|
||||
|
||||
busI->SetDelay(n);
|
||||
|
||||
qDebug() << __PRETTY_FUNCTION__ << "() = " << n;
|
||||
qDebug() << Q_FUNC_INFO << "() = " << n;
|
||||
}
|
||||
|
||||
int Pic12Bus::SendDataBit(int b)
|
||||
@ -191,7 +191,7 @@ long Pic12Bus::RecDataWord(int wlen)
|
||||
|
||||
int Pic12Bus::Reset(void)
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__ << " IN";
|
||||
qDebug() << Q_FUNC_INFO << " IN";
|
||||
|
||||
SetDelay();
|
||||
|
||||
@ -211,7 +211,7 @@ int Pic12Bus::Reset(void)
|
||||
|
||||
current_address = -1;
|
||||
|
||||
qDebug() << __PRETTY_FUNCTION__ << " OUT";
|
||||
qDebug() << Q_FUNC_INFO << " OUT";
|
||||
|
||||
return OK;
|
||||
}
|
||||
@ -240,7 +240,7 @@ long Pic12Bus::ReadConfig(uint16_t &data)
|
||||
#endif
|
||||
IncAddress(1);
|
||||
|
||||
qDebug() << __PRETTY_FUNCTION__ << "(" << (hex) << val << ") OUT";
|
||||
qDebug() << Q_FUNC_INFO << "(" << (hex) << val << ") OUT";
|
||||
|
||||
return OK;
|
||||
}
|
||||
@ -248,7 +248,7 @@ long Pic12Bus::ReadConfig(uint16_t &data)
|
||||
|
||||
long Pic12Bus::WriteConfig(uint16_t data)
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__ << "(" << (hex) << data << ") IN";
|
||||
qDebug() << Q_FUNC_INFO << "(" << (hex) << data << ") IN";
|
||||
|
||||
// Reset();
|
||||
|
||||
@ -312,7 +312,7 @@ long Pic12Bus::Read(int addr, uint8_t *data, long length, int page_size)
|
||||
{
|
||||
long len;
|
||||
|
||||
qDebug() << __PRETTY_FUNCTION__ << "(" << addr << ", " << (hex) << data << ", " << (dec) << length << ") IN";
|
||||
qDebug() << Q_FUNC_INFO << "(" << addr << ", " << (hex) << data << ", " << (dec) << length << ") IN";
|
||||
|
||||
ReadStart();
|
||||
length >>= 1; //contatore da byte a word
|
||||
@ -350,7 +350,7 @@ long Pic12Bus::Read(int addr, uint8_t *data, long length, int page_size)
|
||||
|
||||
len <<= 1; //contatore da word a byte
|
||||
|
||||
qDebug() << __PRETTY_FUNCTION__ << "() = " << len << " OUT";
|
||||
qDebug() << Q_FUNC_INFO << "() = " << len << " OUT";
|
||||
|
||||
return len;
|
||||
}
|
||||
@ -359,7 +359,7 @@ long Pic12Bus::Write(int addr, uint8_t const *data, long length, int page_size)
|
||||
{
|
||||
long len;
|
||||
|
||||
qDebug() << __PRETTY_FUNCTION__ << "(" << addr << ", " << (hex) << data << ", " << (dec) << length << ") IN";
|
||||
qDebug() << Q_FUNC_INFO << "(" << addr << ", " << (hex) << data << ", " << (dec) << length << ") IN";
|
||||
|
||||
WriteStart();
|
||||
length >>= 1; //contatore da byte a word
|
||||
@ -401,7 +401,7 @@ long Pic12Bus::Write(int addr, uint8_t const *data, long length, int page_size)
|
||||
len <<= 1; //contatore da word a byte
|
||||
}
|
||||
|
||||
qDebug() << __PRETTY_FUNCTION__ << "() = " << len << " ** " << GetLastProgrammedAddress() << " OUT";
|
||||
qDebug() << Q_FUNC_INFO << "() = " << len << " ** " << GetLastProgrammedAddress() << " OUT";
|
||||
|
||||
return len;
|
||||
}
|
||||
@ -411,7 +411,7 @@ int Pic12Bus::WriteProgWord(uint16_t val, long rc_addr)
|
||||
int k;
|
||||
int rval = OK;
|
||||
|
||||
qDebug() << __PRETTY_FUNCTION__ << "(" << (hex) << val << ", " << (dec) << current_address << ") IN";
|
||||
qDebug() << Q_FUNC_INFO << "(" << (hex) << val << ", " << (dec) << current_address << ") IN";
|
||||
|
||||
//Check for RC calibration location
|
||||
if (current_address == rc_addr)
|
||||
@ -500,14 +500,14 @@ int Pic12Bus::WriteProgWord(uint16_t val, long rc_addr)
|
||||
}
|
||||
}
|
||||
|
||||
qDebug() << __PRETTY_FUNCTION__ << "() = " << rval << " OUT";
|
||||
qDebug() << Q_FUNC_INFO << "() = " << rval << " OUT";
|
||||
|
||||
return rval;
|
||||
}
|
||||
|
||||
void Pic12Bus::IncAddress(int n)
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__ << "(" << n << ") IN";
|
||||
qDebug() << Q_FUNC_INFO << "(" << n << ") IN";
|
||||
|
||||
while (n--)
|
||||
{
|
||||
@ -515,14 +515,14 @@ void Pic12Bus::IncAddress(int n)
|
||||
current_address++;
|
||||
}
|
||||
|
||||
qDebug() << __PRETTY_FUNCTION__ << "() OUT ** cur_addr = " << current_address;
|
||||
qDebug() << Q_FUNC_INFO << "() OUT ** cur_addr = " << current_address;
|
||||
}
|
||||
|
||||
int Pic12Bus::ProgramPulse(uint16_t val, int verify, int width)
|
||||
{
|
||||
int rval = OK;
|
||||
|
||||
qDebug() << __PRETTY_FUNCTION__ << "(" << (hex) << val << ", " << (dec) << verify << ", " << width << ") IN";
|
||||
qDebug() << Q_FUNC_INFO << "(" << (hex) << val << ", " << (dec) << verify << ", " << width << ") IN";
|
||||
|
||||
SendCmdCode(LoadProgCode);
|
||||
SendProgCode(val);
|
||||
@ -540,7 +540,7 @@ int Pic12Bus::ProgramPulse(uint16_t val, int verify, int width)
|
||||
rval = CompareSingleWord(val, RecvProgCode(), ProgMask);
|
||||
}
|
||||
|
||||
qDebug() << __PRETTY_FUNCTION__ << "() = " << rval << " OUT";
|
||||
qDebug() << Q_FUNC_INFO << "() = " << rval << " OUT";
|
||||
|
||||
return rval;
|
||||
}
|
||||
|
@ -89,7 +89,7 @@ void PicBus::SetDelay()
|
||||
Q_CHECK_PTR(busI);
|
||||
busI->SetDelay(n);
|
||||
|
||||
qDebug() << __PRETTY_FUNCTION__ << "=" << n;
|
||||
qDebug() << Q_FUNC_INFO << "=" << n;
|
||||
}
|
||||
|
||||
int PicBus::SendDataBit(int b)
|
||||
|
@ -36,12 +36,12 @@
|
||||
Sde2506Bus::Sde2506Bus(BusInterface *ptr)
|
||||
: BusIO(ptr)
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__;
|
||||
qDebug() << Q_FUNC_INFO;
|
||||
}
|
||||
|
||||
Sde2506Bus::~Sde2506Bus()
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__;
|
||||
qDebug() << Q_FUNC_INFO;
|
||||
}
|
||||
|
||||
void Sde2506Bus::SetDelay()
|
||||
@ -79,7 +79,7 @@ void Sde2506Bus::SetDelay()
|
||||
Q_CHECK_PTR(busI);
|
||||
busI->SetDelay(n);
|
||||
|
||||
qDebug() << __PRETTY_FUNCTION__ << "=" << n;
|
||||
qDebug() << Q_FUNC_INFO << "=" << n;
|
||||
}
|
||||
|
||||
int Sde2506Bus::SendDataBit(int b)
|
||||
@ -156,7 +156,7 @@ int Sde2506Bus::WaitReadyAfterWrite(long timeout)
|
||||
|
||||
int Sde2506Bus::Reset(void)
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__;
|
||||
qDebug() << Q_FUNC_INFO;
|
||||
|
||||
SetDelay();
|
||||
|
||||
@ -169,7 +169,7 @@ int Sde2506Bus::Reset(void)
|
||||
|
||||
long Sde2506Bus::Read(int addr, uint8_t *data, long length, int page_size)
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__ << "(" << (hex) << addr << ", " << data << ", " << (dec) << length << ")";
|
||||
qDebug() << Q_FUNC_INFO << "(" << (hex) << addr << ", " << data << ", " << (dec) << length << ")";
|
||||
ReadStart();
|
||||
|
||||
long len;
|
||||
@ -202,7 +202,7 @@ long Sde2506Bus::Read(int addr, uint8_t *data, long length, int page_size)
|
||||
WaitMsec(1); //Flush
|
||||
|
||||
ReadEnd();
|
||||
qDebug() << __PRETTY_FUNCTION__ << "=" << len;
|
||||
qDebug() << Q_FUNC_INFO << "=" << len;
|
||||
|
||||
return len;
|
||||
}
|
||||
|
@ -81,12 +81,12 @@ SerNumDialog::SerNumDialog(QWidget *bw, const QString title) :
|
||||
connect(pushOk, SIGNAL(clicked()), this, SLOT(onOk()));
|
||||
connect(pushCancel, SIGNAL(clicked()), this, SLOT(reject()));
|
||||
|
||||
qDebug() << __PRETTY_FUNCTION__;
|
||||
qDebug() << Q_FUNC_INFO;
|
||||
}
|
||||
|
||||
SerNumDialog::~SerNumDialog()
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__;
|
||||
qDebug() << Q_FUNC_INFO;
|
||||
}
|
||||
|
||||
void SerNumDialog::setTextWidgets()
|
||||
@ -190,7 +190,7 @@ OscCalibDialog::OscCalibDialog(QWidget *bw, e2AppWinInfo *aw, const QString titl
|
||||
enabled = false;
|
||||
size = 1;
|
||||
|
||||
qDebug() << __PRETTY_FUNCTION__;
|
||||
qDebug() << Q_FUNC_INFO;
|
||||
|
||||
E2Profile::readDialogSettings(this, false);
|
||||
|
||||
@ -223,7 +223,7 @@ OscCalibDialog::OscCalibDialog(QWidget *bw, e2AppWinInfo *aw, const QString titl
|
||||
|
||||
OscCalibDialog::~OscCalibDialog()
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__;
|
||||
qDebug() << Q_FUNC_INFO;
|
||||
}
|
||||
|
||||
void OscCalibDialog::onOk()
|
||||
|
@ -81,7 +81,7 @@ void SPIBus::SetDelay()
|
||||
Q_CHECK_PTR(busI);
|
||||
busI->SetDelay(n);
|
||||
|
||||
qDebug() << __PRETTY_FUNCTION__ << "() = " << n;
|
||||
qDebug() << Q_FUNC_INFO << "() = " << n;
|
||||
}
|
||||
|
||||
|
||||
@ -131,7 +131,7 @@ int SPIBus::RecDataByte()
|
||||
|
||||
int SPIBus::Reset(void)
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__ << "IN";
|
||||
qDebug() << Q_FUNC_INFO << "IN";
|
||||
|
||||
SetDelay();
|
||||
|
||||
@ -145,7 +145,7 @@ int SPIBus::Reset(void)
|
||||
|
||||
WaitMsec(E2Profile::GetSPIDelayAfterReset());
|
||||
|
||||
qDebug() << __PRETTY_FUNCTION__ << "OUT";
|
||||
qDebug() << Q_FUNC_INFO << "OUT";
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
@ -45,7 +45,7 @@ X2444Bus::X2444Bus(BusInterface *ptr)
|
||||
loop_timeout(8000),
|
||||
organization(ORG16)
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__;
|
||||
qDebug() << Q_FUNC_INFO;
|
||||
}
|
||||
|
||||
void X2444Bus::SendCmdAddr(int cmd, int addr)
|
||||
@ -62,7 +62,7 @@ void X2444Bus::SendCmdAddr(int cmd, int addr)
|
||||
|
||||
long X2444Bus::Read(int addr, uint8_t *data, long length, int page_size)
|
||||
{
|
||||
qDebug() << __PRETTY_FUNCTION__ << "(" << (hex) << addr << ", " << data << ", " << (dec) << length << ")";
|
||||
qDebug() << Q_FUNC_INFO << "(" << (hex) << addr << ", " << data << ", " << (dec) << length << ")";
|
||||
ReadStart();
|
||||
|
||||
long len;
|
||||
@ -130,7 +130,7 @@ long X2444Bus::Read(int addr, uint8_t *data, long length, int page_size)
|
||||
WaitMsec(1); //Flush
|
||||
|
||||
ReadEnd();
|
||||
qDebug() << __PRETTY_FUNCTION__ << "=" << len;
|
||||
qDebug() << Q_FUNC_INFO << "=" << len;
|
||||
|
||||
return len;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user