Modbux v0.3.9 Modbux.Helper 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
bin_to_bitlist(integer(), <<_::8, _::_*8>>) :: [any()]
Link to this function

bin_to_reglist(count, arg)

View Source
bin_to_reglist(pos_integer(), <<_::16, _::_*8>>) :: [char(), ...]
Link to this function

bitlist_to_bin(values)

View Source
bitlist_to_bin(any()) :: any()
Link to this function

bool_to_byte(value)

View Source
bool_to_byte(0 | 1) :: 0 | 255
Link to this function

byte_count(count)

View Source
byte_count(integer()) :: integer()
Link to this function

crc(data)

View Source
crc(binary()) :: <<_::16>>
Link to this function

reglist_to_bin(values)

View Source
reglist_to_bin(any()) :: any()