Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- typedef struct __attribute__((packed)){
- uint32_t u32CalStringLen; // Cal Name length (Non-null terminated)
- char cCalStringPtr[u32CalStringLen]; // Cal Name string without null termination
- uint32_t u32CalReadCount; // Cal array element count
- uint32_t u32CalDataType; // Cal data type 0->BYTE, 1->SHORT, 2->LONG, 3->FLOAT. Used for type-casting
- uint32_t p32CalDataPtr[u32CalReadCount]; // actual Cal data
- }tTekCalConst;
- typedef struct __attribute__((packed)){
- uint32_t u32EndStringLen; // Always = 3
- char cEnd[3]; // 'E', 'N', 'D'
- }tTekCalEnd
- /* The actual SPC and Factory calibration data will look like this*/
- typedef struct __attribute__((packed)){
- uint16_t u16CheckSum;
- tTekCalConst tCalConst1;
- tTekCalConst tCalConst2;
- // ...
- // ...
- // ...
- tTekCalEnd tCalEnd;
- }tTekCalData;
Advertisement
Add Comment
Please, Sign In to add comment