View Source Modbux.Response (Modbux v0.3.13)

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

Summary

Functions

@spec length({:fc | :phr | :rc | :rhr | :ri | :rir, any(), any(), any()}) :: number()
@spec pack(
  {:fc | :phr | :rc | :rhr | :ri | :rir, integer(), any(),
   maybe_improper_list() | integer()},
  any()
) :: <<_::24, _::_*8>>
@spec parse(any(), <<_::24, _::_*8>>) ::
  nil | [any()] | {:error, any()} | {:error, byte(), <<_::104>>}