#include <trbnet.h>
#include <trberror.h>
-static const char pulser_version[] = "$Revision: 1.6 $";
+static const char pulser_version[] = "$Revision: 1.7 $";
-/* 1MByte for 6 Sectors should be enough */
-#define BUFFER_SIZE (1024 * 1024 / 4)
+/* 6MByte for 6 Sectors should be enough */
+#define BUFFER_SIZE (6 * 1024 * 1024 / 4)
/* ------ MAIN ---------------------------------------------------------- */
{
char hldFileName[256] = "pulser.hld";
uint16_t trg_number = 0;
+ uint8_t trg_info = 0x00;
uint8_t trg_random = 0;
uint8_t triggerType = 0;
uint8_t input = 0;
sigprocmask(SIG_BLOCK, &blockSet, NULL);
/* Send Trigger and get Data */
- if (trb_send_trigger_rich(input, triggerType, 0x00,
+ if (trb_send_trigger_rich(input, triggerType, trg_info,
trg_random, trg_number) == -1) {
trb_error("Error send_trigger");
exit(EXIT_FAILURE);
}
- size = trb_ipu_data_read(triggerType, 0xcc, 0xdd, 0x0001,
+ size = trb_ipu_data_read(triggerType, trg_info, trg_random, trg_number,
buffer, BUFFER_SIZE);
if (size == -1) {
trb_error("Error IPU Read");