Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SV publisher and subscription was missing #440

Open
wants to merge 1 commit into
base: v1.5
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions pyiec61850/iec61850.i
Original file line number Diff line number Diff line change
Expand Up @@ -160,3 +160,47 @@ 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;