/* Waits for data from the specified data line. */
void I2SDataGet(unsigned long ulBase, unsigned long ulDataLine, unsigned long *pulData)
/* Waits for data from the specified data line. */
void I2SDataGet(unsigned long ulBase, unsigned long ulDataLine, unsigned long *pulData)
{
  ulDataLine = (ulDataLine-1) << 2;
  while(!(HWREG(ulBase + MCASP_O_RXSTAT) & MCASP_RXSTAT_RDATA))
  {
  }
  *pulData = HWREG(ulBase + MCASP_O_RXBUF0 + ulDataLine);
}