Rev 2 | Rev 6 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 2 | Rev 4 | ||
|---|---|---|---|
| Line 31... | Line 31... | ||
| 31 | PLX_Duty = 20, //Duty cycle |
31 | PLX_Duty = 20, //Duty cycle |
| 32 | PLX_Volts = 18, //Volts |
32 | PLX_Volts = 18, //Volts |
| 33 | } PLX_Observations; |
33 | } PLX_Observations; |
| 34 | 34 | ||
| 35 | extern double ConveriMFDRaw2Data(int sensor, int units, int raw); |
35 | extern double ConveriMFDRaw2Data(int sensor, int units, int raw); |
| - | 36 | ||
| - | 37 | #pragma pack(push,1) |
|
| - | 38 | typedef struct |
|
| - | 39 | { |
|
| - | 40 | char ObsH; |
|
| - | 41 | char ObsL; |
|
| - | 42 | char ObsIndex; |
|
| - | 43 | char ReadingH; |
|
| - | 44 | char ReadingL; |
|
| - | 45 | } PLX_SensorInfo; |
|
| - | 46 | #pragma pack(pop) |
|
| - | 47 | ||
| - | 48 | typedef struct |
|
| - | 49 | { |
|
| - | 50 | char name[5]; |
|
| - | 51 | int Units; // units to use in display (passed to PLX decoder ) |
|
| - | 52 | int Low; // low value to use on dial display |
|
| - | 53 | int High; // high value to use on dial display |
|
| - | 54 | int TickScale; // Scale values by this to give tick spacing |
|
| - | 55 | // so a dial with 0.. 1300 and TickScale=100 would display 14 major ticks on the dial face |
|
| - | 56 | } PLX_DisplayInfo; |
|
| - | 57 | ||
| - | 58 | ||
| - | 59 | extern PLX_DisplayInfo DisplayInfo[]; |
|
| - | 60 | ||
| - | 61 | ||
| - | 62 | static inline int ConvPLX(char H, char L) |
|
| - | 63 | { |
|
| - | 64 | return ((H & 0x3F)<<6) | (L & 0x3F); |
|
| - | 65 | } |
|
| - | 66 | ||
| - | 67 | ||