Intel
®
IXP400 Digital Signal Processing (DSP) Software Version 2.5
Common Control Message
28
API Reference Manual
5.12
Error Message
5.13
Event Message
Type
XMSG_ERROR
Direction
Outbound
Description
Resource reports an error condition. (See constant data section for error codes.)
Format
typedef struct{
XMsgHdr_t
head;
/* message header */
UINT32
code;
/* error code */
UINT32
data1;
/* error data1 */
UINT32
data2;
/* error data2 */
} XMsgError_t;
Macro
#define XMSG_FIELD_ERROR(pMsg, c, d1, d2)\
{\
c = ((XMsgError_t *)(pMsg))->code;\
d1 = ((XMsgError_t *)(pMsg))->data1;\
d2 = ((XMsgError_t *)(pMsg))->data2;\
}
Type
XMSG_EVENT
Direction
Outbound
Description
Resource reports an event condition. (See constant data section for error codes.)
Format
typedef struct{
XMsgHdr_t
head;
/* message header */
UINT32
code;
/* event code */
UINT32
data1;
/* event data1 */
UINT32
data2;
/* event data2 */
} XMsgEvent_t;
Macro
#define XMSG_FIELD_EVENT(pMsg, c, d1, d2)\
{\
c = ((XMsgEvent_t *)(pMsg))->code;\
d1 = ((XMsgEvent_t *)(pMsg))->data1;\
d2 = ((XMsgEvent_t *)(pMsg))->data2;\
}