View Source Modbux.Helper (Modbux v0.3.13)

Binary helper module

Summary

Functions

Link to this function

bin_to_bitlist(count, arg)

View Source
@spec bin_to_bitlist(integer(), <<_::8, _::_*8>>) :: [any()]
Link to this function

bin_to_reglist(count, arg)

View Source
@spec bin_to_reglist(pos_integer(), <<_::16, _::_*8>>) :: [char(), ...]
@spec bitlist_to_bin(any()) :: any()
@spec bool_to_byte(0 | 1) :: 0 | 255
@spec byte_count(integer()) :: integer()
@spec crc(binary()) :: <<_::16>>
@spec reglist_to_bin(any()) :: any()