You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
723 B
35 lines
723 B
7 years ago
|
/*
|
||
|
* sensor_hub.h
|
||
|
*
|
||
|
* Created on: Aug 1, 2017
|
||
|
* Author: Elmar
|
||
|
*/
|
||
|
|
||
|
#ifndef APP_SENSOR_HUB_H_
|
||
|
#define APP_SENSOR_HUB_H_
|
||
|
|
||
|
#include "ads101x.h"
|
||
|
#include "sensor_settings.h"
|
||
|
|
||
|
namespace rijnfel {
|
||
|
|
||
|
class cSensorHub {
|
||
|
public:
|
||
|
//in milliseconds
|
||
|
cSensorHub(uint32_t i_updatePeriod);
|
||
7 years ago
|
void SetAdc(ads::cADS101x * i_adc);
|
||
7 years ago
|
void SetAdcSettings(cSensorSettings<ads::ads_sample_t> * i_adcSettings);
|
||
|
void SetTempSettings(cSensorSettings<uint32_t> * i_tempSettings);
|
||
|
void Update();
|
||
|
virtual ~cSensorHub();
|
||
|
private:
|
||
|
uint32_t m_updatePeriod;
|
||
|
cSensorSettings<ads::ads_sample_t> * m_adcSettings;
|
||
|
cSensorSettings<uint32_t> * m_tempSettings;
|
||
|
ads::cADS101x * m_adc;
|
||
|
};
|
||
|
|
||
|
} /* namespace rijnfel */
|
||
|
|
||
|
#endif /* APP_SENSOR_HUB_H_ */
|