Ethernet Module Interface (EMI)
– API Description
Copyright IXXAT Automation GmbH
74
IEM Manual, 1.5
Remarks
This function returns the connection reference (parameter ps_conRef) if the
function
EMI_srvRemoteConnOpen
is
called
previous
to
EMI_srvindSegmentQuery call.
Parameter
Dir.
Description
td_brdRef
IN
unique IEM reference
ps_conRef
IN/OU
T
connection reference
ps_indRef
OUT
reference to identify associated request
ps_indication
OUT
pointer to structure containing the indication data
Return Value
Description
COM_k_OK
indication received
COM_k_BUSY
no indication received from the specified channel
COM_k_INVALID_STATE
routine called in invalid state
COM_k_ERROR
parameter error
4.1.2.36 EMI_srvServiceHandle()
COM_e_ERROR EMI_srvServiceHandle(COM_t_BOARD_REF td_brdRef);
Description
This function executes the queues of service requests and service confirma-
tions. Received messages are reassembled and stored in the response re-
spectively indication queue. The size of both queues is at least two to imple-
ment a double-buffer between producer (EMI_srvServiceHandle) and con-
sumer (application). EMI_srvServiceHandle calls EMI_srvreqServiceHandle for
the segmented transmission of requests. A similar function exists for the seg-
mented transmission of a single confirmation (EMI_srvconfServiceHandle). To
receive a single response srvRespQuery is called several times. A similar
function exists for the reception of a single indication (srvIndQuery). Every re-
ceived response respectively indication is signaled via a callback function to
the application. The function EMI_srvServiceHandle has to be called periodi-
cally by the application.
Remarks
The user has to ensure that this function is called cyclically to provide for a
continuous segmented service data transfer.