9 #ifndef sensorlibraryHedit
10 #define sensorlibraryHedit 1
11 // 14Feb16 MJNewman 1: Created
29 FormatType_t formatType = FormatForConsole);
33 InterfaceProcessorPin,
57 SensorProcessorADCpin,
85 #define ILLEGAL_TEMPERATURE (1000*1000)
109 uint8_t decimalPlaces,
110 uint8_t sensorSpecific,
136 FormatType_t formatType = FormatForConsole,
151 FormatType_t formatType = FormatForConsole,
163 FormatType_t formatType = FormatForConsole);
174 FormatType_t formatType = FormatForConsole);
189 FormatType_t formatType = FormatForConsole);
203 uint32_t defaultCount);
226 GraphTypeAllIntervals,
266 FormatType_t formatType);
285 #endif // defined(sensorlibraryHedit)
void sensorlibraryDumpSensorName(Print *pPrinter, uint8_t sensorID, FormatType_t formatType=FormatForConsole)
Definition: sensorlibrary.cpp:114
SensorDatatypeID_t
< version of this module
Definition: sensordatatype.h:24
int8_t sensorlibraryCreateSensor(uint8_t *uniqueID, String name, uint8_t bitsOfData, bool isSigned, SensorInterfaceID_t interface, SensorTypeID_t sensorType, SensorDatatypeID_t datatype, uint8_t decimalPlaces, uint8_t sensorSpecific, pSENSOR_READ_CALLBACK pReader)
Definition: sensorlibrary.cpp:726
void sensorlibraryDumpElementIDvalue(Print *pPrinter, uint8_t indent, LogElement_t &element, FormatType_t formatType=FormatForConsole, SensorDatatypeID_t datatype=SDallTypes)
Definition: sensorlibrary.cpp:664
uint8_t sensorlibraryGetI2Caddress(uint8_t sensorID)
Definition: sensorlibrary.cpp:947
void sensorlibrarySetPulsesSinceBoot(LogElement_t &element)
Definition: sensorlibrary.cpp:857
Structure that gets logged.
Definition: dataservices.h:61
uint8_t sensorlibraryGetSensorSpecificData(uint8_t sensorID)
Definition: sensorlibrary.cpp:961
void sensorlibraryDumpSampleList(Print *pPrinter, LogElement_t &element, SensorDatatypeID_t datatype=SDallTypes)
Definition: sensorlibrary.cpp:809
void sensorlibraryDisableSensor(uint8_t sensorID)
Definition: sensorlibrary.cpp:773
void sensorlibraryInit()
< version of this module
Definition: sensorlibrary.cpp:56
SENSOR_READ_CALLBACK * pSENSOR_READ_CALLBACK
pointer to function to call to read a sensor
Definition: sensorlibrary.h:81
String sensorlibraryGetSensorName(uint8_t index)
Definition: sensorlibrary.cpp:918
SensorTypeID_t
Definition: sensorlibrary.h:56
GraphType_t
Define types of graphs to output.
Definition: sensorlibrary.h:225
uint32_t sensorlibraryExtractPulseCount(uint8_t index, LogElement_t &element, uint32_t defaultCount)
Definition: sensorlibrary.cpp:783
void sensorlibraryDumpSensors(Print *pPrinter=&Serial, FormatType_t formatType=FormatForConsole)
Definition: sensorlibrary.cpp:447
String sensorlibrarySensorTypeGetName(SensorTypeID_t sensorType)
Definition: sensorlibrary.cpp:82
uint32_t SENSOR_READ_CALLBACK(uint8_t *pUniqueID, uint8_t sensorSpecific)
Function to call to read a sensor.
Definition: sensorlibrary.h:78
String sensorlibraryInterfaceGetName(SensorInterfaceID_t interface)
Definition: sensorlibrary.cpp:68
void sensorlibraryDumpAddColumns(Print *pPrinter, GraphType_t graphType, SensorDatatypeID_t datatype)
Definition: sensorlibrary.cpp:871
SensorInterfaceID_t
How the sensor is interfaced to the system.
Definition: sensorlibrary.h:32
void sensorlibraryDumpSensorById(uint8_t index, Print *pPrinter, FormatType_t formatType)
Definition: sensorlibrary.cpp:926
void sensorlibraryReadSensors(LogElement_t &element)
Definition: sensorlibrary.cpp:591
void sensorlibraryDumpSensorUniqueID(Print *pPrinter, uint8_t sensorID, FormatType_t formatType=FormatForConsole)
Definition: sensorlibrary.cpp:139
void sensorlibraryDumpSensorValue(Print *pPrinter, uint8_t indent, uint32_t value, uint8_t sensorID, FormatType_t formatType=FormatForConsole)
Definition: sensorlibrary.cpp:192
const char *const datatypeNames[]
Definition: sensorlibrary.cpp:103
void sensorlibraryDumpElement(Print *pPrinter, uint8_t indent, LogElement_t &element, FormatType_t formatType=FormatForConsole, SensorDatatypeID_t datatype=SDallTypes)
Definition: sensorlibrary.cpp:602