From a6630febb2efe01dcd72e46dc671667494b21fb5 Mon Sep 17 00:00:00 2001 From: Nikunj Patel Date: Mon, 20 Feb 2023 13:05:42 +0100 Subject: [PATCH] Update iec61850.i --- pyiec61850/iec61850.i | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/pyiec61850/iec61850.i b/pyiec61850/iec61850.i index 254fec64..917c15d4 100644 --- a/pyiec61850/iec61850.i +++ b/pyiec61850/iec61850.i @@ -160,3 +160,45 @@ void CommParameters_setDstAddress(CommParameters *gooseCommParameters, #include "servicePythonWrapper.hpp" %} %include "servicePythonWrapper.hpp" + + /* SV Subscriber section */ +%{ +struct sSVSubscriber; +typedef struct sSVSubscriber* SVSubscriber; +struct sSVSubscriber_ASDU { + + char* svId; + char* datSet; + + uint8_t* smpCnt; + uint8_t* confRev; + uint8_t* refrTm; + uint8_t* smpSynch; + uint8_t* smpMod; + uint8_t* smpRate; + + int dataBufferLength; + uint8_t* dataBuffer; +}; +typedef struct sSVSubscriber_ASDU* SVSubscriber_ASDU; +#include "sv_subscriber.h" +#include "sv_publisher.h" +%} +%include "sv_publisher.h" +%include "sv_subscriber.h" +struct sSVSubscriber_ASDU { + + char* svId; + char* datSet; + + uint8_t* smpCnt; + uint8_t* confRev; + uint8_t* refrTm; + uint8_t* smpSynch; + uint8_t* smpMod; + uint8_t* smpRate; + + int dataBufferLength; + uint8_t* dataBuffer; +}; +typedef struct sSVSubscriber_ASDU* SVSubscriber_ASDU;