libIEC61850
1.0.0
Open-source IEC 61850 MMS/GOOSE/SV server and client library
|
#include "libiec61850_common_api.h"
Go to the source code of this file.
Typedefs | |
typedef struct sSVClientASDU * | SVClientASDU |
opaque handle to a SV ASDU (Application service data unit) instance. More... | |
typedef struct sSVSubscriber * | SVSubscriber |
opaque handle to a SV subscriber instance More... | |
typedef void(* | SVUpdateListener) (SVSubscriber subscriber, void *parameter, SVClientASDU asdu) |
Callback function for received SV messages. More... | |
typedef struct sSVReceiver * | SVReceiver |
opaque handle to a SV receiver instance More... | |
Functions | |
SVReceiver | SVReceiver_create (void) |
Create a new SV receiver instance. More... | |
void | SVReceiver_disableDestAddrCheck (SVReceiver self) |
Disable check for destination address of the received SV messages. More... | |
void | SVReceiver_setInterfaceId (SVReceiver self, const char *interfaceId) |
Set the Ethernet interface ID for the receiver instance. More... | |
void | SVReceiver_addSubscriber (SVReceiver self, SVSubscriber subscriber) |
Add a subscriber instance to the receiver. More... | |
void | SVReceiver_removeSubscriber (SVReceiver self, SVSubscriber subscriber) |
Disconnect subscriber and receiver. More... | |
void | SVReceiver_start (SVReceiver self) |
Receiver starts listening for SV messages. More... | |
void | SVReceiver_stop (SVReceiver self) |
Receiver stops listening for SV messages. More... | |
void | SVReceiver_destroy (SVReceiver self) |
Destroy receiver instance (cleanup resources) More... | |
void | SVReceiver_startThreadless (SVReceiver self) |
void | SVReceiver_stopThreadless (SVReceiver self) |
bool | SVReceiver_tick (SVReceiver self) |
SVSubscriber | SVSubscriber_create (const uint8_t *ethAddr, uint16_t appID) |
void | SVSubscriber_setListener (SVSubscriber self, SVUpdateListener listener, void *parameter) |
Set a callback handler to process received SV messages. More... | |
void | SVSubscriber_destroy (SVSubscriber self) |
uint16_t | SVClientASDU_getSmpCnt (SVClientASDU self) |
return the SmpCnt value included in the SV ASDU More... | |
const char * | SVClientASDU_getSvId (SVClientASDU self) |
return the SvID value included in the SV ASDU More... | |
uint32_t | SVClientASDU_getConfRev (SVClientASDU self) |
return the ConfRev value included in the SV ASDU More... | |
int8_t | SVClientASDU_getINT8 (SVClientASDU self, int index) |
Get an INT8 data value in the data part of the ASDU. More... | |
int16_t | SVClientASDU_getINT16 (SVClientASDU self, int index) |
Get an INT16 data value in the data part of the ASDU. More... | |
int32_t | SVClientASDU_getINT32 (SVClientASDU self, int index) |
Get an INT32 data value in the data part of the ASDU. More... | |
uint8_t | SVClientASDU_getINT8U (SVClientASDU self, int index) |
Get an INT8U data value in the data part of the ASDU. More... | |
uint16_t | SVClientASDU_getINT16U (SVClientASDU self, int index) |
Get an INT16U data value in the data part of the ASDU. More... | |
uint32_t | SVClientASDU_getINT32U (SVClientASDU self, int index) |
Get an INT32U data value in the data part of the ASDU. More... | |
float | SVClientASDU_getFLOAT32 (SVClientASDU self, int index) |
Get an FLOAT32 data value in the data part of the ASDU. More... | |
double | SVClientASDU_getFLOAT64 (SVClientASDU self, int index) |
Get an FLOAT64 data value in the data part of the ASDU. More... | |
int | SVClientASDU_getDataSize (SVClientASDU self) |
Returns the size of the data part of the ASDU. More... | |