Guest User

Untitled

a guest
Feb 7th, 2016
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.46 KB | None | 0 0
  1. /**
  2.  * eVic VTC Mini V3.00 dataflash structure for Hex Workshop.
  3. */
  4.  
  5. struct Dataflash_t {
  6.     unsigned __int32 checksum;
  7.     unsigned __int32 hwVersion;
  8.     unsigned __int8 isInitialized;
  9.     unsigned __int8 bootFlag;
  10.     /**
  11.      * 0: Temp Ni
  12.      * 1: Temp Ti
  13.      * 2: Temp SS316
  14.      * 3: TCR M1
  15.      * 4: Power
  16.      * 5: Bypass
  17.      */
  18.     unsigned __int16 mode;
  19.     unsigned __int16 power;
  20.     unsigned __int16 temp;
  21.     unsigned __int16 tempControlPower;
  22.     unsigned __int16 powerModeVolts;
  23.     unsigned __int8 unk_14[3];
  24.     unsigned __int8 isTempCelsius;
  25.     unsigned __int16 resistance;
  26.     unsigned __int8 unk_1A[8];
  27.     /**
  28.      * On dataflash re-initialization the following happens (2.00 addresses):
  29.      * sub_2FC8: 42 const bytes -> unk_const_22 (ends at fmcUID + 0xA)
  30.      * sub_3010: 42 const bytes -> fmcUID + 0xA (ends at unk_76)
  31.      * sub_2FEC: 42 const bytes -> unk_const_84 (ends at 0xAE)
  32.      */
  33.     unsigned __int8 unk_const_22[32];
  34.     unsigned __int32 fmcUID[3];
  35.     unsigned __int32 fmcUCID[4];
  36.     unsigned __int8 unk_const_5E[24];
  37.     unsigned __int16 unk_76;
  38.     unsigned __int32 status;
  39.     unsigned __int8 unk_76[8];
  40.     unsigned __int8 unk_const_84[2];
  41.     unsigned __int16 tcrM1;
  42.     unsigned __int16 tcrM2;
  43.     unsigned __int16 tcrM3;
  44.     unsigned __int8 unk_const_8C[34];
  45.     unsigned __int8 unk_AE[82];
  46.     unsigned __int32 fwVersion;
  47.     unsigned __int32 unk_104;
  48.     unsigned __int32 fmcCID;
  49.     unsigned __int32 fmcPIDaddr0;
  50.     unsigned __int32 fmcPID;
  51.     unsigned __int8 unk_114[36];
  52.     char productId[4];
  53.     unsigned __int32 unk_13C;
  54. };
Advertisement
Add Comment
Please, Sign In to add comment