Class for AD7390, a 12 bit SPI driven external DAC from Analog Devices.
Datasheet - http://www.analog.com/static/imported-files/data_sheets/AD7390_7391.pdf
Diff: AD7390.h
- Revision:
- 0:82cd70f9fc3f
- Child:
- 1:19818c103c9c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/AD7390.h Sat Apr 05 19:08:44 2014 +0000 @@ -0,0 +1,17 @@ +#ifndef __AD7390_H__ +#define __AD7390_H__ + +#include "mbed.h" + +class AD7390 { //Create an AD7390 instance + public: + AD7390(PinName data, PinName clock, PinName resetpin, PinName latchpin, float RefV); + void Reset(); + void Latch(); + int RefV; + private: + DigitalOut reset, latch; + SPI spi; + +}; +#endif \ No newline at end of file