Intel
®
IXP400 Digital Signal Processing (DSP) Software Version 2.5
Resource-Specific Control Messages
32 API Reference Manual
6.7 Tone Detector Receive-Completed Message
6.8 Tone Detector Receive-FSK Message
Type XMSG_TD_RCV_CMPLT
Direction Outbound
Description Tone detector indicates the completion of receiving DTMF tones.
Format
typedef struct{
XMsgHdr_t head; /* message header */
UINT16 reason; /* the reason of completion */
UINT8 numDigits; /* number of tones received */
UINT8 digits[XMAX_DIGITBUFSIZE]; /* received tone IDs */
} XMsgTDRcvCmplt_t;
where the reason may be:
#define XMSG_STOP_REASON_EOD 2
#define XMSG_STOP_REASON_TERM 3
#define XMSG_STOP_REASON_TIMEOUT 4
Macro
#define XMSG_FIELD_TD_RCV_CMPLT(pMsg, rsn, num, pBuf)\
{\
rsn = ((XMsgTDRcvCmplt_t *)(pMsg))->reason;\
num = ((XMsgTDRcvCmplt_t *)(pMsg))->numDigits;\
pBuf= ((XMsgTDRcvCmplt_t *)(pMsg))->digits;\
}
Type MSG_TD_RCV_FSK
Direction Inbound
Description Require Tone Detector to receive FSK data
Format
typedef struct{
XMsgHdr_t head; /* message header */
UINT16 timeout; /* total time out (in 10 ms unit) */
} XMsgTDRcvFSK_t;
Macro
#define XMSG_MAKE_TD_RCV_FSK(pMsg, trans, inst, tmout)\
{\
XMSG_MAKE_HEAD(pMsg, trans, XMPR_TNDET, inst,\
sizeof(XMsgTDRcvFSK_t), XMSG_TD_RCV_FSK, 0)\
((XMsgTDRcvFSK_t *)(pMsg))->timeout = tmout;\
}
Response Tone Detector FSK receive-completed message (XMSG_TD_RCV_FSK_CMPLT)