libiec61850
1.6.0
|
Macros | |
#define | IEC61850_SV_OPT_REFRESH_TIME 1 |
#define | IEC61850_SV_OPT_SAMPLE_SYNC 2 |
#define | IEC61850_SV_OPT_SAMPLE_RATE 4 |
#define | IEC61850_SV_OPT_DATA_SET 8 |
#define | IEC61850_SV_OPT_SECURITY 16 |
#define | IEC61850_SV_SMPMOD_SAMPLES_PER_PERIOD 0 |
#define | IEC61850_SV_SMPMOD_SAMPLES_PER_SECOND 1 |
#define | IEC61850_SV_SMPMOD_SECONDS_PER_SAMPLE 2 |
Typedefs | |
typedef struct sClientSVControlBlock * | ClientSVControlBlock |
Functions | |
LIB61850_API ClientSVControlBlock | ClientSVControlBlock_create (IedConnection connection, const char *reference) |
Create a new ClientSVControlBlock instance. More... | |
LIB61850_API void | ClientSVControlBlock_destroy (ClientSVControlBlock self) |
Free all resources related to the ClientSVControlBlock instance. More... | |
LIB61850_API bool | ClientSVControlBlock_isMulticast (ClientSVControlBlock self) |
Test if this SVCB is multicast. More... | |
LIB61850_API IedClientError | ClientSVControlBlock_getLastComError (ClientSVControlBlock self) |
Return the error code of the last write or write acccess to the SVCB. More... | |
LIB61850_API bool | ClientSVControlBlock_setSvEna (ClientSVControlBlock self, bool value) |
LIB61850_API bool | ClientSVControlBlock_getSvEna (ClientSVControlBlock self) |
LIB61850_API bool | ClientSVControlBlock_setResv (ClientSVControlBlock self, bool value) |
LIB61850_API bool | ClientSVControlBlock_getResv (ClientSVControlBlock self) |
LIB61850_API char * | ClientSVControlBlock_getMsvID (ClientSVControlBlock self) |
LIB61850_API char * | ClientSVControlBlock_getDatSet (ClientSVControlBlock self) |
Get the (MMS) reference to the data set. More... | |
LIB61850_API uint32_t | ClientSVControlBlock_getConfRev (ClientSVControlBlock self) |
LIB61850_API uint16_t | ClientSVControlBlock_getSmpRate (ClientSVControlBlock self) |
LIB61850_API PhyComAddress | ClientSVControlBlock_getDstAddress (ClientSVControlBlock self) |
returns the destination address of the SV publisher More... | |
LIB61850_API int | ClientSVControlBlock_getOptFlds (ClientSVControlBlock self) |
Gets the OptFlds parameter of the RCB (decides what information to include in a report) More... | |
LIB61850_API uint8_t | ClientSVControlBlock_getSmpMod (ClientSVControlBlock self) |
returns number of sample mode of the SV publisher More... | |
LIB61850_API int | ClientSVControlBlock_getNoASDU (ClientSVControlBlock self) |
returns number of ASDUs included in the SV message More... | |
#define IEC61850_SV_OPT_DATA_SET 8 |
SV ASDU contains attribute DatSet
#define IEC61850_SV_OPT_REFRESH_TIME 1 |
SV ASDU contains attribute RefrTm
#define IEC61850_SV_OPT_SAMPLE_RATE 4 |
SV ASDU contains attribute SmpRate
#define IEC61850_SV_OPT_SAMPLE_SYNC 2 |
SV ASDU contains attribute SmpSynch
#define IEC61850_SV_OPT_SECURITY 16 |
SV ASDU contains attribute Security
#define IEC61850_SV_SMPMOD_SAMPLES_PER_PERIOD 0 |
#define IEC61850_SV_SMPMOD_SAMPLES_PER_SECOND 1 |
#define IEC61850_SV_SMPMOD_SECONDS_PER_SAMPLE 2 |
typedef struct sClientSVControlBlock* ClientSVControlBlock |
an opaque handle to the instance data of a ClientSVControlBlock object
LIB61850_API ClientSVControlBlock ClientSVControlBlock_create | ( | IedConnection | connection, |
const char * | reference | ||
) |
Create a new ClientSVControlBlock instance.
This function simplifies client side access to server MSV/USV control blocks NOTE: Do not use the functions after the IedConnection object is invalidated!
The access functions cause synchronous read/write calls to the server. For asynchronous access use the IedConnection_readObjectAsync and IedConnection_writeObjectAsync functions.
connection | the IedConnection object with a valid connection to the server. |
reference | the object reference of the control block |
LIB61850_API void ClientSVControlBlock_destroy | ( | ClientSVControlBlock | self | ) |
Free all resources related to the ClientSVControlBlock instance.
self | the ClientSVControlBlock instance to operate on |
LIB61850_API uint32_t ClientSVControlBlock_getConfRev | ( | ClientSVControlBlock | self | ) |
LIB61850_API char* ClientSVControlBlock_getDatSet | ( | ClientSVControlBlock | self | ) |
Get the (MMS) reference to the data set.
NOTE: the returned string is dynamically allocated with the GLOBAL_MALLOC macro. The application is responsible to release the memory when the string is no longer needed.
self | the ClientSVControlBlock instance to operate on |
LIB61850_API PhyComAddress ClientSVControlBlock_getDstAddress | ( | ClientSVControlBlock | self | ) |
returns the destination address of the SV publisher
self | the ClientSVControlBlock instance to operate on |
LIB61850_API IedClientError ClientSVControlBlock_getLastComError | ( | ClientSVControlBlock | self | ) |
Return the error code of the last write or write acccess to the SVCB.
self | the ClientSVControlBlock instance to operate on |
LIB61850_API char* ClientSVControlBlock_getMsvID | ( | ClientSVControlBlock | self | ) |
LIB61850_API int ClientSVControlBlock_getNoASDU | ( | ClientSVControlBlock | self | ) |
returns number of ASDUs included in the SV message
self | the ClientSVControlBlock instance to operate on |
LIB61850_API int ClientSVControlBlock_getOptFlds | ( | ClientSVControlBlock | self | ) |
Gets the OptFlds parameter of the RCB (decides what information to include in a report)
self | the RCB instance |
LIB61850_API bool ClientSVControlBlock_getResv | ( | ClientSVControlBlock | self | ) |
LIB61850_API uint8_t ClientSVControlBlock_getSmpMod | ( | ClientSVControlBlock | self | ) |
returns number of sample mode of the SV publisher
self | the ClientSVControlBlock instance to operate on |
LIB61850_API uint16_t ClientSVControlBlock_getSmpRate | ( | ClientSVControlBlock | self | ) |
LIB61850_API bool ClientSVControlBlock_getSvEna | ( | ClientSVControlBlock | self | ) |
LIB61850_API bool ClientSVControlBlock_isMulticast | ( | ClientSVControlBlock | self | ) |
Test if this SVCB is multicast.
self | the ClientSVControlBlock instance to operate on |
LIB61850_API bool ClientSVControlBlock_setResv | ( | ClientSVControlBlock | self, |
bool | value | ||
) |
LIB61850_API bool ClientSVControlBlock_setSvEna | ( | ClientSVControlBlock | self, |
bool | value | ||
) |