1
0
mirror of synced 2026-01-17 08:32:10 +00:00
2020-09-09 15:11:45 -07:00

36 lines
714 B
C++

#include "iop_era.h"
#include "cray_mainframe.h"
#include <algorithm>
#include <time.h>
/////////////////////////////////////////////////////////
// ChannelERA_c
/////////////////////////////////////////////////////////
IopInt_t ChannelERA_c::DoIo(IopIoFunction_t aFunction, IopInt_t aData) {
switch (aFunction) {
case 000:
mDone = false;
return 0;
case 006:
mInterruptEnabled = false;
return 0;
case 007:
mInterruptEnabled = true;
return 0;
case 010:
return 0;
case 011:
return 0;
case 012:
return 0;
case 013:
return 0;
default:
mLogger << setloglevel(LogLevel_Error) << SideEffectIndent << "ERROR: Invalid function code for channel" << std::endl;
return 0;
}
}