EVE 1.0
MbVirtualfunc_t Struct Reference

Structure for holding a number of protocol specific virtual functions. UART related functions are the part of Modbus driver. Other protocols must be implemented on the application level. It is not necessary to implement MbStart and/or MbStop functions, if there is nothing to do. Thus functions can be settlet to NULL in the structure. However MbSendData/MbReceiveData functions are mandatory. A pointer of array of these structures must be settled as the Virtualfunc member of the modbus_t structure. More...

#include <modbus.h>

Collaboration diagram for MbVirtualfunc_t:

Data Fields

MbVfuncStart_t MbStart
 Function to call on the protocol start.
 
MbVfuncStop_t MbStop
 Function to call on the protocol stop.
 
MbVfuncSend_t MbSendData
 Function to call in order to send data (see MbVfuncSend_t)
 
MbVfuncReceive_t MbReceiveData
 Function to call in order to send data (see MbVfuncReceive_t)
 

Detailed Description

Structure for holding a number of protocol specific virtual functions. UART related functions are the part of Modbus driver. Other protocols must be implemented on the application level. It is not necessary to implement MbStart and/or MbStop functions, if there is nothing to do. Thus functions can be settlet to NULL in the structure. However MbSendData/MbReceiveData functions are mandatory. A pointer of array of these structures must be settled as the Virtualfunc member of the modbus_t structure.

Definition at line 407 of file modbus.h.