User`s manual

Software Manual • EKF Intelligent I/O Controller Family On
CompactPCI
- 116 -
EKF Elektronik GmbH * Philipp-Reis-Str. 4 * D-59065 HAMM (Germany)
Tel. +49 (0)2381/6890-0 * Fax. +49 (0)2381/6890-90 * E-Mail info@ekf.de * Internet http://www.ekf.de
Error Codes
The error codes returned by the command messages are explained in this section. They can
be found in the C header “ekf960if.h”.
EIMR_UNKNOWN_CMD
A message was given to the controller with a command code that is unknown to the
firmware.
EIMR_BAD_ID
A message was given to the controller with a port ID number that doesn’t correspond
to a port on the board. In most cases the ID is too large, e.g. there are 4 ports on the
board and the ID is greater than 3 (valid are 0...3).
EIMR_BAD_COUNT
A message was given to the controller with a byte count in the command data field
that was not expected by the firmware (e.g. the size of a structure passed doesn’t
match the size the firmware expected).
EIMR_BAD_BAUD
A CMDIMR_SET_BAUD message was given to the controller that passed a baud rate
not supported by the port.
EIMR_BAD_EV_MASK
A CMDIMR_SET_EV_MASK message was given to the controller that passed a bad
event mask, i.e. events that are not supported by the port.
EIMR_FLASH_ERASE
The erasure of the firmware flash ROMs failed.
EIMR_FLASH_OFFS
A message was given to the controller that passed a bad flash offset in the download
parameter structure, i.e. one that is out of range.
EIMR_FLASH_WRITE
Writing a block of data to the firmware flash ROMs failed.
EIMR_BAD_ESCAPE_CHAR
A CMDIMR_SET_INSERT_MODE message was given to the controller that passed
a bad escape character. The escape character must not be equal to the XON or
XOFF character.
EIMR_UNSUPPORTED_CMD
A message was given to the controller that was accepted by the firmware’s message
handler but was not supported by the port.
EIMR_BAD_REG
A message was given to the controller that passed a register number out of range.