Intel IXP400 Car Stereo System User Manual


 
Intel
®
IXP400 Digital Signal Processing (DSP) Software Version 2.5
Resource-Specific Control Messages
API Reference Manual 35
6.12 Get-Jitter-Buffer-Statistics Message
6.13 Complete Message of Getting Jitter Buffer Statistics
Type XMSG_GET_JBSTAT
Direction Inbound
Description Get the jitter buffer statistics from a Decoder instance.
Format
typedef struct{
XMsgHdr_t head; /* message header */
UINT16 reset; /* reset flag, 1: reset statistics after
retrieve the information */
} XMsgGetJBStat_t;
Macro
#define XMSG_MAKE_GET_JBSTAT(pMsg, trans, inst, clr)\
{\
XMSG_MAKE_HEAD(pMsg, trans, XMPR_DEC, inst,\
sizeof(XMsgGetJBStat_t), XMSG_GET_JBSTAT, 0)\
((XMsgGetJBStat_t *)(pMsg))->reset = clr;\
}
Response Complete message of getting jitter buffer statistics (XMSG_GET_JBSTAT_CMPLT)
Type XMSG_GET_JBSTAT_CMPLT
Direction Outbound
Description Response to the message of getting the jitter buffer statistics.
Format
typedef struct{
XMsgHdr_t head; /* message header */
XJBStatistics_t stat; /* jiter buffer statistics */
} XMsgGetJBStatCmplt_t;
where the XMsgGetJBStatCmplt_t date structure of jitter buffer statistics
is defined as
typedef struct{
UINT32 rcvdPackets; /* total packets received */
UINT32 lostPackets; /* lost packets */
UINT32 badFrames; /* decoder bad frames */
UINT32 rcvdTonePackets; /* RFC2833 packets received */
} XJBStatistics_t;
Macro
#define XMSG_FIELD_GET_JBSTAT_CMPLT(pMsg, pStat)\
{\
pStat = &(((XMsgGetJBStatCmplt_t *)(pMsg))->stat);\
}