LTPS C++ API
adc-4-20.h
1 
6 #ifndef __LADC_4_20_H__
7 #define __LADC_4_20_H__
8 
14 struct Adc420Data
15 {
17  float current;
18 
20  int status;
21 
23  const char* error;
24 };
25 
31 class Adc420
32 {
33 public:
34 
35  Adc420();
36 
37  virtual ~Adc420();
38 
40 
44  void getCurrent(const char* socket, Adc420Data &adc);
45 };
46 
47 #endif
48 
Struct with data output for Tibbit 4...20 mA.
Definition: adc-4-20.h:14
Class for ADC 4...20 mA (Tibbit #53)
Definition: adc-4-20.h:31
float current
Current in Ampere.
Definition: adc-4-20.h:17
const char * error
String error if something goes wrong (NULL for success)
Definition: adc-4-20.h:23
int status
Return status (EXIT_SUCCESS or EXIT_FAILURE)
Definition: adc-4-20.h:20