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
examples/drvdiag/driver_wrapper/CN0216_Diag.h@24:dae7123d432a, 2016-05-18 (annotated)
- Committer:
- Adrian Suciu
- Date:
- Wed May 18 16:57:57 2016 +0300
- Revision:
- 24:dae7123d432a
Improved compatibility with Linux systems
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Adrian Suciu |
24:dae7123d432a | 1 | |
| Adrian Suciu |
24:dae7123d432a | 2 | #ifndef CN0216_DIAG_H_ |
| Adrian Suciu |
24:dae7123d432a | 3 | #define CN0216_DIAG_H_ |
| Adrian Suciu |
24:dae7123d432a | 4 | #include "CN0216.h" |
| Adrian Suciu |
24:dae7123d432a | 5 | |
| Adrian Suciu |
24:dae7123d432a | 6 | class CN0216_Diag |
| Adrian Suciu |
24:dae7123d432a | 7 | { |
| Adrian Suciu |
24:dae7123d432a | 8 | public: |
| Adrian Suciu |
24:dae7123d432a | 9 | CN0216_Diag(CN0216& cn); |
| Adrian Suciu |
24:dae7123d432a | 10 | |
| Adrian Suciu |
24:dae7123d432a | 11 | void init(void); |
| Adrian Suciu |
24:dae7123d432a | 12 | void calibrate(void); |
| Adrian Suciu |
24:dae7123d432a | 13 | void read_weight(void); |
| Adrian Suciu |
24:dae7123d432a | 14 | |
| Adrian Suciu |
24:dae7123d432a | 15 | |
| Adrian Suciu |
24:dae7123d432a | 16 | private: |
| Adrian Suciu |
24:dae7123d432a | 17 | CN0216& dut; |
| Adrian Suciu |
24:dae7123d432a | 18 | }; |
| Adrian Suciu |
24:dae7123d432a | 19 | |
| Adrian Suciu |
24:dae7123d432a | 20 | |
| Adrian Suciu |
24:dae7123d432a | 21 | #endif /* CN0216_DIAG_H_ */ |
CN0357 - Toxic gas measurement
CN0216 - Weight Scale