/** * gets the left and right channel input then sets the data ready flag */ void receive_interrupt(void) { if(in_channel_flag){ DSK6713_AIC23_read(hCodec, &in_tmp_left); in_left = (Int16)in_tmp_left; in_channel_flag = 0; input_ready = 1; } else { DSK6713_AIC23_read(hCodec, &in_tmp_right); in_right = (Int16)in_tmp_right; in_channel_flag = 1; input_ready = 1; } }
int32 codec_read(void){ while(!(DSK6713_AIC23_read(manejador, &codec_input_data))); return codec_input_data; }