xMBMInternalHandle Struct Reference


Detailed Description

Every MODBUS master instance has a handle which contains pointers to functions and a buffer for assembling MODBUS frames.

For internal use only.


Data Fields

xMBPTimerHandle xRespTimeoutHdl
xMBPEventHandle xFrameEventHdl
xMBMFrameHandle xFrameHdl
UBYTE ubIdx
USHORT usFrameMBPDULength
UBYTEpubFrameMBPDUBuffer
peMBMFrameSend pFrameSendFN
peMBMFrameReceive pFrameRecvFN
peMBMFrameClose pFrameCloseFN


Field Documentation

peMBMFrameClose xMBMInternalHandle::pFrameCloseFN
 

Pointer to a function used for shutdown.

peMBMFrameReceive xMBMInternalHandle::pFrameRecvFN
 

Pointer to a function used to receive MODBUS frames.

peMBMFrameSend xMBMInternalHandle::pFrameSendFN
 

Pointer to a function used to transmit MODBUS frames.

UBYTE* xMBMInternalHandle::pubFrameMBPDUBuffer
 

Buffer to assemble MODBUS PDUs.

UBYTE xMBMInternalHandle::ubIdx
 

The internal index used to lookup handles.

USHORT xMBMInternalHandle::usFrameMBPDULength
 

The size of the request or response FRAME.

xMBPEventHandle xMBMInternalHandle::xFrameEventHdl
 

Receives MBM_EV_SENT, MBM_EV_TIMEOUT and MBM_EV_RECEIVED events.

xMBMFrameHandle xMBMInternalHandle::xFrameHdl
 

Private data for the ASCII/RTU or TCP implementations.

xMBPTimerHandle xMBMInternalHandle::xRespTimeoutHdl
 

Timer for implementing the response timeout.


(C) 2007 Embedded Solutions. Last updated on 14 Jun 2015.