Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MaximInterface mbed
Diff: SensorData.hpp
- Revision:
- 32:0a09505a656d
- Parent:
- 25:37ea43ff81be
diff -r 7b10bcb3e0fc -r 0a09505a656d SensorData.hpp
--- a/SensorData.hpp Tue Apr 04 14:10:48 2017 -0500
+++ b/SensorData.hpp Mon Nov 06 17:34:13 2017 -0600
@@ -28,8 +28,7 @@
* trademarks, maskwork rights, or any other form of intellectual
* property whatsoever. Maxim Integrated Products, Inc. retains all
* ownership rights.
-*******************************************************************************
-*/
+*******************************************************************************/
#ifndef SENSORDATA_HPP
#define SENSORDATA_HPP
@@ -37,14 +36,13 @@
#include <stdint.h>
/// Contains a set of sensor measurements.
-struct SensorData
-{
+struct SensorData {
static const int8_t tempAlarmLevel = 26;
static const uint8_t filterLifeAlarmLevel = 20;
-
+
int8_t temp;
uint8_t filterLife;
-
+
bool tempAlarm() const { return (temp >= tempAlarmLevel); }
bool filterLifeAlarm() const { return (filterLife <= filterLifeAlarmLevel); }
};
MAXREFDES143#: DeepCover Embedded Security in IoT Authenticated Sensing & Notification