/*
					SPI_RX_Buff_Ptr = ADS1292.ads1292_Read_Data(); // Read the data,point the data to a pointer

    for(i = 0; i < 9; i++)
    {
      SPI_RX_Buff[SPI_RX_Buff_Count++] = *(SPI_RX_Buff_Ptr + i);  // store the result data in array
    }
    ads1292dataReceived = true;
  }

  
  if(ads1292dataReceived == true)       // process the data 
  {     
    j=0;
    for(i=0;i<6;i+=3)                  // data outputs is (24 status bits + 24 bits Respiration data +  24 bits ECG data) 
    {

        uecgtemp = (unsigned long) (  ((unsigned long)SPI_RX_Buff[i+3] << 16) | ( (unsigned long) SPI_RX_Buff[i+4] << 8) |  (unsigned long) SPI_RX_Buff[i+5]);
        uecgtemp = (unsigned long) (uecgtemp << 8);
        secgtemp = (signed long) (uecgtemp);
        secgtemp = (signed long) (secgtemp >> 8);

        s32DaqVals[j++]=secgtemp;
    }
 
    DataPacketHeader[0] = CES_CMDIF_PKT_START_1 ;   // Packet header1 :0x0A
    DataPacketHeader[1] = CES_CMDIF_PKT_START_2;    // Packet header2 :0xFA
    DataPacketHeader[2] = (uint8_t) (data_len);     // data length
    DataPacketHeader[3] = (uint8_t) (data_len>>8);
    DataPacketHeader[4] = CES_CMDIF_TYPE_DATA;      // packet type: 0x02 -data 0x01 -commmand

    DataPacketHeader[5] = s32DaqVals[1];            // 4 bytes ECG data
    DataPacketHeader[6] = s32DaqVals[1]>>8;
    DataPacketHeader[7] = s32DaqVals[1]>>16;
    DataPacketHeader[8] = s32DaqVals[1]>>24; 
    
    DataPacketHeader[9] = s32DaqVals[0];            // 4 bytes Respiration data
    DataPacketHeader[10] = s32DaqVals[0]>>8;
    DataPacketHeader[11] = s32DaqVals[0]>>16;
    DataPacketHeader[12] = s32DaqVals[0]>>24; 

    DataPacketHeader[13] = CES_CMDIF_PKT_STOP_1;   // Packet footer1:0x00
    DataPacketHeader[14] = CES_CMDIF_PKT_STOP_2 ;   // Packet footer2:0x0B

    for(i=0; i<15; i++) 
    {
      //Serial.write(DataPacketHeader[i]);     // transmit the data over USB
				UARTprintf("%u ", DataPacketHeader[i]);
     } 
   }
    ads1292dataReceived = false;
    SPI_RX_Buff_Count = 0;
}           
		*/