This are general defs and base class interfaces. ( DACInterface, I2CInterface) to be used with I2C devices

Dependents:   MCP23009tst AT30TSE752TST MCP4728setaddrProg mbedSerialInterface_talkback2 ... more

The DevInterfaces class is used for a more general support of a number of I2C devices.

For the moment this is MCP4728 Quad DAC.

The idea is to write a libs for the I2C devices (and perhaps later SPI , ... devices) not restricted to a certain hardware platform.

So there is the I2CInterface. This is a ( not pure) virtual class. A pointer to this class is used for the I2C device lib (like the MCP4728 class https://developer.mbed.org/users/wbeaumont/code/MCP4728/ ) to communicate with the I2C interface. The I2C interface is kept simple as possible. So it has to be applied for "tested environments". I2C Bus timeouts etc. are hard to debug with such a simple interface. This kind of interface is also not suitable for optimal performance. The user has to take care of issues of blocking devices, parallel processes etc. This can be dealt with in the implementation of the I2CInterface class

The aim of this project is to generate code for these devices on different platforms without doing the painstaking work of looking up all the register details.

There is an implementation of the I2CInterface for the MBED , tested with the FRDM-KL05Z platform. https://developer.mbed.org/users/wbeaumont/code/I2Cinterfaces/

A very simple application on a MBED can be found in https://developer.mbed.org/users/wbeaumont/code/MCP4728test/

History

to make it compatible for other platforms see; https://github.com/wimbeaumont/peripheral_dev_tst; ( mbed os5 based) but this still works for mbed os2 default tip

2019-09-10, by wbeaumont [Tue, 10 Sep 2019 11:20:07 +0000] rev 7

to make it compatible for other platforms see; https://github.com/wimbeaumont/peripheral_dev_tst; ( mbed os5 based) but this still works for mbed os2


added ADC interface

2018-02-19, by wbeaumont [Mon, 19 Feb 2018 15:25:23 +0000] rev 6

added ADC interface


added general wait function and defined int8_t

2017-03-15, by wbeaumont [Wed, 15 Mar 2017 17:16:59 +0000] rev 5

added general wait function and defined int8_t


added version in dev_interface_def.h , added new types, added method to retrieve dev_interface_def via get version

2017-01-13, by wbeaumont [Fri, 13 Jan 2017 13:52:58 +0000] rev 4

added version in dev_interface_def.h , added new types, added method to retrieve dev_interface_def via get version


first commit;

2017-01-13, by wbeaumont [Fri, 13 Jan 2017 13:36:47 +0000] rev 3

first commit;


for getVersion added infostr and moved constructor implementation to src file

2016-01-13, by wbeaumont [Wed, 13 Jan 2016 14:14:39 +0000] rev 2

for getVersion added infostr and moved constructor implementation to src file


virtual I2C interface and some other classes for I2C devices

2016-01-08, by wbeaumont [Fri, 08 Jan 2016 11:56:44 +0000] rev 1

virtual I2C interface and some other classes for I2C devices


basics works

2015-10-23, by wbeaumont [Fri, 23 Oct 2015 19:34:53 +0000] rev 0

basics works