...
At each trigger, the UDP Encoder sends one header structure followed by up to eight channel structures.
Code Block | ||||
---|---|---|---|---|
| ||||
typedef struct {
uint16_t frameCounter; // network byte order
char reserved1[2];
char version[4];
char hardwareID[16];
char reserved2;
char channelMask; // bit mask of which channels 0-7 are present
char errorMask; // bit mask of channel errors 0-7
char mode;
char reserved3[4];
} encoder_header_t; |
...
language | cpp |
---|---|
title | encoder channel: 32 bytes |
...
See the definitions of encoder_header_t and encoder_channel_t in github:
https://github.com/slac-lcls/lcls2/blob/master/psdaq/drp/UdpDetector.hh