Files
aqhomecontrol/apps/aqhome-react/units/u_timer.c
Martin Preuss d3a6256c8c More work on aqhome-react.
- added some units
- added some types
2024-03-10 20:15:21 +01:00

43 lines
932 B
C

/****************************************************************************
* This file is part of the project AqHome.
* AqHome (c) by 2024 Martin Preuss, all rights reserved.
*
* The license for this file can be found in the file COPYING which you
* should have received along with this file.
****************************************************************************/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "./u_timer.h"
#include "./u_passthrough.h"
#include <gwenhywfar/debug.h>
AQHREACT_UNIT *AqHomeReact_UnitTimer_new(void)
{
AQHREACT_UNIT *unit;
unit=AqHomeReact_UnitPassthrough_new();
AQHREACT_Unit_SetName(unit, "timer");
AQHREACT_Unit_SetDescription(unit, "Periodically generate a timer signal");
return unit;
}
void AqHomeReact_UnitTimer_GenerateTick(AQHREACT_UNIT *unit)
{
AQHREACT_Unit_OutputDoubleData(unit, AQHOMEREACT_UNIT_PASSTHROUGH_OUTSLOT_OUTPUT, 1.0);
}