Ethernet Module Interface (EMI)
– API Description
Copyright IXXAT Automation GmbH
60
IEM Manual, 1.5
COM_k_INVALID_STATE
routine called in invalid state
COM_k_ERROR
wrong board handle or error response
4.1.2.16 EMI_cmdChannelConfigure()
COM_e_ERROR EMI_cmdChannelConfigure(COM_t_BOARD_REF td_brdRef,
const COM_t_CMD_REQUEST *ps_config,
BOOL o_blocking,
COM_t_CMD_RESPONSE *ps_response);
Description
This function forwards services for the configuration of the application and the
protocol stack. The CMD channel is used for the command transmission. The
function is blocked waiting on the response if the o_blocking is TRUE, other-
wise the application has to query for the response by means of
EMI_cmdCommandRespQuery.
Remarks
This
function
can
only
be
called
after
successful
call
of
EMI_cmdChannelOpen.
Parameter
Dir.
Description
td_brdRef
IN
unique IEM reference
ps_config
IN
pointer to the structure containing the bus protocol specific con-
figuration data.
o_blocking
IN
blocking/non-blocking execution
ps_response
OUT
address receiving response data in sync mode
Return Value
Description
COM_k_OK
channel configuration succeeded
COM_k_BUSY
CMD channel busy
COM_k_INVALID_BOARD
invalid IEM reference
COM_k_INVALID_STATE
routine called in invalid state
COM_k_INVALID_PARAM
ps_response=0 in sync mode
COM_k_ERROR
channel configuration failed
4.1.2.17 EMI_cmdCfgStore()
COM_e_ERROR EMI_cmdCfgStore(COM_t_BOARD_REF td_brdRef, BOOL o_blocking);