View Source Modbux.Rtu (Modbux v0.3.11)
RTU message helper, functions that handles RTU responses/requests messages.
Summary
Functions
@spec pack_req( {:fc | :phr | :rc | :rhr | :ri | :rir, integer(), integer(), maybe_improper_list() | integer()} ) :: <<_::16, _::_*8>>
@spec pack_res( <<_::16, _::_*8>> | {:fc | :phr | :rc | :rhr | :ri | :rir, integer(), any(), maybe_improper_list() | integer()}, any() ) :: <<_::16, _::_*8>>
@spec unwrap(<<_::16, _::_*8>>) :: binary()
@spec wrap(binary()) :: <<_::16, _::_*8>>