Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

# _MBAP_Struct Struct Reference

`#include <mbtcp.h>`

## Detailed Description

Definition at line 26 of file mbtcp.h.

## Data Fields
u16 | Length
| following bytes number
u16 | ProtocolIdentifier
| 0 for Modbus protocol
u16 | TransactionIdentifier
| copy from server to client
u8 | UnitIdentifier
| copy from server to client, maybe map serial address

## Field Documentation

u16 _MBAP_Struct::Length

| following bytes number Definition at line 29 of file mbtcp.h. Referenced by MBTCPGetMBAP(), MBTCPMakeMBAP(), MBTCPMaskwWriteRegister(), MBTCPReadCoils(), MBTCPReadDecreteInputs(), MBTCPReadFIFOQueue(), MBTCPReadHoldingRegisters(), MBTCPReadInputRegisters(), MBTCPReadWriteMultipleRegisters(), MBTCPSendReadCoils(), MBTCPSendReadDecreteInputs(), MBTCPSendReadFIFOQueue(), MBTCPSendReadHoldingRegisters(), MBTCPSendReadInputRegisters(), MBTCPSendWriteMultipleRegisters(), MBTCPSendWriteSingleCoil(), MBTCPSendWriteSingleRegister(), MBTCPWriteMBAP(), MBTCPWriteMultipleCoils(), MBTCPWriteMultipleRegisters(), MBTCPWriteSingleCoil(), and MBTCPWriteSingleRegister().

u16 _MBAP_Struct::ProtocolIdentifier

| 0 for Modbus protocol Definition at line 28 of file mbtcp.h. Referenced by MBTCPGetMBAP(), MBTCPMakeMBAP(), and MBTCPWriteMBAP().

u16 _MBAP_Struct::TransactionIdentifier

| copy from server to client Definition at line 27 of file mbtcp.h. Referenced by MBTCPGetMBAP(), MBTCPMakeMBAP(), MBTCPSendAndWaitResponse(), MBTCPWriteMBAP(), and serial_slave_child().

u8 _MBAP_Struct::UnitIdentifier

| copy from server to client, maybe map serial address Definition at line 30 of file mbtcp.h. Referenced by MBTCPGetMBAP(), MBTCPMakeMBAP(), MBTCPWriteMBAP(), serial_master_child(), and serial_slave_child().

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

- C:/modbus/library/mbtcp.h