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/ad7790_diag.h@7:b62398a1d17a, 2016-04-20 (annotated)
- Committer:
- Adrian Suciu
- Date:
- Wed Apr 20 16:35:44 2016 +0300
- Revision:
- 7:b62398a1d17a
- Child:
- 8:6e96c6b3c83f
Added drvdiag tool
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Adrian Suciu |
7:b62398a1d17a | 1 | /* |
| Adrian Suciu |
7:b62398a1d17a | 2 | * ad7790.h |
| Adrian Suciu |
7:b62398a1d17a | 3 | * |
| Adrian Suciu |
7:b62398a1d17a | 4 | * Created on: Apr 15, 2016 |
| Adrian Suciu |
7:b62398a1d17a | 5 | * Author: asuciu |
| Adrian Suciu |
7:b62398a1d17a | 6 | */ |
| Adrian Suciu |
7:b62398a1d17a | 7 | |
| Adrian Suciu |
7:b62398a1d17a | 8 | #ifndef AD7790_DIAG_H_ |
| Adrian Suciu |
7:b62398a1d17a | 9 | #define AD7790_DIAG_H_ |
| Adrian Suciu |
7:b62398a1d17a | 10 | |
| Adrian Suciu |
7:b62398a1d17a | 11 | #include "AD7790.h" |
| Adrian Suciu |
7:b62398a1d17a | 12 | |
| Adrian Suciu |
7:b62398a1d17a | 13 | class AD7790_Diag |
| Adrian Suciu |
7:b62398a1d17a | 14 | { |
| Adrian Suciu |
7:b62398a1d17a | 15 | |
| Adrian Suciu |
7:b62398a1d17a | 16 | public: |
| Adrian Suciu |
7:b62398a1d17a | 17 | AD7790_Diag(AD7790& ad); |
| Adrian Suciu |
7:b62398a1d17a | 18 | void init(void); |
| Adrian Suciu |
7:b62398a1d17a | 19 | void reset(void); |
| Adrian Suciu |
7:b62398a1d17a | 20 | void write_mode(void); |
| Adrian Suciu |
7:b62398a1d17a | 21 | void write_filter(void); |
| Adrian Suciu |
7:b62398a1d17a | 22 | void read_mode(void); |
| Adrian Suciu |
7:b62398a1d17a | 23 | void read_filter(void); |
| Adrian Suciu |
7:b62398a1d17a | 24 | void read_data(void); |
| Adrian Suciu |
7:b62398a1d17a | 25 | void read_status(void); |
| Adrian Suciu |
7:b62398a1d17a | 26 | void read_u16(void); |
| Adrian Suciu |
7:b62398a1d17a | 27 | void read_voltage(void); |
| Adrian Suciu |
7:b62398a1d17a | 28 | void set_continous_mode(void); |
| Adrian Suciu |
7:b62398a1d17a | 29 | void set_reference_voltage(void); |
| Adrian Suciu |
7:b62398a1d17a | 30 | void set_channel(void); |
| Adrian Suciu |
7:b62398a1d17a | 31 | |
| Adrian Suciu |
7:b62398a1d17a | 32 | private: |
| Adrian Suciu |
7:b62398a1d17a | 33 | AD7790& dut; |
| Adrian Suciu |
7:b62398a1d17a | 34 | }; |
| Adrian Suciu |
7:b62398a1d17a | 35 | |
| Adrian Suciu |
7:b62398a1d17a | 36 | /* |
| Adrian Suciu |
7:b62398a1d17a | 37 | |
| Adrian Suciu |
7:b62398a1d17a | 38 | */ |
| Adrian Suciu |
7:b62398a1d17a | 39 | |
| Adrian Suciu |
7:b62398a1d17a | 40 | |
| Adrian Suciu |
7:b62398a1d17a | 41 | |
| Adrian Suciu |
7:b62398a1d17a | 42 | #endif /* AD7790_DIAG_H_ */ |
CN0357 - Toxic gas measurement
CN0216 - Weight Scale