Add extracted tools: CitrineOS, OpenOCPP, ShapeShifter
- CitrineOS core extracted (CSMS OCPP 2.0.1) - OpenOCPP extracted (firmware OCPP 1.6J/2.0.1) - ShapeShifter library installed (pip install -e) - ShapeShifter specification extracted - EVerest extracted TODO updated with progress
This commit is contained in:
32
tools/EVerest-main/modules/EV/EvSlac/main/fsm_controller.hpp
Normal file
32
tools/EVerest-main/modules/EV/EvSlac/main/fsm_controller.hpp
Normal file
@@ -0,0 +1,32 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
// Copyright 2023 - 2023 Pionix GmbH and Contributors to EVerest
|
||||
#ifndef EVSE_SLAC_FSM_CONTROLLER_HPP
|
||||
#define EVSE_SLAC_FSM_CONTROLLER_HPP
|
||||
|
||||
#include <everest/slac/fsm/ev/fsm.hpp>
|
||||
|
||||
#include <condition_variable>
|
||||
#include <mutex>
|
||||
|
||||
class FSMController {
|
||||
public:
|
||||
explicit FSMController(slac::fsm::ev::Context& ctx);
|
||||
|
||||
void signal_new_slac_message(slac::messages::HomeplugMessage&);
|
||||
void signal_reset();
|
||||
void signal_trigger_matching();
|
||||
void run();
|
||||
|
||||
private:
|
||||
bool signal_simple_event(slac::fsm::ev::Event ev);
|
||||
slac::fsm::ev::Context& ctx;
|
||||
slac::fsm::ev::FSM fsm;
|
||||
|
||||
bool running{false};
|
||||
|
||||
std::mutex feed_mtx;
|
||||
std::condition_variable new_event_cv;
|
||||
bool new_event{false};
|
||||
};
|
||||
|
||||
#endif // EVSE_SLAC_FSM_CONTROLLER_HPP
|
||||
Reference in New Issue
Block a user