More work on aqhome-react.

- added some units
- added some types
This commit is contained in:
Martin Preuss
2024-03-10 20:15:21 +01:00
parent 656c9cf66f
commit d3a6256c8c
35 changed files with 1159 additions and 80 deletions

View File

@@ -0,0 +1,42 @@
/****************************************************************************
* 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);
}