Package jmri.jmrix.sprog
Class SprogConstants
- java.lang.Object
-
- jmri.jmrix.sprog.SprogConstants
-
public final class SprogConstants extends java.lang.Object
Constants to represent values seen in SPROG traffic.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SprogConstants.SprogMode
static class
SprogConstants.SprogState
-
Field Summary
Fields Modifier and Type Field Description static int
BLUE_BIT
static int
CALC_BIT
static int
CS_REPLY_TIMEOUT
Timeout for command station to wait for reply from hardware.static int
DEFAULT_I
static int
DEFAULT_MAX_SLOTS
static int
F0
static int
F1
static int
F2
static int
F3
static int
F4
static int
F5
static int
F6
static int
F7
static int
F8
static int
LONG_ADD
static int
MAX_ACC_DECODER_JMRI_ADDR
static int
MAX_FUNCTIONS
static int
MAX_PACKET_LENGTH
static int
MIN_SLOTS
static int
OPS_REPEATS
static int
PACKET_DELAY_WARN_THRESHOLD
Threshold to warn of long delays between DCC packets to the rails.static int
POWER_BIT
static int
S_REPEATS
static int
SLOT_FREE
static int
SLOT_IN_USE
static int
SLOTS_LIMIT
static int
SPROG
static int
SPROG_CS
static int
STEP_MASK
static int
STEP128_BIT
static int
STEP14_BIT
static int
STEP28_BIT
static int
TC_BOOT_REPLY_TIMEOUT
static int
TC_OPS_REPLY_TIMEOUT
static int
TC_PROG_REPLY_TIMEOUT
Timeout for traffic controller to wait for reply from hardware.static int
UNLOCK_BIT
static int
ZTC_BIT
-
-
-
Field Detail
-
SPROG
public static final int SPROG
- See Also:
- Constant Field Values
-
SPROG_CS
public static final int SPROG_CS
- See Also:
- Constant Field Values
-
PACKET_DELAY_WARN_THRESHOLD
public static int PACKET_DELAY_WARN_THRESHOLD
Threshold to warn of long delays between DCC packets to the rails. Worst case DCC packet transmission time is ~10 ms, which equates to 100 packets/s. Wait for a somewhat arbitrary time before reporting a possible issue with the system performance. A delay of 50 ms equates to 20 packets/s if sustained. Slower systems such as Raspberry Pi with flash based file systems are more likely to exhibit longer delays between packets.
-
CS_REPLY_TIMEOUT
public static int CS_REPLY_TIMEOUT
Timeout for command station to wait for reply from hardware. Slower systems such as Raspberry Pi with flash based file systems are more likely to exhibit longer delays.
-
TC_PROG_REPLY_TIMEOUT
public static int TC_PROG_REPLY_TIMEOUT
Timeout for traffic controller to wait for reply from hardware. Most replies are received from SPROG hardware with a few seconds, but paged mode programming operations can take considerably longer when reading a high value from a CV. Therefore we set a very long timeout, which should longer than the programmer timeout.
-
TC_OPS_REPLY_TIMEOUT
public static int TC_OPS_REPLY_TIMEOUT
-
TC_BOOT_REPLY_TIMEOUT
public static int TC_BOOT_REPLY_TIMEOUT
-
S_REPEATS
public static final int S_REPEATS
- See Also:
- Constant Field Values
-
OPS_REPEATS
public static final int OPS_REPEATS
- See Also:
- Constant Field Values
-
MAX_PACKET_LENGTH
public static final int MAX_PACKET_LENGTH
- See Also:
- Constant Field Values
-
SLOT_FREE
public static final int SLOT_FREE
- See Also:
- Constant Field Values
-
SLOT_IN_USE
public static final int SLOT_IN_USE
- See Also:
- Constant Field Values
-
DEFAULT_MAX_SLOTS
public static final int DEFAULT_MAX_SLOTS
- See Also:
- Constant Field Values
-
MIN_SLOTS
public static final int MIN_SLOTS
- See Also:
- Constant Field Values
-
SLOTS_LIMIT
public static final int SLOTS_LIMIT
- See Also:
- Constant Field Values
-
MAX_FUNCTIONS
public static int MAX_FUNCTIONS
-
F8
public static final int F8
- See Also:
- Constant Field Values
-
F7
public static final int F7
- See Also:
- Constant Field Values
-
F6
public static final int F6
- See Also:
- Constant Field Values
-
F5
public static final int F5
- See Also:
- Constant Field Values
-
F4
public static final int F4
- See Also:
- Constant Field Values
-
F3
public static final int F3
- See Also:
- Constant Field Values
-
F2
public static final int F2
- See Also:
- Constant Field Values
-
F1
public static final int F1
- See Also:
- Constant Field Values
-
F0
public static final int F0
- See Also:
- Constant Field Values
-
UNLOCK_BIT
public static final int UNLOCK_BIT
- See Also:
- Constant Field Values
-
CALC_BIT
public static final int CALC_BIT
- See Also:
- Constant Field Values
-
POWER_BIT
public static final int POWER_BIT
- See Also:
- Constant Field Values
-
ZTC_BIT
public static final int ZTC_BIT
- See Also:
- Constant Field Values
-
BLUE_BIT
public static final int BLUE_BIT
- See Also:
- Constant Field Values
-
STEP_MASK
public static final int STEP_MASK
- See Also:
- Constant Field Values
-
STEP14_BIT
public static final int STEP14_BIT
- See Also:
- Constant Field Values
-
STEP28_BIT
public static final int STEP28_BIT
- See Also:
- Constant Field Values
-
STEP128_BIT
public static final int STEP128_BIT
- See Also:
- Constant Field Values
-
LONG_ADD
public static final int LONG_ADD
- See Also:
- Constant Field Values
-
DEFAULT_I
public static final int DEFAULT_I
- See Also:
- Constant Field Values
-
MAX_ACC_DECODER_JMRI_ADDR
public static final int MAX_ACC_DECODER_JMRI_ADDR
- See Also:
- Constant Field Values
-
-