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/driver_wrapper/CN0397_Diag.cpp
- Revision:
- 33:c3ec596a29c2
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/drvdiag/driver_wrapper/CN0397_Diag.cpp Mon Nov 07 16:27:12 2016 +0200
@@ -0,0 +1,24 @@
+#include "CN0397_Diag.h"
+
+CN0397_Diag::CN0397_Diag(CN0397& ad) :
+ dut(ad)
+{
+
+}
+
+void CN0397_Diag::init()
+{
+ dut.init();
+}
+
+void CN0397_Diag::reset()
+{
+ dut.ad7798.reset();
+}
+
+void CN0397_Diag::read()
+{
+ dut.set_app_data();
+ dut.display_data();
+}
+
CN0357 - Toxic gas measurement
CN0216 - Weight Scale