libiec61850
1.6.0
|
Modules | |
Values Application Service Data Unit (ASDU) | |
Deprecated API | |
Macros | |
#define | IEC61850_SV_SMPSYNC_NOT_SYNCHRONIZED 0 |
#define | IEC61850_SV_SMPSYNC_SYNCED_UNSPEC_LOCAL_CLOCK 1 |
#define | IEC61850_SV_SMPSYNC_SYNCED_GLOBAL_CLOCK 2 |
#define | IEC61850_SV_SMPMOD_PER_NOMINAL_PERIOD 0 |
#define | IEC61850_SV_SMPMOD_SAMPLES_PER_SECOND 1 |
#define | IEC61850_SV_SMPMOD_SECONDS_PER_SAMPLE 2 |
#define | DEPRECATED |
Typedefs | |
typedef struct sSVPublisher * | SVPublisher |
An opaque type representing an IEC 61850-9-2 Sampled Values publisher. More... | |
typedef struct sSVPublisher_ASDU * | SVPublisher_ASDU |
An opaque type representing an IEC 61850-9-2 Sampled Values Application Service Data Unit (ASDU). More... | |
Functions | |
LIB61850_API SVPublisher | SVPublisher_create (CommParameters *parameters, const char *interfaceId) |
Create a new IEC61850-9-2 Sampled Values publisher. More... | |
LIB61850_API SVPublisher | SVPublisher_createEx (CommParameters *parameters, const char *interfaceId, bool useVlanTag) |
Create a new IEC61850-9-2 Sampled Values publisher. More... | |
LIB61850_API SVPublisher | SVPublisher_createRemote (RSession session, uint16_t appId) |
Create a new SVPublisher instance for R-SMV. More... | |
LIB61850_API SVPublisher_ASDU | SVPublisher_addASDU (SVPublisher self, const char *svID, const char *datset, uint32_t confRev) |
Create an Application Service Data Unit (ASDU) and add it to an existing Sampled Values publisher. More... | |
LIB61850_API void | SVPublisher_setupComplete (SVPublisher self) |
Prepare the publisher for publishing. More... | |
LIB61850_API void | SVPublisher_publish (SVPublisher self) |
Publish all registered ASDUs. More... | |
LIB61850_API void | SVPublisher_destroy (SVPublisher self) |
Destroy an IEC61850-9-2 Sampled Values instance. More... | |
Variables | |
uint8_t | CommParameters::vlanPriority |
uint16_t | CommParameters::vlanId |
uint16_t | CommParameters::appId |
uint8_t | CommParameters::dstAddress [6] |
#define DEPRECATED |
#define IEC61850_SV_SMPMOD_PER_NOMINAL_PERIOD 0 |
#define IEC61850_SV_SMPMOD_SAMPLES_PER_SECOND 1 |
#define IEC61850_SV_SMPMOD_SECONDS_PER_SAMPLE 2 |
#define IEC61850_SV_SMPSYNC_NOT_SYNCHRONIZED 0 |
#define IEC61850_SV_SMPSYNC_SYNCED_GLOBAL_CLOCK 2 |
#define IEC61850_SV_SMPSYNC_SYNCED_UNSPEC_LOCAL_CLOCK 1 |
typedef struct sSVPublisher* SVPublisher |
An opaque type representing an IEC 61850-9-2 Sampled Values publisher.
typedef struct sSVPublisher_ASDU* SVPublisher_ASDU |
An opaque type representing an IEC 61850-9-2 Sampled Values Application Service Data Unit (ASDU).
LIB61850_API SVPublisher_ASDU SVPublisher_addASDU | ( | SVPublisher | self, |
const char * | svID, | ||
const char * | datset, | ||
uint32_t | confRev | ||
) |
Create an Application Service Data Unit (ASDU) and add it to an existing Sampled Values publisher.
[in] | svID | |
[in] | datset | |
[in] | confRev | Configuration revision number. Should be incremented each time that the configuration of the logical device changes. |
LIB61850_API SVPublisher SVPublisher_create | ( | CommParameters * | parameters, |
const char * | interfaceId | ||
) |
Create a new IEC61850-9-2 Sampled Values publisher.
NOTE: VLAN tagging is enabled when calling this constructor. To disable VLAN tagging use SVPublisher_createEx instead.
[in] | interfaceId | the name of the interface over which the SV publisher should send SV packets. |
[in] | parameters | optional parameters for setting VLAN options and destination MAC address. Use NULL for default values. |
LIB61850_API SVPublisher SVPublisher_createEx | ( | CommParameters * | parameters, |
const char * | interfaceId, | ||
bool | useVlanTag | ||
) |
Create a new IEC61850-9-2 Sampled Values publisher.
[in] | interfaceId | the name of the interface over which the SV publisher should send SV packets. |
[in] | parameters | optional parameters for setting VLAN options and destination MAC address. Use NULL for default values. |
[in] | useVlanTags | enable(true)/disable(false) VLAN tagging |
LIB61850_API SVPublisher SVPublisher_createRemote | ( | RSession | session, |
uint16_t | appId | ||
) |
Create a new SVPublisher instance for R-SMV.
session | R-session protocol instance to use |
appId | the appID value to use |
LIB61850_API void SVPublisher_destroy | ( | SVPublisher | self | ) |
Destroy an IEC61850-9-2 Sampled Values instance.
[in] | self | the Sampled Values publisher instance. |
LIB61850_API void SVPublisher_publish | ( | SVPublisher | self | ) |
Publish all registered ASDUs.
[in] | self | the Sampled Values publisher instance. |
LIB61850_API void SVPublisher_setupComplete | ( | SVPublisher | self | ) |
Prepare the publisher for publishing.
This method must be called before SVPublisher_publish().
[in] | self | the Sampled Values publisher instance. |
uint16_t CommParameters::appId |
uint8_t CommParameters::dstAddress[6] |
uint16_t CommParameters::vlanId |
uint8_t CommParameters::vlanPriority |