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
AD7390.h
- Committer:
- cassar10
- Date:
- 2014-04-05
- Revision:
- 0:82cd70f9fc3f
- Child:
- 1:19818c103c9c
File content as of revision 0:82cd70f9fc3f:
#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