Overview
Data Format
At each trigger, the UDP Encoder sends one header structure followed by up to eight channel structures.
encoder header: 32 bytes
typedef struct { uint16_t frameCount; // network byte order char reserved1[2]; char version[4]; char hardwareID[16]; char reserved2; char channelMask; char errorMask; char mode; char reserved3[4]; } encoder_header_t;
encoder channel: 32 bytes
typedef struct { uint32_t encoderValue; // network byte order char reserved1[4]; char hardwareID[16]; char reserved2; char channel; char error; char mode; char reserved3[4]; } encoder_channel_t;