/** Node type: IEC 61850-9-2 (Sampled Values) * * @file * @author Steffen Vogel * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC * @license GNU General Public License (version 3) * * VILLASnode * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . *********************************************************************************/ #pragma once #include #include #include #include #include #include #include namespace villas { namespace node { /* Forward declarations */ class NodeCompat; struct iec61850_sv { char *interface; int app_id; struct ether_addr dst_address; struct { bool enabled; SVSubscriber subscriber; SVReceiver receiver; struct CQueueSignalled queue; struct Pool pool; struct List signals; /**< Mappings of type struct iec61850_type_descriptor */ int total_size; } in; struct { bool enabled; SVPublisher publisher; SVPublisher_ASDU asdu; char *svid; int vlan_priority; int vlan_id; int smpmod; int smprate; int confrev; struct List signals; /**< Mappings of type struct iec61850_type_descriptor */ int total_size; } out; }; int iec61850_sv_type_stop(); int iec61850_sv_parse(NodeCompat *n, json_t *json); char * iec61850_sv_print(NodeCompat *n); int iec61850_sv_start(NodeCompat *n); int iec61850_sv_stop(NodeCompat *n); int iec61850_sv_destroy(NodeCompat *n); int iec61850_sv_read(NodeCompat *n, struct Sample * const smps[], unsigned cnt); int iec61850_sv_write(NodeCompat *n, struct Sample * const smps[], unsigned cnt); int iec61850_sv_poll_fds(NodeCompat *n, int fds[]); } /* namespace node */ } /* namespace villas */