Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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@17:b8356808e8ad, 2016-04-29 (annotated)
- Committer:
- Adrian Suciu
- Date:
- Fri Apr 29 17:34:07 2016 +0300
- Revision:
- 17:b8356808e8ad
- Parent:
- 13:66c8e4ce4ff1
Fixed code style and added doxygen tags
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Adrian Suciu |
13:66c8e4ce4ff1 | 1 | |
| Adrian Suciu |
13:66c8e4ce4ff1 | 2 | #ifndef CN0216_DIAG_H_ |
| Adrian Suciu |
13:66c8e4ce4ff1 | 3 | #define CN0216_DIAG_H_ |
| Adrian Suciu |
13:66c8e4ce4ff1 | 4 | #include "CN0216.h" |
| Adrian Suciu |
13:66c8e4ce4ff1 | 5 | |
| Adrian Suciu |
13:66c8e4ce4ff1 | 6 | class CN0216_Diag |
| Adrian Suciu |
13:66c8e4ce4ff1 | 7 | { |
| Adrian Suciu |
13:66c8e4ce4ff1 | 8 | public: |
| Adrian Suciu |
13:66c8e4ce4ff1 | 9 | CN0216_Diag(CN0216& cn); |
| Adrian Suciu |
13:66c8e4ce4ff1 | 10 | |
| Adrian Suciu |
13:66c8e4ce4ff1 | 11 | void init(void); |
| Adrian Suciu |
13:66c8e4ce4ff1 | 12 | void calibrate(void); |
| Adrian Suciu |
13:66c8e4ce4ff1 | 13 | void read_weight(void); |
| Adrian Suciu |
13:66c8e4ce4ff1 | 14 | |
| Adrian Suciu |
13:66c8e4ce4ff1 | 15 | |
| Adrian Suciu |
13:66c8e4ce4ff1 | 16 | private: |
| Adrian Suciu |
13:66c8e4ce4ff1 | 17 | CN0216& dut; |
| Adrian Suciu |
13:66c8e4ce4ff1 | 18 | }; |
| Adrian Suciu |
13:66c8e4ce4ff1 | 19 | |
| Adrian Suciu |
13:66c8e4ce4ff1 | 20 | |
| Adrian Suciu |
13:66c8e4ce4ff1 | 21 | #endif /* CN0216_DIAG_H_ */ |
CN0357 - Toxic gas measurement
CN0216 - Weight Scale