Subversion Repositories DashDisplay

Rev

Rev 20 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
20 mjames 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
{
24 mjames 14
        char name[8];   // Label given
15
        char suffix[3]; // mph / °C etc
20 mjames 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
24 mjames 21
        int DP; // Number of decimal places to display
20 mjames 22
} PLX_DisplayInfo;
23
 
24
 
25
extern PLX_DisplayInfo DisplayInfo[];
26
 
27
 
28
#endif /* INC_DISPLAYINFO_H_ */