A collection of Analog Devices drivers for the mbed platform
For additional information check out the mbed page of the Analog Devices wiki: https://wiki.analog.com/resources/tools-software/mbed-drivers-all
Diff: examples/drvdiag/config.h
- Revision:
- 13:66c8e4ce4ff1
- Parent:
- 11:2e67c719ce37
- Child:
- 19:fb92949e59c9
--- a/examples/drvdiag/config.h Thu Apr 21 18:01:41 2016 +0300 +++ b/examples/drvdiag/config.h Fri Apr 29 16:19:00 2016 +0300 @@ -45,24 +45,36 @@ * ********************************************************************************/ -#define AD7790_PRESENT -#define AD5270_PRESENT -#define CN0357_PRESENT +#define AD7791_PRESENT +#define CN0216_PRESENT +//#define AD7790_PRESENT +//#define AD5270_PRESENT +//#define CN0357_PRESENT #define SPI_LOW_LEVEL +#ifdef AD7791_PRESENT +#include "AD7791.h" +#include "ad7791_diag.h" +#endif + +#ifdef CN0216_PRESENT +#include "CN0216.h" +#include "cn0216_diag.h" +#endif + #ifdef AD7790_PRESENT #include "AD7790.h" -#include "AD7790_diag.h" +#include "ad7790_diag.h" #endif #ifdef AD5270_PRESENT #include "AD5270.h" -#include "AD5270_diag.h" +#include "ad5270_diag.h" #endif #ifdef CN0357_PRESENT #include "CN0357.h" -#include "CN0357_diag.h" +#include "cn0357_diag.h" #endif using namespace std; @@ -77,6 +89,17 @@ SPI spibus(SPI_MOSI, SPI_MISO, SPI_SCK); #endif +#ifdef AD7791_PRESENT +AD7791 ad7791(1.2, D8); +AD7791_Diag ad7791diag(ad7791); +#endif + +#ifdef CN0216_PRESENT +CN0216 cn0216; +CN0216_Diag cn0216diag(cn0216); +#endif + + #ifdef AD7790_PRESENT AD7790 ad7790(1.2, D8); AD7790_Diag ad7790diag(ad7790); @@ -90,4 +113,4 @@ #ifdef CN0357_PRESENT CN0357 cn0357; CN0357_Diag cn0357diag(cn0357); -#endif \ No newline at end of file +#endif
CN0357 - Toxic gas measurement
CN0216 - Weight Scale