deditex v0.1.0 Deditex.Helper

Link to this section Summary

Link to this section Functions

Link to this function calculate_length(cmd, width)
calculate_length(String.t(), binary()) :: non_neg_integer()
Link to this function generate_package(cmd, width, address, state)
generate_package(<<_::8>>, <<_::8>>, non_neg_integer(), map()) ::
  {byte(), binary()}
Link to this function generate_package(cmd, width, address, data, state)
generate_package(<<_::8>>, <<_::8>>, non_neg_integer(), integer(), map()) ::
  {byte(), binary()}
Link to this function translate_width(width)
translate_width(String.t()) :: non_neg_integer()