Files
cariflex/tools/EVerest-main/modules/Simulation/SlacSimulator/ev/ev_slacImpl.cpp
Eric F d398a6ced2 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
2026-06-08 00:38:27 -04:00

45 lines
826 B
C++

// SPDX-License-Identifier: Apache-2.0
// Copyright Pionix GmbH and Contributors to EVerest
#include "ev_slacImpl.hpp"
namespace module {
namespace ev {
using types::slac::State;
void ev_slacImpl::init() {
}
void ev_slacImpl::ready() {
publish_state(state);
}
void ev_slacImpl::handle_reset() {
if (state != State::UNMATCHED) {
state = State::UNMATCHED;
publish_state(state);
publish_dlink_ready(false);
}
}
bool ev_slacImpl::handle_trigger_matching() {
state = State::MATCHING;
mod->cntmatching = 0;
publish_state(state);
return true;
}
State ev_slacImpl::get_state() const {
return state;
}
void ev_slacImpl::set_state_matched() {
state = State::MATCHED;
publish_state(state);
publish_dlink_ready(true);
}
} // namespace ev
} // namespace module