Part Number: ADS1299 Tool/software: Linux I make program communicate between raspberry pie and ads 1299. I use RDATA to receive data. so I can receive only one sample data at a time. but ads1299 eeg program was able to receive several sample data from one cs low ~ high timing How can I get data from Raspberry? Like ads1299 eeg program. my c code logic if(digitalRead(PIN_DRDY)==LOW){ int32_t output[9]; sendCommand(_RDATA); int32_t dataPacket; unsigned char* dataByte; for(int i=0;i<9;i++){ for(int j=0; j<3; j++){ dataByte = dataTransfer(0x00); dataPacket = (dataPacket <<8) | *dataByte; } output[i] = dataPacket; } digitalWrite(PIN_CS,HIGH); return output; }
↧