Modbux.Response (Modbux v0.3.10) View Source

Response helper, functions that handles Server & Slave response messages.

Link to this section Summary

Link to this section Functions

Specs

length({:fc | :phr | :rc | :rhr | :ri | :rir, any(), any(), any()}) :: number()

Specs

pack(
  {:fc | :phr | :rc | :rhr | :ri | :rir, integer(), any(),
   maybe_improper_list() | integer()},
  any()
) :: <<_::24, _::_*8>>

Specs

parse(any(), <<_::24, _::_*8>>) ::
  nil | [any()] | {:error, any()} | {:error, byte(), <<_::104>>}