I've only just received an ADS1263 and was using this library to test it.
I'm posting this now for anyone who comes across this problem. I don't have time to do more with it at the moment.
readADC2() gives back incorrect data. It appears to be written differently to readADC1() even though the chip sends 32 bits for ADC2, including padding.
I copied the ADC_BYTES structure and the "ADC_BYTES.bit.DATA1 = buff[j];" etc. code from readADC1() to readADC2() and it now works, giving 32 bits with padding. I then shift the padding out to get 24 bits.
I do not have an ADS1263 to test with. I realize this is old, do you still have your setup to test? It should be fixed as part of 8ca52320790c82516a452c75e121ad6aa7b62fff.
I've only just received an ADS1263 and was using this library to test it.
I'm posting this now for anyone who comes across this problem. I don't have time to do more with it at the moment.
readADC2() gives back incorrect data. It appears to be written differently to readADC1() even though the chip sends 32 bits for ADC2, including padding.
I copied the ADC_BYTES structure and the "ADC_BYTES.bit.DATA1 = buff[j];" etc. code from readADC1() to readADC2() and it now works, giving 32 bits with padding. I then shift the padding out to get 24 bits.
Anyway, this gives the correct ADC2 value.