libiec61850
1.5.3
|
Data Structures | |
struct | CommParameters |
Macros | |
#define | GOOSE_SV_COMM_PARAMETERS |
Typedefs | |
typedef struct sGoosePublisher * | GoosePublisher |
Functions | |
LIB61850_API GoosePublisher | GoosePublisher_create (CommParameters *parameters, const char *interfaceID) |
Create a new GoosePublisher instance. More... | |
LIB61850_API GoosePublisher | GoosePublisher_createEx (CommParameters *parameters, const char *interfaceID, bool useVlanTag) |
Create a new GoosePublisher instance. More... | |
LIB61850_API void | GoosePublisher_destroy (GoosePublisher self) |
Release all resources of the GoosePublisher instance. More... | |
LIB61850_API int | GoosePublisher_publish (GoosePublisher self, LinkedList dataSet) |
Publish a GOOSE message. More... | |
LIB61850_API int | GoosePublisher_publishAndDump (GoosePublisher self, LinkedList dataSet, char *msgBuf, int32_t *msgLen, int32_t bufSize) |
Publish a GOOSE message and store the sent message in the provided buffer. More... | |
LIB61850_API void | GoosePublisher_setGoID (GoosePublisher self, char *goID) |
Sets the GoID used by the GoosePublisher instance. More... | |
LIB61850_API void | GoosePublisher_setGoCbRef (GoosePublisher self, char *goCbRef) |
Sets the GoCB reference used by the GoosePublisher instance. More... | |
LIB61850_API void | GoosePublisher_setTimeAllowedToLive (GoosePublisher self, uint32_t timeAllowedToLive) |
Sets the time allowed to live value of the GOOSE messages. More... | |
LIB61850_API void | GoosePublisher_setDataSetRef (GoosePublisher self, char *dataSetRef) |
Sets the data set reference used by the GoosePublisher instance. More... | |
LIB61850_API void | GoosePublisher_setConfRev (GoosePublisher self, uint32_t confRev) |
Sets the configuration revision used by the GoosePublisher instance. More... | |
LIB61850_API void | GoosePublisher_setSimulation (GoosePublisher self, bool simulation) |
Sets simulation flag in sent GOOSE messages. More... | |
LIB61850_API void | GoosePublisher_setStNum (GoosePublisher self, uint32_t stNum) |
Manually sets the state number (stNum) of the GoosePublisher instance. More... | |
LIB61850_API void | GoosePublisher_setSqNum (GoosePublisher self, uint32_t sqNum) |
Manually sets the sequence number (sqNum) of the GoosePublisher instance. More... | |
LIB61850_API void | GoosePublisher_setNeedsCommission (GoosePublisher self, bool ndsCom) |
Sets the needs commission flag in sent GOOSE messages. More... | |
LIB61850_API uint64_t | GoosePublisher_increaseStNum (GoosePublisher self) |
Increase the state number (stNum) of the GoosePublisher instance. More... | |
LIB61850_API void | GoosePublisher_reset (GoosePublisher self) |
Reset state and sequence number of the GoosePublisher instance. More... | |
#define GOOSE_SV_COMM_PARAMETERS |
typedef struct sGoosePublisher* GoosePublisher |
LIB61850_API GoosePublisher GoosePublisher_create | ( | CommParameters * | parameters, |
const char * | interfaceID | ||
) |
Create a new GoosePublisher instance.
NOTE: The created GoosePublisher instance uses VLAN tags
parameters | GOOSE communication parameters |
interfaceId | name of the Ethernet interface to use (e.g. "eth0") |
LIB61850_API GoosePublisher GoosePublisher_createEx | ( | CommParameters * | parameters, |
const char * | interfaceID, | ||
bool | useVlanTag | ||
) |
Create a new GoosePublisher instance.
parameters | GOOSE communication parameters |
interfaceId | name of the Ethernet interface to use (e.g. "eth0") |
useVlanTag | enable or disable the usage of VLAN tags in GOOSE messages |
LIB61850_API void GoosePublisher_destroy | ( | GoosePublisher | self | ) |
Release all resources of the GoosePublisher instance.
self | GoosePublisher instance |
LIB61850_API uint64_t GoosePublisher_increaseStNum | ( | GoosePublisher | self | ) |
Increase the state number (stNum) of the GoosePublisher instance.
The state number should be increased whenever a member of the GOOSE data set changed
NOTE: This function also resets the sequence number (sqNum)
self | GoosePublisher instance |
LIB61850_API int GoosePublisher_publish | ( | GoosePublisher | self, |
LinkedList | dataSet | ||
) |
Publish a GOOSE message.
NOTE: This function also increased the sequence number of the GOOSE publisher
self | GoosePublisher instance |
dataSet | the GOOSE data set to send |
LIB61850_API int GoosePublisher_publishAndDump | ( | GoosePublisher | self, |
LinkedList | dataSet, | ||
char * | msgBuf, | ||
int32_t * | msgLen, | ||
int32_t | bufSize | ||
) |
Publish a GOOSE message and store the sent message in the provided buffer.
self | GoosePublisher instance | |
dataSet | the GOOSE data set to send | |
msgBuf | to store the sent message | |
[out] | msgLen | the length of the sent message |
bufSize | the size of the buffer to store the sent message |
LIB61850_API void GoosePublisher_reset | ( | GoosePublisher | self | ) |
Reset state and sequence number of the GoosePublisher instance.
This function will set the state number (stNum) to 1 and the sequence number (sqNum) to 0.
self | GoosePublisher instance |
LIB61850_API void GoosePublisher_setConfRev | ( | GoosePublisher | self, |
uint32_t | confRev | ||
) |
Sets the configuration revision used by the GoosePublisher instance.
self | GoosePublisher instance |
confRev | the configuration revision value |
LIB61850_API void GoosePublisher_setDataSetRef | ( | GoosePublisher | self, |
char * | dataSetRef | ||
) |
Sets the data set reference used by the GoosePublisher instance.
self | GoosePublisher instance |
dataSetRef | the data set reference string |
LIB61850_API void GoosePublisher_setGoCbRef | ( | GoosePublisher | self, |
char * | goCbRef | ||
) |
Sets the GoCB reference used by the GoosePublisher instance.
self | GoosePublisher instance |
goCbRef | the GoCB reference string |
LIB61850_API void GoosePublisher_setGoID | ( | GoosePublisher | self, |
char * | goID | ||
) |
Sets the GoID used by the GoosePublisher instance.
self | GoosePublisher instance |
goID | the GoId string |
LIB61850_API void GoosePublisher_setNeedsCommission | ( | GoosePublisher | self, |
bool | ndsCom | ||
) |
Sets the needs commission flag in sent GOOSE messages.
self | GoosePublisher instance |
ndsCom | the value of the needs commission flag |
LIB61850_API void GoosePublisher_setSimulation | ( | GoosePublisher | self, |
bool | simulation | ||
) |
Sets simulation flag in sent GOOSE messages.
self | GoosePublisher instance |
simulation | the value of the simulation flag |
LIB61850_API void GoosePublisher_setSqNum | ( | GoosePublisher | self, |
uint32_t | sqNum | ||
) |
Manually sets the sequence number (sqNum) of the GoosePublisher instance.
NOTE: Only for testing! The sequence number is increase manually whenever GoosePublisher_publish is called.
self | GoosePublisher instance |
stNum | the state number of the next GOOSE message to send |
LIB61850_API void GoosePublisher_setStNum | ( | GoosePublisher | self, |
uint32_t | stNum | ||
) |
Manually sets the state number (stNum) of the GoosePublisher instance.
NOTE: Only for testing! Use GoosePublisher_increaseStNum instead whenever a data set member changes.
self | GoosePublisher instance |
stNum | the state number of the next GOOSE message to send |
LIB61850_API void GoosePublisher_setTimeAllowedToLive | ( | GoosePublisher | self, |
uint32_t | timeAllowedToLive | ||
) |
Sets the time allowed to live value of the GOOSE messages.
self | GoosePublisher instance |
timeAllowedToLive | the time allowed to live value in milliseconds |