|
9 | 9 | #include <variant>
|
10 | 10 |
|
11 | 11 | #include <iso15118/d20/limits.hpp>
|
12 |
| -#include <iso15118/message/schedule_exchange.hpp> |
13 | 12 | #include <iso15118/message/dc_charge_loop.hpp>
|
14 | 13 | #include <iso15118/message/dc_charge_parameter_discovery.hpp>
|
| 14 | +#include <iso15118/message/schedule_exchange.hpp> |
15 | 15 | #include <iso15118/message/type.hpp>
|
16 | 16 |
|
17 | 17 | namespace iso15118::session {
|
@@ -40,21 +40,16 @@ struct DcMaximumLimits {
|
40 | 40 |
|
41 | 41 | using PresentVoltage = dt::RationalNumber;
|
42 | 42 | using MeterInfoRequested = bool;
|
43 |
| -using DcReqControlMode = std::variant< |
44 |
| - dt::Scheduled_DC_CLReqControlMode, dt::BPT_Scheduled_DC_CLReqControlMode, |
45 |
| - dt::Dynamic_DC_CLReqControlMode, dt::BPT_Dynamic_DC_CLReqControlMode>; |
| 43 | +using DcReqControlMode = std::variant<dt::Scheduled_DC_CLReqControlMode, dt::BPT_Scheduled_DC_CLReqControlMode, |
| 44 | + dt::Dynamic_DC_CLReqControlMode, dt::BPT_Dynamic_DC_CLReqControlMode>; |
46 | 45 |
|
47 |
| -using DcChargeLoopReq = |
48 |
| - std::variant<DcReqControlMode, dt::DisplayParameters, PresentVoltage, MeterInfoRequested>; |
| 46 | +using DcChargeLoopReq = std::variant<DcReqControlMode, dt::DisplayParameters, PresentVoltage, MeterInfoRequested>; |
49 | 47 |
|
50 | 48 | // TODO(ioan): preparation for AC limits
|
51 |
| -using EVSE_TransferLimits = |
52 |
| - std::variant<d20::DcTransferLimits>; |
| 49 | +using EVSE_TransferLimits = std::variant<d20::DcTransferLimits>; |
53 | 50 |
|
54 |
| -using EV_TransferLimits = |
55 |
| - std::variant<dt::DC_CPDReqEnergyTransferMode, dt::BPT_DC_CPDReqEnergyTransferMode>; |
56 |
| -using EV_SEControlMode = |
57 |
| - std::variant<dt::Dynamic_SEReqControlMode, dt::Scheduled_SEReqControlMode>; |
| 51 | +using EV_TransferLimits = std::variant<dt::DC_CPDReqEnergyTransferMode, dt::BPT_DC_CPDReqEnergyTransferMode>; |
| 52 | +using EV_SEControlMode = std::variant<dt::Dynamic_SEReqControlMode, dt::Scheduled_SEReqControlMode>; |
58 | 53 |
|
59 | 54 | struct Callbacks {
|
60 | 55 | std::function<void(Signal)> signal;
|
@@ -85,7 +80,7 @@ class Feedback {
|
85 | 80 | void selected_protocol(const std::string&) const;
|
86 | 81 |
|
87 | 82 | void notify_ev_charging_needs(const dt::ServiceCategory&, const dt::AcConnector&, const dt::ControlMode&,
|
88 |
| - const dt::MobilityNeedsMode&, const feedback::EVSE_TransferLimits&, |
| 83 | + const dt::MobilityNeedsMode&, const feedback::EVSE_TransferLimits&, |
89 | 84 | const feedback::EV_TransferLimits&) const;
|
90 | 85 |
|
91 | 86 | private:
|
|
0 commit comments