Hi,I use packet mode to transmitte one AXC correctly,but when do in 4 AXC,the first data in my buffer is not in the head of frame and the location is not constant.
In the UG"
In PD, PE common setup, AxC offset window, AxC offset, RadtTC, FrameTC and
FrameMsgTC is not used for generic packet mode. In case of AxC data transfer, we had
to keep correct radio standard timing and AxC data on/off time. If we lose the correct
channel timing, PD (PE) doesn't work for the whole radio frame time. But in case of
generic packet mode, we don't need to keep that correct timing. User program can send
any size of packet at any time they want. PD and PE don't really care the junk duration
between packets and fills empty message during that time. Timestamp field shows
which message has SOP or EOP, so PD easily detect which OBSAI message has valid
data or invalid data."
So ,just use the setup as follows:
for(i=0;i<4;i++)//for(i=0;i<4;i++)
{//for AxC channel 0 1 2 and 3
PeCommonSetup.bEnableCh[i] = TRUE;//Enable PE channel for channel 0
PeCommonSetup.PeDmaCh0[i].bCrcEn =TRUE;// FALSE;//disable CRC for channel 0//例程中为TRUE
//PeCommonSetup.PeDmaCh0[i].FrameTC = 0;//use framing terminal count 0 for channel 0
PeCommonSetup.PeDmaCh0[i].RtControl = CSL_AIF2_PE_RT_INSERT;//use PE insert option for channel 0
PeCommonSetup.PeDmaCh0[i].RtControl = CSL_AIF2_PE_RT_ADD16;//for second DSP in the chain
PeCommonSetup.PeDmaCh0[i].CrcType = CSL_AIF2_CRC_16BIT;//CRC type for channel 0
PeCommonSetup.PeDmaCh0[i].isEthernet = FALSE;//AxC data
PeCommonSetup.PeDmaCh0[i].CrcObsaiHeader = FALSE;//calculate OBSAI header CRC
PeCommonSetup.PeInFifo[i].SyncSymbol = 0;//sync symbol offset for channel 0
PeCommonSetup.PeInFifo[i].MFifoWmark = 3;//Message FIFO water mark for channel 0
PeCommonSetup.PeInFifo[i].MFifoFullLevel = 5;//Message FIFO full level for channel 0
PeCommonSetup.PeChObsaiType[i] =OBSAI_TYPE_GENERIC;// OBSAI_TYPE_LTE;//OBSAI header type for channel 0
PeCommonSetup.PeChObsaiTS[i] = 2;//0;//OBSAI header Time Stamp for channel 0
PeCommonSetup.PeChObsaiAddr[i] = i;//OBSAI header address for channel 0
PeCommonSetup.PeChObsaiTsMask[i] = CSL_AIF2_ROUTE_MASK_4LSB;//CSL_AIF2_ROUTE_MASK_NONE;//OBSAI header TS mask for channel 0//
PeCommonSetup.PeChObsaiTsfomat[i] = CSL_AIF2_TSTAMP_FORMAT_GEN_PKT;//CSL_AIF2_TSTAMP_FORMAT_NORM_TS;//OBSAI header TS format for channel 0//
PeCommonSetup.PeObsaiPkt[i] =TRUE;//FALSE;//Select OBSAI AxC or packet mode for channel 0//
PeCommonSetup.PeBbHop[i] = FALSE;//Take OBSAI address from CPPI PS bits for channel 0
PeCommonSetup.ChIndex0[i] = i; //channel 0
PeCommonSetup.bEnableChIndex0[i] = TRUE;
}
I think the corresponding parameter setting up is the font marked in red.
but ,I made no progress.
Could you tell me why?