CuteHMI - Modbus (CuteHMI.Modbus.2)
|
Functions | |
template<typename T > | |
T | toBigEndian (T src) |
template<typename T > | |
T | fromBigEndian (T src) |
template<typename T > | |
T | toLittleEndian (T src) |
template<typename T > | |
T | fromLittleEndian (T src) |
quint16 CUTEHMI_MODBUS_PRIVATE | intToUint16 (int value) |
Store integer as 16 bit unsigned integer. More... | |
quint16 CUTEHMI_MODBUS_PRIVATE | int16ToUint16 (qint16 value) |
Store 16 bit integer as 16 bit unsigned integer. More... | |
qint16 CUTEHMI_MODBUS_PRIVATE | int16FromUint16 (quint16 value) |
Restore 16 bit integer from 16 bit unsigned integer. More... | |
T cutehmi::modbus::internal::fromBigEndian | ( | T | src | ) |
T cutehmi::modbus::internal::fromLittleEndian | ( | T | src | ) |
qint16 cutehmi::modbus::internal::int16FromUint16 | ( | quint16 | value | ) |
Restore 16 bit integer from 16 bit unsigned integer.
value | value to be restored. |
quint16 cutehmi::modbus::internal::int16ToUint16 | ( | qint16 | value | ) |
Store 16 bit integer as 16 bit unsigned integer.
value | value to be stored. |
quint16 cutehmi::modbus::internal::intToUint16 | ( | int | value | ) |
Store integer as 16 bit unsigned integer.
This is convenient function that casts int
to 16 bit integer and then stores it as 16 bit unsigned integer.
value | value to be stored. Must be within 16 bit interger range (int is guaranteed to be at least 16 bits wide by the standard). |
T cutehmi::modbus::internal::toBigEndian | ( | T | src | ) |
T cutehmi::modbus::internal::toLittleEndian | ( | T | src | ) |