Public Types | |
| enum | { MB_FRAME_SEND, MB_FRAME_RECEIVE } |
| enum | { MB_FRAME_RTU, MB_FRAME_ASCII, MB_FRAME_TCP, MB_FRAME_UDP, MB_FRAME_DAMAGED } |
Data Fields | |
| enum xMBAnalyzerFrame:: { ... } | eFrameDir |
| enum xMBAnalyzerFrame:: { ... } | eFrameType |
| union { | |
| struct { | |
| UBYTE ubSlaveAddress | |
| USHORT usCRC16 | |
| } xRTUHeader | |
| struct { | |
| UBYTE ubSlaveAddress | |
| UBYTE ubLRC | |
| } xASCIIHeader | |
| struct { | |
| USHORT usMBAPTransactionId | |
| USHORT usMBAPProtocolId | |
| USHORT usMBAPLength | |
| UBYTE ubUnitIdentifier | |
| } xTCPHeader | |
| struct { | |
| USHORT usMBAPTransactionId | |
| USHORT usMBAPProtocolId | |
| USHORT usMBAPLength | |
| UBYTE ubUnitIdentifier | |
| } xUDPHeader | |
| } | x |
| const UBYTE * | ubDataPayload |
| USHORT | usDataPayloadLength |
|
|
Direction of the frame.
|
|
|
Depending on the instance of the MODBUS stack different protocols can be analyzed. The implementation selects the approriate protocol and initializes the member eFrameType to this type.
|
|
|
Direction of the frame.
|
|
|
Depending on the instance of the MODBUS stack different protocols can be analyzed. The implementation selects the approriate protocol and initializes the member eFrameType to this type.
|
|
|
In case of MB_FRAME_RTU, MB_FRAME_ASCII or MB_FRAME_TCP contains the MODBUS PDU. In case of MB_FRAME_DAMAGED contains the raw frame including the header.
|
|
|
Number of bytes in ubDataPayload which can be accessed.
|
|
|
Shared structure for protocol headers. You are only allowed to access the element specified by eFrameType.
|