Intel IXP400 Car Stereo System User Manual


 
Intel
®
IXP400 Digital Signal Processing (DSP) Software Version 2.5
Common Control Message
API Reference Manual 25
5.6 Set-Multiple-Parameter Message
Format
typedef struct{
XMsgHdr_t head; /* message header */
UINT16 parmId; /* parameter id */
UINT16 value; /* parameter value */
} XMsgSetParm_t;
Macro
#define XMSG_MAKE_SET_PARM(pMsg, trans, res, inst, id, val) \
{\
XMSG_MAKE_HEAD(pMsg, trans, res, inst, sizeof(XMsgSetParm_t),\
XMSG_SET_PARM, 0)\
((XMsgSetParm_t *)(pMsg))->parmId= id;\
((XMsgSetParm_t *)(pMsg))->value= val;\
}
Response
General acknowledgement message (XMSG_ACK)
Error message (XMSG_ERROR) if error.
Type XMSG_SET_MPARMS
Direction Inbound
Description Set multiple parameters to a resource
Format
typedef struct{
XMsgHdr_t head; /* message header */
UINT16 numParms; /* number of parameters */
UINT16 parmIDs[XMAX_PARMS]; /* parameter id */
UINT16 values[XMAX_PARMS]; /* parameter value */
} XMsgSetxParms_t;
Macro
#define XMSG_MAKE_SET_MPARMS(pMsg, trans, res, inst, num) \
{\
XMSG_MAKE_HEAD(pMsg, trans, res, inst, sizeof(XMsgSetmParms_t),\
XMSG_SET_MPARMS, 0)\
((XMsgSetmParms_t *)(pMsg))->numParms = num; \
}
#define XMSG_FIELD_SET_MPARMS(pMsg, pIDs, pVals) \
{\
pIDs = ((XMsgSetmParms_t *)(pMsg))->parmIDs;\
pVals = ((XMsgSetmParms_t *)(pMsg))->values;\
}
Response
General acknowledgement message (XMSG_ACK)
Error message (XMSG_ERROR) if error.
Type XMSG_SET_PARM
(Sheet 2 of 2)