2020-07-19 13:13:55 -07:00
|
|
|
|
|
|
|
#include <cstdio>
|
|
|
|
#include "logicdata.h"
|
|
|
|
|
2020-07-19 14:42:11 -07:00
|
|
|
static CompositeEvent events[100];
|
|
|
|
|
|
|
|
|
|
|
|
void setEvent(CompositeEvent *events, int index,
|
|
|
|
int timestamp, bool primaryTrigger, bool secondaryTrigger, bool trg, bool sync, bool coil, bool injector) {
|
|
|
|
events[index].timestamp = timestamp;
|
|
|
|
events[index].primaryTrigger = primaryTrigger;
|
|
|
|
}
|
|
|
|
|
2020-07-19 13:13:55 -07:00
|
|
|
int main(int argc, char **argv) {
|
|
|
|
printf(".logicdata Sandbox 20200719\n");
|
|
|
|
|
2020-07-19 14:42:11 -07:00
|
|
|
|
|
|
|
int index = 0;
|
|
|
|
setEvent(events, index++, 10, false, false, false, false, false, false);
|
|
|
|
setEvent(events, index++, 20, true, false, true, false, false, false);
|
|
|
|
setEvent(events, index++, 30, false, false, false, false, false, false);
|
|
|
|
setEvent(events, index++, 1000030, false, false, false, false, true, false);
|
|
|
|
setEvent(events, index++, 2000030, false, false, true, false, false, true);
|
|
|
|
|
|
|
|
writeFile(events, index);
|
2020-07-19 13:13:55 -07:00
|
|
|
|
|
|
|
printf("Done!\n");
|
|
|
|
}
|