This section provides a summary of MSPP service error codes. The error codes are presented in two tables:
Alphabetical, by error code name, including a description of the problem and a possible solution
Numerical, by hexadecimal value, decimal value, and error name
All MSPP service functions return a status code. If the return code is not SUCCESS (0), it is an error code indicating that the function has failed and a reason for the failure.
MSPP service error codes are defined in the include files mspdef.h and ctaerr.h. The error codes are prefixed with MSPERR_ or CTAERR_.
The following table alphabetically lists MSPP service errors (all errors are 32 bits):
|
Error name |
Hex |
Decimal |
Description |
|
MSPERR_CANNOT_OPEN_SERVICE_COMPONENT |
0x001B0003 |
1769475 |
Cannot open a sub-component of the service. |
|
MSPERR_CHANNEL_NOT_CONNECTED |
0x001B0006 |
1769478 |
MSPP channel is not connected to any endpoints. |
|
MSPERR_CHANNEL_NOT_DEFINED |
0x001B0005 |
1769477 |
MSPP channel name is not defined. |
|
MSPERR_DRIVER_COMMAND_FAILED |
0x001B0008 |
1769480 |
SPI command failed. |
|
MSPERR_ENDPOINT_BUSY |
0x001B000C |
1769484 |
Command arrived while servicing previous command. |
|
MSPERR_ENDPOINT_NOT_ALLOCATED |
0x001B0007 |
1769479 |
MSPP endpoint is defined, but not yet allocated on the board. |
|
MSPERR_FILTER_BUSY |
0x001B000D |
1769485 |
Command arrived while servicing previous command. |
|
MSPERR_INTERNAL_HANDLE |
0x001B0002 |
1769474 |
Invalid MSPP channel or endpoint. |
|
MSPERR_INVALID_CONNECTION |
0x001B0001 |
1769473 |
Connection cannot be found. |
|
MSPERR_INVALID_HANDLE |
0x001B0004 |
1769476 |
Invalid MSPP channel or endpoint. |
|
MSPERR_SENDCOMMAND_FAILED |
0x001B000A |
1769482 |
mspSendCommand returned an error. |
|
MSPERR_SENDQUERY_FAILED |
0x001B000B |
1769483 |
mspSendQuery returned an error. |
|
MSPERR_UNKNOWN_FILTER_OBJECT |
0x001B0009 |
1769481 |
The command specified a filter that is not in the channel. |
The following table numerically lists MSPP service errors:
|
Hex |
Decimal |
Error name |
|
0x001B0001 |
1769473 |
MSPERR_INVALID_CONNECTION |
|
0x001B0002 |
1769474 |
MSPERR_INTERNAL_HANDLE |
|
0x001B0003 |
1769475 |
MSPERR_CANNOT_OPEN_SERVICE_COMPONENT |
|
0x001B0004 |
1769476 |
MSPERR_INVALID_HANDLE |
|
0x001B0005 |
1769477 |
MSPERR_CHANNEL_NOT_DEFINED |
|
0x001B0006 |
1769478 |
MSPERR_CHANNEL_NOT_CONNECTED |
|
0x001B0007 |
1769479 |
MSPERR_ENDPOINT_NOT_ALLOCATED |
|
0x001B0008 |
1769480 |
MSPERR_DRIVER_COMMAND_FAILED |
|
0x001B0009 |
1769481 |
MSPERR_UNKNOWN_FILTER_OBJECT |
|
0x001B000A |
1769482 |
MSPERR_SENDCOMMAND_FAILED |
|
0x001B000B |
1769483 |
MSPERR_SENDQUERY_FAILED |
|
0x001B000C |
1769484 |
MSPERR_ENDPOINT_BUSY |
|
0x001B000D |
1769485 |
MSPERR_FILTER_BUSY |