v2
This commit is contained in:
83
statwrd.cpp
Normal file
83
statwrd.cpp
Normal file
@@ -0,0 +1,83 @@
|
||||
#include "mainwindow.h"
|
||||
#include "statwrd.h"
|
||||
|
||||
extern unsigned char HexBinFlag;
|
||||
|
||||
uint8_t StatusWord::addrRTFind(uint16_t statw)
|
||||
{
|
||||
SW.all = statw;
|
||||
return SW.addrRT;
|
||||
}
|
||||
|
||||
uint8_t StatusWord::messErrFind(uint16_t statw)
|
||||
{
|
||||
SW.all = statw;
|
||||
return SW.messErr;
|
||||
}
|
||||
|
||||
uint8_t StatusWord::instrFind(uint16_t statw)
|
||||
{
|
||||
SW.all = statw;
|
||||
return SW.instr;
|
||||
}
|
||||
|
||||
uint8_t StatusWord::serReqFind(uint16_t statw)
|
||||
{
|
||||
SW.all = statw;
|
||||
return SW.serReq;
|
||||
}
|
||||
|
||||
uint8_t StatusWord::reservFind(uint16_t statw)
|
||||
{
|
||||
SW.all = statw;
|
||||
return SW.reserved;
|
||||
}
|
||||
|
||||
uint8_t StatusWord::broadCRFind(uint16_t statw)
|
||||
{
|
||||
SW.all = statw;
|
||||
return SW.broadCR;
|
||||
}
|
||||
|
||||
uint8_t StatusWord::busyFind(uint16_t statw)
|
||||
{
|
||||
SW.all = statw;
|
||||
return SW.busy;
|
||||
}
|
||||
|
||||
uint8_t StatusWord::subSysFFind(uint16_t statw)
|
||||
{
|
||||
SW.all = statw;
|
||||
return SW.subSysF;
|
||||
}
|
||||
|
||||
uint8_t StatusWord::dynBCAFind(uint16_t statw)
|
||||
{
|
||||
SW.all = statw;
|
||||
return SW.dynBCA;
|
||||
}
|
||||
|
||||
uint8_t StatusWord::termFlgFind(uint16_t statw)
|
||||
{
|
||||
SW.all = statw;
|
||||
return SW.termFlg;
|
||||
}
|
||||
|
||||
void StatusWord::description(uint16_t statw)
|
||||
{
|
||||
addrRTf = addrRTFind(statw);
|
||||
messErrf = messErrFind(statw);
|
||||
instrf = instrFind(statw);
|
||||
serReqf = serReqFind(statw);
|
||||
reservf = reservFind(statw);
|
||||
broadCRf = broadCRFind(statw);
|
||||
busyf = busyFind(statw);
|
||||
subSysFf = subSysFFind(statw);
|
||||
dynBCAf = dynBCAFind(statw);
|
||||
termFlgf = termFlgFind(statw);
|
||||
}
|
||||
|
||||
StatusWord::~StatusWord()
|
||||
{
|
||||
qDebug() << "StatusWord destructor";
|
||||
}
|
Reference in New Issue
Block a user