rusefi-1/firmware/controllers/algo/event_registry.cpp

41 lines
1.2 KiB
C++
Raw Normal View History

2015-07-10 06:01:56 -07:00
/**
* @file event_registry.cpp
* @brief This data structure knows when to do what
*
* @date Nov 27, 2013
2020-01-13 18:57:43 -08:00
* @author Andrey Belomutskiy, (c) 2012-2020
2015-07-10 06:01:56 -07:00
*
*
* This file is part of rusEfi - see http://rusefi.com
*
* rusEfi is free software; you can redistribute it and/or modify it under the terms of
* the GNU General Public License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* rusEfi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
* even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with this program.
* If not, see <http://www.gnu.org/licenses/>.
*/
#include "event_registry.h"
2018-09-16 19:26:57 -07:00
#include "global.h"
2015-07-10 06:01:56 -07:00
#include "engine_math.h"
InjectionEvent::InjectionEvent() {
isSimultanious = false;
2018-07-28 11:28:52 -07:00
ownIndex = 0;
2016-11-30 16:01:43 -08:00
memset(outputs, 0, sizeof(outputs));
2015-07-10 06:01:56 -07:00
}
IgnitionEvent::IgnitionEvent() {
2016-11-26 21:01:22 -08:00
memset(outputs, 0, sizeof(outputs));
2015-07-10 06:01:56 -07:00
}
2016-11-27 18:04:45 -08:00
IgnitionOutputPin * IgnitionEvent::getOutputForLoggins() {
return outputs[0];
}