TinLethax

Tektronix DPO/MSO2000 calibration data format

Sep 29th, 2025 (edited)
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.82 KB | Source Code | 0 0
  1. typedef struct __attribute__((packed)){
  2.     uint32_t    u32CalStringLen;        // Cal Name length (Non-null terminated)
  3.     char        cCalStringPtr[u32CalStringLen];     // Cal Name string without null termination
  4.     uint32_t    u32CalReadCount;        // Cal array element count
  5.     uint32_t    u32CalDataType;         // Cal data type 0->BYTE, 1->SHORT, 2->LONG, 3->FLOAT. Used for type-casting
  6.     uint32_t    p32CalDataPtr[u32CalReadCount];         // actual Cal data
  7. }tTekCalConst;
  8.  
  9. typedef struct __attribute__((packed)){
  10.     uint32_t    u32EndStringLen;        // Always = 3
  11.     char        cEnd[3];                // 'E', 'N', 'D'
  12. }tTekCalEnd
  13.  
  14. /* The actual SPC and Factory calibration data will look like this*/
  15. typedef struct __attribute__((packed)){
  16.     uint16_t        u16CheckSum;
  17.     tTekCalConst    tCalConst1;
  18.     tTekCalConst    tCalConst2;
  19.     // ...
  20.     // ...
  21.     // ...
  22.     tTekCalEnd      tCalEnd;
  23. }tTekCalData;
Advertisement
Add Comment
Please, Sign In to add comment