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@13:66c8e4ce4ff1, 2016-04-29 (annotated)
- Committer:
- Adrian Suciu
- Date:
- Fri Apr 29 16:19:00 2016 +0300
- Revision:
- 13:66c8e4ce4ff1
Added driver for AD7791 and example for CN0216
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_ */ |