/
tisit
/
OpenPLC_v3
Обзор
Документация
Войти
/
tisit
/
OpenPLC_v3
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
utils/dnp3_src/cpp/libs/src/opendnp3/objects/Group2.h
104 строки
3 KB
thiagoralves
First commit. OpenPLC v3 beta 1
14 июн 2018, 20:43
14 июн 2018, 20:43
1b10e97
Код
Авторство
О чём код?
// // _ _ ______ _ _ _ _ _ _ _ // | \ | | | ____| | (_) | (_) | | | | // | \| | ___ | |__ __| |_| |_ _ _ __ __ _| | | | // | . ` |/ _ \ | __| / _` | | __| | '_ \ / _` | | | | // | |\ | (_) | | |___| (_| | | |_| | | | | (_| |_|_|_| // |_| \_|\___/ |______\__,_|_|\__|_|_| |_|\__, (_|_|_) // __/ | // |___/ // // This file is auto-generated. Do not edit manually // // Copyright 2013 Automatak LLC // // Automatak LLC (www.automatak.com) licenses this file // to you under the the Apache License Version 2.0 (the "License"): // // http://www.apache.org/licenses/LICENSE-2.0.html // #ifndef OPENDNP3_GROUP2_H #define OPENDNP3_GROUP2_H #include "opendnp3/app/GroupVariationID.h" #include <openpal/container/RSlice.h> #include <openpal/container/WSlice.h> #include "opendnp3/app/DNPTime.h" #include "opendnp3/app/DNP3Serializer.h" #include "opendnp3/app/MeasurementTypeSpecs.h" namespace opendnp3 { // Binary Input Event - Any Variation struct Group2Var0 { static GroupVariationID ID() { return GroupVariationID(2,0); } }; // Binary Input Event - Without Time struct Group2Var1 { static GroupVariationID ID() { return GroupVariationID(2,1); } Group2Var1(); static uint32_t Size() { return 1; } static bool Read(openpal::RSlice&, Group2Var1&); static bool Write(const Group2Var1&, openpal::WSlice&); uint8_t flags; typedef Binary Target; typedef BinarySpec Spec; static bool ReadTarget(openpal::RSlice&, Binary&); static bool WriteTarget(const Binary&, openpal::WSlice&); static DNP3Serializer<Binary> Inst() { return DNP3Serializer<Binary>(ID(), Size(), &ReadTarget, &WriteTarget); } }; // Binary Input Event - With Absolute Time struct Group2Var2 { static GroupVariationID ID() { return GroupVariationID(2,2); } Group2Var2(); static uint32_t Size() { return 7; } static bool Read(openpal::RSlice&, Group2Var2&); static bool Write(const Group2Var2&, openpal::WSlice&); uint8_t flags; DNPTime time; typedef Binary Target; typedef BinarySpec Spec; static bool ReadTarget(openpal::RSlice&, Binary&); static bool WriteTarget(const Binary&, openpal::WSlice&); static DNP3Serializer<Binary> Inst() { return DNP3Serializer<Binary>(ID(), Size(), &ReadTarget, &WriteTarget); } }; // Binary Input Event - With Relative Time struct Group2Var3 { static GroupVariationID ID() { return GroupVariationID(2,3); } Group2Var3(); static uint32_t Size() { return 3; } static bool Read(openpal::RSlice&, Group2Var3&); static bool Write(const Group2Var3&, openpal::WSlice&); uint8_t flags; uint16_t time; typedef Binary Target; typedef BinarySpec Spec; static bool ReadTarget(openpal::RSlice&, Binary&); static bool WriteTarget(const Binary&, openpal::WSlice&); static DNP3Serializer<Binary> Inst() { return DNP3Serializer<Binary>(ID(), Size(), &ReadTarget, &WriteTarget); } }; } #endif