Intel IXP400 Car Stereo System User Manual


 
Intel
®
IXP400 Digital Signal Processing (DSP) Software Version 2.5
Resource-Specific Control Messages
API Reference Manual 31
6.5 Tone Generator Play-Completed Message
6.6 Tone Detector Receive-Digit Message
Type XMSG_TG_PLAY_CMPLT
Direction Outbound
Description Tone Generator indicates the completion of playing tones.
Format
typedef struct{
XMsgHdr_t head; /* message header */
UINT16 reason; /* the reason of completion: */
/* XMSG_STOP_REASON_USER(1) */
/* XMSG_STOP_REASON_EOD(2) */
UINT8 numTones;
/* number of tones played. 0 if FSK data */
} XMsgTGPlayCmplt_t;
Macro
#define XMSG_FIELD_TG_PLAY_CMPLT(pMsg, rsn, num)\
{\
reason = ((XMsgTGPlayCmplt_t *)(pMsg))->reason;\
num = ((XMsgTGPlayCmplt_t *)(pMsg))->numTones;\
}
Type XMSG_TD_RCV
Direction Inbound
Description Require Tone Detector to receive a tone string.
Format
typedef struct{
XMsgHdr_t head; /* message header */
UINT16 totalTimeout; /* total time out (in 10 ms unit) */
UINT16 firstDigitTimeout; /* first digit time out (10 ms uint)*/
UINT16 interDigitTimeout; /* inter digit time out (10 ms unit)*/
UINT16 termDigit; /* OR'd terminate digit bits */
UINT8 numDigits; /* number of digits to receive */
} XMsgTDRcv_t;
Macro
#define XMSG_MAKE_TD_RCV(pMsg, trans, inst, num, term, tm, fstTm, intTm)\
{\
XMSG_MAKE_HEAD(pMsg, trans, XMPR_TNDET, inst,\
sizeof(XMsgTDRcv_t), XMSG_TD_RCV, 0)\
((XMsgTDRcv_t *)(pMsg))->numDigits = num;\
((XMsgTDRcv_t *)(pMsg))->termDigit = term;\
((XMsgTDRcv_t *)(pMsg))->totalTimeout = tm;\
((XMsgTDRcv_t *)(pMsg))->firstDigitTimeout = fstTm;\
((XMsgTDRcv_t *)(pMsg))->interDigitTimeout = intTm;\
}
Response Tone detector receives completed message (XMSG_TD_RCV_CMPLT)