mbed code for Farrari board

Dependencies:   DDRO_Farrari mbed

Fork of DDRO_Farrari by Liangzhen Lai

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers dac.h Source File

dac.h

00001 #include "mbed.h"
00002 #include "pinout.h"
00003 
00004 #define ADDR_0 0x90
00005 #define ADDR_1 0x94
00006 #define ADDR_F 0x98
00007 
00008 #define CHAN_A 0x30
00009 #define CHAN_B 0x31
00010 #define CHAN_C 0x32
00011 #define CHAN_D 0x33
00012 #define CHAN_E 0x34
00013 #define CHAN_F 0x35
00014 #define CHAN_G 0x36
00015 #define CHAN_H 0x37
00016 
00017 void power_chan(char i2caddr, char chan, float voltage);