DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
CyclicDataGenerator.cpp
Go to the documentation of this file.
2
3#define DEFAULT_CYCLIC_PATTERN "abcdefghijklmnopqrstuvwxyz"
4
6
13
20
21char
23{
24 size_t i = current_slice_index;
25
26 if (current_slice_index + 1 == slice_len) {
28 } else {
30 }
31
32 return pattern[i];
33}
34
35void
37{
38 char buffer[n];
39
40 for (size_t i = 0; i < n; i++) {
41 buffer[i] = get_next();
42 }
43
44 strcpy(dst, buffer);
45}
46
47char
49{
50 size_t i = current_slice_index;
51
52 if (current_slice_index == 0) {
54 } else {
56 }
57
58 return pattern[i];
59}
60
61void
63{
64 char buffer[n];
65
66 for (size_t i = 0; i < n; i++) {
67 buffer[i] = get_prev();
68 }
69
70 strcpy(dst, buffer);
71}
72
#define DEFAULT_CYCLIC_PATTERN
double offset