config stuff

This commit is contained in:
Wolfgang Hottgenroth
2014-11-15 23:42:31 +01:00
parent c687aff175
commit ca26284cf2
5 changed files with 102 additions and 6 deletions

View File

@ -11,11 +11,12 @@
class ADS1210 {
public:
ADS1210() : value(0) {};
void begin(uint8_t csPin, uint8_t drdyPin);
void begin(uint8_t csPin, uint8_t drdyPin, int eepromAddr);
void exec();
uint32_t value;
float u;
float rRaw;
float r;
private:
// register addresses
@ -77,6 +78,9 @@ private:
uint8_t m_csPin;
uint8_t m_drdyPin;
int m_eepromAddr;
float m_calFactor;
float m_calOffset;
void enableCS() const;