Intel
®
IXP400 Digital Signal Processing (DSP) Software Version 2.5
Resource-Specific Control Messages
30
API Reference Manual
6.3
Tone Generator Play Message
6.4
Tone Generator Play-FSK Message
Type
XMSG_TG_PLAY
Direction
Inbound
Description
Requires Tone Generator to play a tone string. (Tone ID’s are listed in the constant data section.)
Format
typedef struct{
XMsgHdr_t
head;
/* message header */
UINT8
numTones;
/* number of tones to play */
UINT8
toneId[XMAX_TONEBUFSIZE];
/* tone ID string */
} XMsgTGPlay_t;
Macro
#define XMSG_MAKE_TG_PLAY(pMsg, trans, inst, num)\
{\
XMSG_MAKE_HEAD(pMsg, trans, XMPR_TNGEN, inst, sizeof(XMsgTGPlay_t),\
XMSG_TG_PLAY, 0)\
((XMsgTGPlay_t *)(pMsg))->numTones = num;\
}
#define XMSG_FIELD_TG_PLAY(pMsg, pToneID) \
{\
pToneID= ((XMsgTGPlay_t *)(pMsg))->toneId;\
}
Type
MSG_TG_PLAY_FSK
Direction
Inbound
Description Require Tone Generator to play a FSK modulated data
Format
typedef struct{
XMsgHdr_t
head;
/* message header */
UINT8
numBytes;
/* number of bytes to play */
INT8
data[XMAX_FSKDATASIZE];
/* data string */
} XMsgTGPlayFSK_t;
Macro
#define XMSG_MAKE_TG_PLAY_FSK(pMsg, trans, inst, num)\
{\
XMSG_MAKE_HEAD(pMsg, trans, XMPR_TNGEN, inst, sizeof(XMsgTGPlayFSK_t),\
XMSG_TG_PLAY_FSK, 0)\
((XMsgTGPlayFSK_t *)(pMsg))->numBytes = num;\
}
#define XMSG_FIELD_TG_PLAY_FSK(pMsg, pData) \
{\
pData= ((XMsgTGPlayFSK_t *)(pMsg))->data;\
}
Response
•
Tone Generator Play-Completed message (
XMSG_TG_PLAY_CMPLT
)