Subversion Repositories DashDisplay

Rev

Rev 20 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. /*
  2.  * displayinfo.h
  3.  *
  4.  *  Created on: 19 Oct 2016
  5.  *      Author: Mike
  6.  */
  7.  
  8. #ifndef INC_DISPLAYINFO_H_
  9. #define INC_DISPLAYINFO_H_
  10.  
  11. #include "plx.h"
  12. typedef struct
  13. {
  14.         char name[8];   // Label given
  15.         char suffix[3]; // mph / °C etc
  16.         int  Units; // units to use in display (passed to PLX decoder )
  17.         int  Low; // low value to use on dial display
  18.         int  High; // high value to use on dial display
  19.         int  TickScale; // Scale values by this to give tick spacing
  20.           // so a dial with 0.. 1300 and TickScale=100 would display 14 major ticks on the dial face
  21.         int DP; // Number of decimal places to display
  22. } PLX_DisplayInfo;
  23.  
  24.  
  25. extern PLX_DisplayInfo DisplayInfo[];
  26.  
  27.  
  28. #endif /* INC_DISPLAYINFO_H_ */
  29.