Hi,
have given an attempt, see attached (included rADS129X.h, cpp, xml and the ADS129X.h, cpp) ... BUT ...
got stuck on how to wrap the two methods with the same name RREG:
// Register Read/Write Commands
Byte RREG(Byte _address);
//to read multiple consecutive registers (Datasheet, pg. 38)
void RREG(Byte _address, Byte _numRegisters, Byte *_data);
May be someone has a hint how to do that.
For the moment commented the
void RREG out and compile went without issues. I do not have such a device, so can not test. Lots of defines to convert, so hope all covered properly. Used these few B4R lines to test compilation:
Sub Process_Globals
Public Serial1 As Serial
Private ads129 As ADS129X
End Sub
Private Sub AppStart
Serial1.Initialize(115200)
Log("AppStart")
ads129.Initialize(5, 10)
End Sub