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:
- 1:19818c103c9c
- Parent:
- 0:82cd70f9fc3f
- Child:
- 3:37ec9ea72264
File content as of revision 1:19818c103c9c:
#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, unsigned int feq); //RefV set up for user reference voltage void Reset(); void Latch(); void Write(float Volts); void WriteL(float volts); float RefV; unsigned int freq; private: DigitalOut reset, latch; SPI spi; }; #endif