Modbux v0.3.9 Modbux.Response View Source

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

Link to this section Summary

Link to this section Functions

Link to this function

length(arg)

View Source
length({:fc | :phr | :rc | :rhr | :ri | :rir, any(), any(), any()}) ::
  number()
Link to this function

pack(arg, values)

View Source
pack(
  {:fc | :phr | :rc | :rhr | :ri | :rir, integer(), any(),
   maybe_improper_list() | integer()},
  any()
) :: <<_::24, _::_*8>>
Link to this function

parse(arg1, arg2)

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