#include <trbnet.h>
#include <trberror.h>
-static const char pulser_version[] = "$Revision: 1.3 $";
+static const char pulser_version[] = "$Revision: 1.4 $";
#define bufferSize 16385
void usage(const char *progName)
{
printf("Usage: %s [-h] [-d level] [-f outFileName] [-n numEvents] "
- "[-t triggerType] [-i input]\n",
+ "[-t triggerType] [-i input] [-V]\n",
progName);
printf("Options:\n");
printf(" -h give this help\n");
sigprocmask(SIG_BLOCK, &blockSet, NULL);
/* Send Trigger and get Data */
- if (trb_send_trigger_rich(input, triggerType, 0xcc, 0xdd, 0xaabb) == -1) {
+ if (trb_send_trigger_rich(input, triggerType, 0xcc, 0xdd, 0x0001) == -1) {
trb_error("Error send_trigger");
exit(EXIT_FAILURE);
}
- size = trb_ipu_data_read(triggerType, 0xcc, 0xdd, 0xaabb,
+ size = trb_ipu_data_read(triggerType, 0xcc, 0xdd, 0x0001,
buffer, bufferSize);
if (size == -1) {
trb_error("Error IPU Read");