struct Extron::SIS::Command(*T)
- Extron::SIS::Command(*T)
- Struct
- Value
- Object
Overview
Structure for representing a SIS device command.
Commands are composed from a set of fields. The contents and types of these are arbitrary, however they must be capable of serialising to an IO.
Defined in:
extron/sis/command.crConstructors
Macro Summary
-
[](*fields)
Syntactical suger for
Command
definition.
Instance Method Summary
-
#to_io(io : IO, format = IO::ByteFormat::SystemEndian)
Writes
self
to the passed io. -
#to_s(io : IO)
Serialises
self
in a format suitable for log messages.
Constructor Detail
Macro Detail
macro [](*fields)
#
Syntactical suger for Command
definition. Provides the ability to express
command fields in the same way as Byte
objects and other similar
collections from the Crystal std lib.
Instance Method Detail
Writes self
to the passed io.