Intel IXP400 Car Stereo System User Manual


 
Intel
®
IXP400 Digital Signal Processing (DSP) Software Version 2.5
Common Control Message
26 API Reference Manual
5.7 Get-Parameter Message
5.8 Get-Parameter Acknowledge Message
5.9 Get-All-Parameters Message
Type XMSG_GET_PARM
Direction Inbound
Description Gets a parameter from a resource.
Format
typedef struct{
XMsgHdr_t head; /* message header */
UINT16 parmId; /* parameter id */
} XMsgGetParm_t;
Macro
#define XMSG_MAKE_GET_PARM(pMsg, trans, res, inst, id) \
{\
XMSG_MAKE_HEAD(pMsg, trans, res, inst, sizeof(XMsgGetParm_t),\
XMSG_GET_PARM, 0)\
((XMsgGetParm_t *)(pMsg))->parmId= id;\
}
Response
Specific acknowledgement message (XMSG_GET_PARM_ACK)
Error message (XMSG_ERROR) if error.
Type XMSG_GET_PARM_ACK
Direction Outbound
Description Resource returns the parameter enquired.
Format
typedef struct{
XMsgHdr_t head; /* message header */
UINT16 parmId; /* parameter id */
UINT16 value; /* parameter value */
} XMsgGetParmAck_t;
Macro
#define XMSG_FIELD_GET_PARM_ACK(pMsg, id, val)\
{\
id = ((XMsgGetParmAck_t *)(pMsg))->parmId;\
val = ((XMsgGetParmAck_t *)(pMsg))->value;\
}
Type XMSG_GET_ALLPARMS
Direction Inbound
Description Gets all parameters from a resource.