Intel IXP400 Car Stereo System User Manual


 
Intel
®
IXP400 Digital Signal Processing (DSP) Software Version 2.5
Resource-Specific Control Messages
API Reference Manual 29
6.0 Resource-Specific Control Messages
This section defines the resource-specific messages.
6.1 CODEC Start Message
6.2 CODEC Stop-Acknowledgement Message
Type XMSG_CODER_START
Direction Inbound
Description Starts a decoder or encoder.
Format
typedef struct{
XMsgHdr_t head; /* message header */
UINT16 codecType; /* codec type */
UINT16 frmsPerPkt; /* number of frames per packet */
} XMsgCoderStart_t;
Macro
#define XMSG_MAKE_CODER_START(pMsg, trans, res, inst, cType, fpp)\
{\
XMSG_MAKE_HEAD(pMsg, trans, res, inst, sizeof(XMsgCoderStart_t),\
XMSG_CODER_START, 0)\
((XMsgCoderStart_t *)(pMsg))->codecType = cType;\
((XMsgCoderStart_t *)(pMsg))->frmsPerPkt = fpp;\
}
Response
General acknowledgement message (XMSG_ACK)
Error message (XMSG_ERROR) if error.
Type XMSG_CODER_STOP_ACK
Direction Outbound
Description Decoder or encoder resource acknowledges the
XMSG_STOP message
Format
typedef struct{
XMsgHdr_t head; /* message header */
UINT32 numFrames; /* total number of frames processed */
UINT32 numBadFrames; /* number of bad frames */
} XMsgCoderStopAck_t;
Macro
#define XMSG_FIELD_EVENT(pMsg, num, numBad)\
{\
num = ((XMsgCoderStopAck_t *)(pMsg))->numFrames;\
numBad = ((XMsgCoderStopAck_t *)(pMsg))->numBadFrames;\
}