rasProject_01 / weSweetHome  R. 240
process control       /     RasPi software         by   weinert-automation
Loading...
Searching...
No Matches
dualReg_t Union Reference

A 32 bit union. More...

#include <basicTyCo.h>

Detailed Description

A 32 bit union.

This structure serves formatting and endianess plumbing purposes.

Besides that some Modbus devices use two (dual) so called registers of the standard Modbus 16bit size for one float. Some Modbus manufactures call such dual register a "parameter".

As modbus has no data types except for the 16 bit register (with whatever semantic) libmodbus will handle the endianess for that two byte registers but can do nothing for bigger data types. Many modbus servers will use 32 bit and longer types. EASTRON smart meters handle all measurements as 32 bit floats and call that type "parameter". Hence 1 parameter is 2 registers in default big endian register ordering.

The union dualReg_t allows all endian repairs for such "parameter" type.


The documentation for this union was generated from the following file: