LTPS C++ API
adc.h
1 
6 #ifndef __LADC_H__
7 #define __LADC_H__
8 
14 struct AdcData
15 {
17  int voltage;
18 
20  int status;
21 
23  const char* error;
24 };
25 
31 class Adc
32 {
33 public:
34 
35  Adc();
36 
37  virtual ~Adc();
38 
40 
46  void getVoltage(const char* socket, unsigned int channel, bool prev, AdcData &adc);
47 };
48 
49 #endif
Class for ADC (Tibbit #13)
Definition: adc.h:31
void getVoltage(const char *socket, unsigned int channel, bool prev, AdcData &adc)
Get voltage value for channel.
const char * error
String error if something goes wrong (NULL for success)
Definition: adc.h:23
int voltage
Voltage in millivolts.
Definition: adc.h:17
int status
Return status (EXIT_SUCCESS or EXIT_FAILURE)
Definition: adc.h:20
Struct with data output for LTC2309.
Definition: adc.h:14