Class FieldSizes
-
- All Implemented Interfaces:
public final class FieldSizesHelper class to define different field sizes in the RSCP protocol. All sizes are specified in byte
- Since:
2.0
-
-
Field Summary
Fields Modifier and Type Field Description private final IntegercompleteHeaderSizeprivate final IntegerframeHeaderMagicBytesprivate final IntegerframeHeaderControlBytesprivate final IntegerframeHeaderDataLengthprivate final IntegertimestampEpochSecondsprivate final IntegertimestampEpochNanosprivate final Integerchecksumprivate final IntegerdataTagSizeprivate final IntegerdataTypeSizeprivate final IntegerdataValueLengthSize
-
Method Summary
Modifier and Type Method Description final IntegergetCompleteHeaderSize()Size of a whole frame header in bytes final IntegergetFrameHeaderMagicBytes()final IntegergetFrameHeaderControlBytes()final IntegergetFrameHeaderDataLength()final IntegergetTimestampEpochSeconds()final IntegergetTimestampEpochNanos()final IntegergetChecksum()final IntegergetDataTagSize()final IntegergetDataTypeSize()final IntegergetDataValueLengthSize()-
-
Constructor Detail
-
FieldSizes
FieldSizes(Integer frameHeaderMagicBytes, Integer frameHeaderControlBytes, Integer frameHeaderDataLength, Integer timestampEpochSeconds, Integer timestampEpochNanos, Integer checksum, Integer dataTagSize, Integer dataTypeSize, Integer dataValueLengthSize)
- Parameters:
frameHeaderMagicBytes- Size of the MagicBytes area in a FrameHeader in bytesframeHeaderControlBytes- Size of the control area in a FrameHeader in bytesframeHeaderDataLength- Size of the length specification field in a frame header in bytestimestampEpochSeconds- Size in bytes, of the seconds part in a value field of type DataType.TIMESTAMP.timestampEpochNanos- Size in bytes, of the nanosecond portion in a value field of type DataType.TIMESTAMP.checksum- Size of the CRC checksum section in a frame in bytesdataTagSize- Size of the tag section in a data area of a frame in bytesdataTypeSize- Size of the type section in a data area of a frame in bytesdataValueLengthSize- Size of the length section in a data area of a frame in bytes
-
-
Method Detail
-
getCompleteHeaderSize
final Integer getCompleteHeaderSize()
Size of a whole frame header in bytes
- Since:
2.0
-
getFrameHeaderMagicBytes
final Integer getFrameHeaderMagicBytes()
-
getFrameHeaderControlBytes
final Integer getFrameHeaderControlBytes()
-
getFrameHeaderDataLength
final Integer getFrameHeaderDataLength()
-
getTimestampEpochSeconds
final Integer getTimestampEpochSeconds()
-
getTimestampEpochNanos
final Integer getTimestampEpochNanos()
-
getChecksum
final Integer getChecksum()
-
getDataTagSize
final Integer getDataTagSize()
-
getDataTypeSize
final Integer getDataTypeSize()
-
getDataValueLengthSize
final Integer getDataValueLengthSize()
-
-
-
-