I am trying to save the audio data from 4 microphone inputs connected to the DSK_AUDIO4 daughtercard so that I can process it for sound source localization. I understand that the audio data from the 4 microphones are sent to the McBSP. How do I enable interrupts using the daughtercard such that I can save the audio data to buffers?
For instance in the loop_buf project that came with the Digital Signal Processing texbook by R Chassang and D Reay, they had a function called comm_intr() that sets up the interrupts for the AIC23 Codec.
interrupt void comm_intr() //for communication/init using interrupt { poll=0; //0 since not polling IRQ_globalDisable(); //disable interrupts c6713_dsk_init(); //init DSP and codec CODECEventId=MCBSP_getXmtEventId(DSK6713_AIC23_codecdatahandle);//McBSP1 Xmit #ifndef using_bios //do not need to point to vector table IRQ_setVecs(vectors); //point to the IRQ vector table #endif //since interrupt vector handles this IRQ_map(CODECEventId, 11); //map McBSP1 Xmit to INT11 IRQ_reset(CODECEventId); //reset codec INT 11 IRQ_globalEnable(); //globally enable interrupts IRQ_nmiEnable(); //enable NMI interrupt IRQ_enable(CODECEventId); //enable CODEC eventXmit INT11 output_sample(0); //start McBSP interrupt outputting a sample }
How do I do something similar for the PCM3794 codec on the DSK_AUDIO4 daughtercard. In particular I'm not sure what
CODECEventId=MCBSP_getXmtEventId(DSK6713_AIC23_codecdatahandle); is doing.
Thanks for the help.