21 #ifndef __UCPROTOCOL_H
22 #define __UCPROTOCOL_H
30 #define UC_MAXSIZE 4096
37 #define UC_MAXDATA ((UC_MAXSIZE - sizeof(UcTelegram)) / sizeof(Int32))
62 #define UC_REASON_OK 0
63 #define UC_REASON_ADDR 1
64 #define UC_REASON_RANGE 2
65 #define UC_REASON_IGNORED 3
66 #define UC_REASON_VERIFY 4
67 #define UC_REASON_TYPE 5
68 #define UC_REASON_UNKNW 99
80 typedef int32_t
Int32;
UcTelegram hdr
Telegram header.
Int32 opcode
Opcode, UC_SET, UC_GET etc.
UcTelegram hdr
Telegram header.
UcTelegram hdr
Telegram header.
Int32 index
Sub-identifier of the object (if applicable)
UcTelegram hdr
Telegram header.
Int32 correlationNumber
Identity number for matching the answer.
Int32 address
Identifier (name) of the controller object.
Int32 reason
Error code, UC_REASON...
Int32 length
Length of the rest(!) of the telegram.