Propeller Activity Board Voltage Library
v0.50
Set and measure voltages with Propeller Activity Board D/A and A/D sockets
Main Page
Files
File List
Globals
abvolts.h
Go to the documentation of this file.
1
31
#ifndef PROPAB_ABVOLTS_H
32
#define PROPAB_ABVOLTS_H
33
34
#if defined(__cplusplus)
35
extern
"C"
{
36
#endif
37
38
#include "simpletools.h"
39
40
41
#ifndef _abvolts_EE_start_
42
46
#define _abvolts_EE_start_ 63400
47
#endif
48
49
50
#ifndef _abvolts_EE_end_
51
55
#define _abvolts_EE_end_ 63400 + 16
56
#endif
57
58
59
73
void
da_init
(
int
pinDA0,
int
pinDA1);
74
75
122
void
ad_init(
int
csPin,
int
sclPin,
int
doPin,
int
diPin);
123
124
133
void
da_volts
(
int
channel,
float
daVal);
134
135
145
float
ad_volts
(
int
channel);
146
147
176
void
da_out
(
int
channel,
int
daVal);
177
178
188
int
ad_in(
int
channel);
189
190
204
void
da_res
(
int
bits);
205
206
214
void
da_setupScale
(
void
);
215
216
224
void
da_useScale
(
void
);
225
226
234
void
da_stop
(
void
);
235
236
237
#if defined(__cplusplus)
238
}
239
#endif
240
/* __cplusplus */
241
#endif
242
/* PROPAB_ADC_DC_H */
243
Generated on Sun Apr 27 2014 14:06:17 for Propeller Activity Board Voltage Library by
1.8.1.2