imc_def_base library

Classes

BitfieldType
This is the base for Bitfield types
BuilderWithInstanciator<V extends Built<V, B>, B extends Builder<V, B>>
This is to be used as interface for the builders
EnumType
This is the base for Enums types
Flags
This contains internal IMC flags for messages
ImcBuilderHeaderPart
Is a mixin in the messages to get and set header fields
ImcEntityId
This represents constants for Entities IDs
ImcField
This contains internal IMC field info
ImcId
This represents constants for systems IDs
ImcSerializer<M extends Message, B>
This is the interface for serializing the IMC messages
ImcType
This contains internal IMC types for fields
Message
This is the base class for IMC messages

Constants

crc_table → const List<int>
const <int>[0x0000, 0xC0C1, 0xC181, 0x0140, 0xC301, 0x03C0, 0x0280, 0xC241, 0xC601, 0x06C0, 0x0780, 0xC741, 0x0500, 0xC5C1, 0xC481, 0x0440, 0xCC01, 0x0CC0, 0x0D80, 0xCD41, 0x0F00, 0xCFC1, 0xCE81…
endian_ser → const Endian
Endian.big
2
header_size → const int
20

Functions

calcAndAddFooter(ByteData byteData, int offset, int lenght) → void
calcCrc(ByteData byteData, int offset, int lenght) int
deserializeHeader(ImcBuilderHeaderPart builder, ByteData byteData, Endian endianness, [int headerStartoffset = 0]) int
getCrcFooter(ByteData byteData, int offset, Endian endianness) int
getEndianness(ByteData byteData, [int offset = 0]) Endian
getMessageIdFromHeaderIfSyncNumberOk(ByteData data, int offset) int
serializeHeader(ImcMessage message, ByteData byteData) int
writePayloadSize(ByteData byteData, int payloadSize) → void