View Javadoc
1   package com.starphoenixmedia.candle_pos.scale;
2   
3   /**
4    *
5    * @author jlhawkwell
6    */
7   public enum ScaleMode
8   {
9   	MODE_NORMAL(0, "Normal mode: positive weight"),
10  	MODE_TEST(1, "Test mode: adjust zero counts"),
11  	MODE_SPAN(2, "Calibration mode: adjust SPAN"),
12  	MODE_TARE(3, "TARE"),
13  	MODE_LO(4, "Low Battery"),
14  	MODE_ERRO(5, "Overload"),
15  	MODE_ERRL(6, "Zero counts too low"),
16  	MODE_IIII(7, "Negative weight"),
17  	MODE_8888(12, "Displaying 8888"),
18  	MODE_ERRT(13, "Tare Error"),
19  	MODE_CALT(14, "Calibration mode: tare"),
20  	MODE_CAL(15, "Calibration mode");
21  
22  	private int m;
23  	private String desc;
24  	ScaleMode(int i, String s) { m = i; desc = s; }
25  
26  	public int getValue() { return m; }
27  	public String getString() { return desc; }
28  }