Tani OpcPipe protocol  1.0.5
Tani OpcPipe protocol
Macros
data value flags

Macros

#define TYP_FLAGS_ENDIAN_MASK   0x000F
 
#define TYP_FLAGS_ENDIAN_UNSPECIFIED   0x0000
 unknown endian value or cpu format
 
#define TYP_FLAGS_ENDIAN_1234   0x0001
 big endian format, is default
 
#define TYP_FLAGS_ENDIAN_4321   0x0002
 little endian format
 
#define TYP_FLAGS_ENDIAN_3412   0x0003
 wordswap big endian format
 
#define TYP_FLAGS_ENDIAN_2143   0x0004
 wordswap little endian format
 
#define TYP_FLAGS_ALWAYS_NEW   0x0010
 always send this value, even if it is equal to the previous one (e.g sync read on inactive item)
 
#define TYP_FLAGS_CREATE_ACTIVATED   0x0020
 immediately activate on create item
 
#define TYP_FLAGS_ARRAY   0x0040
 
#define TYP_FLAGS_BLOCKED   0x0080
 partial data, more data for same item follow; use only for sync read/write
 
#define TYP_FLAGS_BITARRAY_LEN_MASK   0x0700
 exact length of bit array (= number of used bits in last data byte); 0 = all 8 bits used
 
#define TYP_FLAGS_BITARRAY_LEN_SHIFT   8
 shift amount for TYP_FLAGS_BITARRAY_LEN_MASK
 
#define TYP_FLAGS_ERROR_IF_IMPOSSIBLE   0x0800
 Brings an error if the conversion may be impossible (e.g. -20 to unsigned)
 
#define TYP_FLAGS_ERROR_IF_WRONG_TYPE   0x1000
 Brings an error if any conversion is needed (e.g. 8-bit to 16-bit, even if the value would fit in)
 
#define TYP_FLAGS_ENDIAN_LOCAL_CPU   TYP_FLAGS_ENDIAN_4321
 

Detailed Description