Intel IXP400 Car Stereo System User Manual


 
Intel
®
IXP400 Digital Signal Processing (DSP) Software Version 2.5
Configuration and Initialization
API Reference Manual 39
The configuration information in this function is defined as:
The
pChanTsMap field is an array that specifies how the instances of Network Endpoint are linked
with the time slots of HSS. Each element of the array is defined as:
Assuming there are two channels – one wideband and one narrowband. The time slot locations for
the channels in a 32-slot frame are shown as:
typedef struct{
int numChTDM; /* number of channels of TDM termination(1~4) */
int numChIP; /* number of channels of IP termination (1~4) */
int numPlayers; /* number of Player instances (1~4) */
int numMixers; /* number of Audio Mixers (must be 1) */
int numPortsPerMixer; /* number of ports per mixer (3~5) */
int countryCode; /* country code */
int taskPriBase; /* the base priority of DSP module */
int taskPriOrder; /* the priority ordering of the OS */
IxHssAccHssPort port; /* HSS port (must be Port 0) */
IxHssAccConfigParams *pHssCfgParms; /* HSS configuration parameters */
IxHssAccTdmSlotUsage *pHssTDMSlots; /* HSS TDM time slot mapping */
XDSPChanTdmSlots_t *pChanTsMap; /* channel vs. time slot mapping */
XPktRcvFxn_t pktRcvFxn; /* packet receiver function in egress */
XMsgAgentDec_t msgDecoder;
/* optional message decoder function of MA */
XMsgAgentEnc_t msgEncoder; /* optional message encoder function of MA */
} XDSPSysConfig_t;
where:
typedef XStatus_t (*XPktRcvFxn_t)(UINT16 channel, void *pPacket);
typedef int (*XMsgAgentDec_t)(XMsgRef_t pUsrMsg, XMsgRef_t pNativeMsg, int sequenceNo);
typedef void (*XMsgAgentEnc_t)(XMsgRef_t pUsrReply, XMsgRef_t pNativeReply,
int sequenceNo, UINT8 usrMsgType);
typedef struct{
int slotSample1; /* time slot of the 1st sample */
int slotSample2; /* time slot of the 2nd sample,
set to XCHAN_TDM_SLOT_NULL if narrowband */
} XDSPChanTdmSlots_t;
0 1 2 ... 16 17 ... 31
MSA
LSB
µ-law
...
MSB
LSB
...
1st WB
sample
NB Sample
2nd
WB
sample