|
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 {
|
@@ -41,21 +41,16 @@ struct DcMaximumLimits {
|
41 | 41 |
|
42 | 42 | using PresentVoltage = dt::RationalNumber;
|
43 | 43 | using MeterInfoRequested = bool;
|
44 |
| -using DcReqControlMode = std::variant< |
45 |
| - dt::Scheduled_DC_CLReqControlMode, dt::BPT_Scheduled_DC_CLReqControlMode, |
46 |
| - dt::Dynamic_DC_CLReqControlMode, dt::BPT_Dynamic_DC_CLReqControlMode>; |
| 44 | +using DcReqControlMode = std::variant<dt::Scheduled_DC_CLReqControlMode, dt::BPT_Scheduled_DC_CLReqControlMode, |
| 45 | + dt::Dynamic_DC_CLReqControlMode, dt::BPT_Dynamic_DC_CLReqControlMode>; |
47 | 46 |
|
48 |
| -using DcChargeLoopReq = |
49 |
| - std::variant<DcReqControlMode, dt::DisplayParameters, PresentVoltage, MeterInfoRequested>; |
| 47 | +using DcChargeLoopReq = std::variant<DcReqControlMode, dt::DisplayParameters, PresentVoltage, MeterInfoRequested>; |
50 | 48 |
|
51 | 49 | // TODO(ioan): preparation for AC limits
|
52 |
| -using EVSE_TransferLimits = |
53 |
| - std::variant<d20::DcTransferLimits>; |
| 50 | +using EVSE_TransferLimits = std::variant<d20::DcTransferLimits>; |
54 | 51 |
|
55 |
| -using EV_TransferLimits = |
56 |
| - std::variant<dt::DC_CPDReqEnergyTransferMode, dt::BPT_DC_CPDReqEnergyTransferMode>; |
57 |
| -using EV_SEControlMode = |
58 |
| - std::variant<dt::Dynamic_SEReqControlMode, dt::Scheduled_SEReqControlMode>; |
| 52 | +using EV_TransferLimits = std::variant<dt::DC_CPDReqEnergyTransferMode, dt::BPT_DC_CPDReqEnergyTransferMode>; |
| 53 | +using EV_SEControlMode = std::variant<dt::Dynamic_SEReqControlMode, dt::Scheduled_SEReqControlMode>; |
59 | 54 |
|
60 | 55 | struct Callbacks {
|
61 | 56 | std::function<void(Signal)> signal;
|
@@ -86,7 +81,7 @@ class Feedback {
|
86 | 81 | void selected_protocol(const std::string&) const;
|
87 | 82 |
|
88 | 83 | void notify_ev_charging_needs(const dt::ServiceCategory&, const dt::AcConnector&, const dt::ControlMode&,
|
89 |
| - const dt::MobilityNeedsMode&, const feedback::EVSE_TransferLimits&, |
| 84 | + const dt::MobilityNeedsMode&, const feedback::EVSE_TransferLimits&, |
90 | 85 | const feedback::EV_TransferLimits&) const;
|
91 | 86 |
|
92 | 87 | private:
|
|
0 commit comments