3 #include <Poco/SharedPtr.h>
5 #include "core/DeviceManager.h"
6 #include "model/DeviceID.h"
7 #include "model/ModuleType.h"
8 #include "model/SensorData.h"
9 #include "util/Loggable.h"
24 typedef Poco::SharedPtr<FitpDevice> Ptr;
30 void setDeviceID(
const DeviceID &deviceId);
32 DeviceType type()
const;
39 std::list<ModuleType>
modules()
const;
60 static double extractValue(
const std::vector<uint8_t> &values);
61 static double voltsToPercentage(
double milivolts);
66 static double moduleValue(uint8_t
id,
const std::vector<uint8_t> &data);
size_t moduleEDOffset(const uint8_t &id) const
Definition: FitpDevice.cpp:82
Definition: SensorData.h:20
static ModuleID deriveCOORDModuleID(const uint8_t id)
Definition: FitpDevice.cpp:245
std::list< ModuleType > modules() const
Definition: FitpDevice.cpp:74
static double moduleValue(uint8_t id, const std::vector< uint8_t > &data)
Definition: FitpDevice.cpp:151
Definition: ModuleID.h:12
SensorData parseMessage(const std::vector< uint8_t > &data, DeviceID deviceID) const
Definition: FitpDevice.cpp:182
Definition: Loggable.h:19
Definition: FitpDevice.h:16
size_t moduleCOORDOffset(const uint8_t &id) const
Definition: FitpDevice.cpp:111
static double extractValue(const std::vector< uint8_t > &values)
Definition: FitpDevice.cpp:165
Definition: DeviceID.h:17
static ModuleID deriveEDModuleID(const uint8_t id)
Definition: FitpDevice.cpp:227