Lines Matching full:thresholds

8 /** @class Thresholds
14 struct Thresholds struct
18 static_assert(sizeof(Thresholds) == -1, "Unsupported Threshold type"); in fail() argument
22 /**@brief Thresholds specialization for warning thresholds. */
24 struct Thresholds<WarningObject> struct
43 /**@brief Thresholds specialization for critical thresholds. */ argument
45 struct Thresholds<CriticalObject> struct
72 * @param[in] value - The sensor reading to compare to thresholds.
78 auto lo = (*realIface.*Thresholds<T>::getLo)(); in checkThresholds() argument
79 auto hi = (*realIface.*Thresholds<T>::getHi)(); in checkThresholds()
80 auto alarmLowState = (*realIface.*Thresholds<T>::getAlarmLow)(); in checkThresholds()
81 auto alarmHighState = (*realIface.*Thresholds<T>::getAlarmHigh)(); in checkThresholds()
82 (*realIface.*Thresholds<T>::alarmLo)(value <= lo); in checkThresholds()
83 (*realIface.*Thresholds<T>::alarmHi)(value >= hi); in checkThresholds()
88 (*realIface.*Thresholds<T>::assertLowSignal)(value); in checkThresholds()
92 (*realIface.*Thresholds<T>::deassertLowSignal)(value); in checkThresholds()
99 (*realIface.*Thresholds<T>::assertHighSignal)(value); in checkThresholds()
103 (*realIface.*Thresholds<T>::deassertHighSignal)(value); in checkThresholds()
128 auto tLo = env::getEnv(Thresholds<T>::envLo, sensorType, sensorID); in addThreshold()
129 auto tHi = env::getEnv(Thresholds<T>::envHi, sensorType, sensorID); in addThreshold()
139 (*iface.*Thresholds<T>::setLo)(lo); in addThreshold()
140 auto alarmLowState = (*iface.*Thresholds<T>::getAlarmLow)(); in addThreshold()
141 (*iface.*Thresholds<T>::alarmLo)(value <= lo); in addThreshold()
146 (*iface.*Thresholds<T>::assertLowSignal)(value); in addThreshold()
150 (*iface.*Thresholds<T>::deassertLowSignal)(value); in addThreshold()
157 (*iface.*Thresholds<T>::setHi)(hi); in addThreshold()
158 auto alarmHighState = (*iface.*Thresholds<T>::getAlarmHigh)(); in addThreshold()
159 (*iface.*Thresholds<T>::alarmHi)(value >= hi); in addThreshold()
164 (*iface.*Thresholds<T>::assertHighSignal)(value); in addThreshold()
168 (*iface.*Thresholds<T>::deassertHighSignal)(value); in addThreshold()
172 auto type = Thresholds<T>::type; in addThreshold()