Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

At each trigger, the UDP Encoder sends one header structure followed by up to eight channel structures.

Code Block
languagecpp
titleencoder header: 32 bytes
    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;

...

languagecpp
titleencoder 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