Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Data Format

...

Code Block
languagecpp
titleencoder header: 32 bytes
    typedef struct {
        uint16_t    frameCountframeCounter;         // 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;

...

Code Block
languagecpp
titleencoder channel: 32 bytes
    typedef struct {
        uint32_t    encoderValuecount;              // network byte order
        char uint32_t        reserved1[4] timing;
        uint16_t    scale;
        char        hardwareID[16];
        char        reserved2reserved1;
        char        channel;
        char        error;
        char        mode;
        char        reserved3reserved2[42];
    } encoder_channel_t;

...