Analog Devices AD7124-8 - 8-Channel, Low Noise, Low Power, 24-Bit, Sigma-Delta ADC with PGA and Reference
Dependents: CN0398 CN0391 CN0398_arduino
Diff: AD7124.h
- Revision:
- 4:502352a643e6
- Parent:
- 1:4a4194a5a8ed
- Child:
- 5:5fa802deb471
diff -r 4a4194a5a8ed -r 502352a643e6 AD7124.h
--- a/AD7124.h Mon Oct 24 16:03:43 2016 +0000
+++ b/AD7124.h Tue Nov 08 09:38:35 2016 +0000
@@ -49,7 +49,6 @@
#define AD7790_H
#include "mbed.h"
-#include "AD7124_regs.h"
/**
* Comment this line if you want to turn off the debug mode.
@@ -61,6 +60,8 @@
/**
* @brief Analog Devices AD7790 SPI 16-bit Buffered Sigma-Delta ADC
*/
+
+
class AD7124
{
public:
@@ -125,15 +126,15 @@
AD7124_REG_NO
};
- /*! Device register info */
+ /*! Device register info */
+
+
typedef struct _ad7124_st_reg {
int32_t addr;
int32_t value;
int32_t size;
int32_t rw;
} ad7124_st_reg;
-
-
/*! Array holding the info for the ad7124 registers - address, initial value,
size and access type. */
ad7124_st_reg ad7124_regs[57];
Analog Devices AD7124