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 classSprogConstants.SprogModestatic classSprogConstants.SprogState
-
Field Summary
Fields Modifier and Type Field Description static intBLUE_BITstatic intCALC_BITstatic intCS_REPLY_TIMEOUTTimeout for command station to wait for reply from hardware.static intDEFAULT_Istatic intDEFAULT_MAX_SLOTSstatic intF0static intF1static intF2static intF3static intF4static intF5static intF6static intF7static intF8static intLONG_ADDstatic intMAX_ACC_DECODER_JMRI_ADDRstatic intMAX_FUNCTIONSstatic intMAX_PACKET_LENGTHstatic intMIN_SLOTSstatic intOPS_REPEATSstatic intPACKET_DELAY_WARN_THRESHOLDThreshold to warn of long delays between DCC packets to the rails.static intPOWER_BITstatic intS_REPEATSstatic intSLOT_FREEstatic intSLOT_IN_USEstatic intSLOTS_LIMITstatic intSPROGstatic intSPROG_CSstatic intSTEP_MASKstatic intSTEP128_BITstatic intSTEP14_BITstatic intSTEP28_BITstatic intTC_BOOT_REPLY_TIMEOUTstatic intTC_OPS_REPLY_TIMEOUTstatic intTC_PROG_REPLY_TIMEOUTTimeout for traffic controller to wait for reply from hardware.static intUNLOCK_BITstatic intZTC_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
-
-