![]() |
Dataflow Runtime API
3.0.3.0
|
Activates the given alarms if the value is outside a defined range. More...
#include <Imt.Base.Lib.Alarms/RangeAlarm.h>
Public Member Functions | |
RangeAlarm (AlarmSenderIfc &alarmSender, const imt::base::core::util::Range< ValueType > &range, const AlarmIdentifier lowerAlarmId, const AlarmIdentifier upperAlarmId) | |
Constructor. More... | |
virtual | ~RangeAlarm (void) |
Destructor. More... | |
![]() | |
RangeAlarmWithDelay (AlarmSenderIfc &alarmSender, const imt::base::core::util::Range< ValueType > &range, const AlarmIdentifier lowerAlarmId, const DelayThicks lowerAlarmDelayTicks, const AlarmIdentifier upperAlarmId, const DelayThicks upperAlarmDelayTicks) | |
Constructor. More... | |
RangeAlarmWithDelay (AlarmSenderIfc &alarmSender, const imt::base::core::util::Range< ValueType > &range, const AlarmIdentifier lowerAlarmId, const DelayThicks lowerAlarmActivationDelayTicks, const DelayThicks lowerAlarmDeactivationDelayTicks, const AlarmIdentifier upperAlarmId, const DelayThicks upperAlarmActivationDelayTicks, const DelayThicks upperAlarmDeactivationDelayTicks) | |
Constructor. More... | |
virtual | ~RangeAlarmWithDelay (void) |
Destructor. More... | |
void | updateValue (const ValueType &value) |
Updates the value and checks for the alarm condition. More... | |
void | forceValue (const ValueType &value) |
Updates the value and checks for the alarm condition. More... | |
void | deactivateAlarms (void) |
Deactivates both alarms. More... | |
bool | isAlarmActive (void) const |
Returns if any alarm is currently activated. More... | |
bool | isLowerAlarmActive (void) const |
Returns whether the lower alarm is currently activated. More... | |
bool | isUpperAlarmActive (void) const |
Returns whether the upper alarm is currently activated. More... | |
Additional Inherited Members | |
![]() | |
typedef uint32_t | DelayThicks |
The delay in thicks. More... | |
![]() | |
static const DelayThicks | NULL_DELAY = 0U |
A delay of 0 thicks. More... | |
Activates the given alarms if the value is outside a defined range.
A lower and an upper alarm can be defined.
This alarm is implemented as special case of a RangeAlarmWithDelay with delay of 0.
|
explicit |
Constructor.
Defines the alarms to be activated for the lower and upper threshold. If an alarm id is set to NO_ALARM there will be no alarm activated when that threshold is reached. This can be used to define a single low or high alarm.
alarmSender | The interface to the actual alarm sender. |
range | The range below which the lower alarm and above which the upper alarm is activated. |
lowerAlarmId | The alarm ID that is sent when the lower alarm is activated/deactivated. |
upperAlarmId | The alarm ID that is sent when the upper alarm is activated/deactivated. |
|
virtual |
Destructor.