Modbux.Helper (Modbux v0.3.10) View Source

Binary helper module

Link to this section Summary

Link to this section Functions

Link to this function

bin_to_bitlist(count, arg)

View Source

Specs

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

bin_to_reglist(count, arg)

View Source

Specs

bin_to_reglist(pos_integer(), <<_::16, _::_*8>>) :: [char(), ...]

Specs

bitlist_to_bin(any()) :: any()

Specs

bool_to_byte(0 | 1) :: 0 | 255

Specs

byte_count(integer()) :: integer()

Specs

crc(binary()) :: <<_::16>>

Specs

reglist_to_bin(any()) :: any()