Other Parts Discussed in Thread: MSP432E401Y, ADS131M08, ADS1115
I'm trying to get the ADS131M04 working with a Raspberry Pi. I have your sample code, and ported the hal.c to the pi environment. Right now I'm just trying to see if I can read the ADC channels. And nothing seems to be happening. When I call the readData() function in ads131m0x.c, the structure returned is all zeros. It could very well be that I'm doing something wrong... Do you have any advice for troubleshooting? Or do you have any sample code that actually does something?
My code is calling initADC() (with InitGPIO(), initSPI(), and adcStartup() in hal.c implemented In hal.c), then calls readData() in an attempt to get ADC data from the 131m04. Is there anything else I'm supposed to do before reading data?