libiec61850  1.5.3
Modules | Macros | Functions
Values Application Service Data Unit (ASDU)

Modules

 Deprecated API
 

Macros

#define DEPRECATED
 

Functions

LIB61850_API uint16_t SVSubscriber_ASDU_getSmpCnt (SVSubscriber_ASDU self)
 return the SmpCnt value included in the SV ASDU More...
 
LIB61850_API const char * SVSubscriber_ASDU_getSvId (SVSubscriber_ASDU self)
 return the SvID value included in the SV ASDU More...
 
LIB61850_API const char * SVSubscriber_ASDU_getDatSet (SVSubscriber_ASDU self)
 return the DatSet value included in the SV ASDU More...
 
LIB61850_API uint32_t SVSubscriber_ASDU_getConfRev (SVSubscriber_ASDU self)
 return the ConfRev value included in the SV ASDU More...
 
LIB61850_API uint8_t SVSubscriber_ASDU_getSmpMod (SVSubscriber_ASDU self)
 return the SmpMod value included in the SV ASDU More...
 
LIB61850_API uint16_t SVSubscriber_ASDU_getSmpRate (SVSubscriber_ASDU self)
 return the SmpRate value included in the SV ASDU More...
 
LIB61850_API bool SVSubscriber_ASDU_hasDatSet (SVSubscriber_ASDU self)
 Check if DatSet value is included in the SV ASDU. More...
 
LIB61850_API bool SVSubscriber_ASDU_hasRefrTm (SVSubscriber_ASDU self)
 Check if RefrTm value is included in the SV ASDU. More...
 
LIB61850_API bool SVSubscriber_ASDU_hasSmpMod (SVSubscriber_ASDU self)
 Check if SmpMod value is included in the SV ASDU. More...
 
LIB61850_API bool SVSubscriber_ASDU_hasSmpRate (SVSubscriber_ASDU self)
 Check if SmpRate value is included in the SV ASDU. More...
 
LIB61850_API uint64_t SVSubscriber_ASDU_getRefrTmAsMs (SVSubscriber_ASDU self)
 Get the RefrTim value included in SV ASDU as milliseconds timestamp. More...
 
LIB61850_API nsSinceEpoch SVSubscriber_ASDU_getRefrTmAsNs (SVSubscriber_ASDU self)
 Get the RefrTim value included in SV ASDU as nanoseconds timestamp. More...
 
LIB61850_API int8_t SVSubscriber_ASDU_getINT8 (SVSubscriber_ASDU self, int index)
 Get an INT8 data value in the data part of the ASDU. More...
 
LIB61850_API int16_t SVSubscriber_ASDU_getINT16 (SVSubscriber_ASDU self, int index)
 Get an INT16 data value in the data part of the ASDU. More...
 
LIB61850_API int32_t SVSubscriber_ASDU_getINT32 (SVSubscriber_ASDU self, int index)
 Get an INT32 data value in the data part of the ASDU. More...
 
LIB61850_API int64_t SVSubscriber_ASDU_getINT64 (SVSubscriber_ASDU self, int index)
 Get an INT64 data value in the data part of the ASDU. More...
 
LIB61850_API uint8_t SVSubscriber_ASDU_getINT8U (SVSubscriber_ASDU self, int index)
 Get an INT8U data value in the data part of the ASDU. More...
 
LIB61850_API uint16_t SVSubscriber_ASDU_getINT16U (SVSubscriber_ASDU self, int index)
 Get an INT16U data value in the data part of the ASDU. More...
 
LIB61850_API uint32_t SVSubscriber_ASDU_getINT32U (SVSubscriber_ASDU self, int index)
 Get an INT32U data value in the data part of the ASDU. More...
 
LIB61850_API uint64_t SVSubscriber_ASDU_getINT64U (SVSubscriber_ASDU self, int index)
 Get an INT64U data value in the data part of the ASDU. More...
 
LIB61850_API float SVSubscriber_ASDU_getFLOAT32 (SVSubscriber_ASDU self, int index)
 Get an FLOAT32 data value in the data part of the ASDU. More...
 
LIB61850_API double SVSubscriber_ASDU_getFLOAT64 (SVSubscriber_ASDU self, int index)
 Get an FLOAT64 data value in the data part of the ASDU. More...
 
LIB61850_API Timestamp SVSubscriber_ASDU_getTimestamp (SVSubscriber_ASDU self, int index)
 Get a timestamp data value in the data part of the ASDU. More...
 
LIB61850_API Quality SVSubscriber_ASDU_getQuality (SVSubscriber_ASDU self, int index)
 Get a quality value in the data part of the ASDU. More...
 
LIB61850_API int SVSubscriber_ASDU_getDataSize (SVSubscriber_ASDU self)
 Returns the size of the data part of the ASDU. More...
 
uint8_t SVSubscriber_ASDU_getSmpSynch (SVSubscriber_ASDU self)
 return the SmpSynch value included in the SV ASDU More...
 

Detailed Description

Macro Definition Documentation

◆ DEPRECATED

#define DEPRECATED

Function Documentation

◆ SVSubscriber_ASDU_getConfRev()

LIB61850_API uint32_t SVSubscriber_ASDU_getConfRev ( SVSubscriber_ASDU  self)

return the ConfRev value included in the SV ASDU

Parameters
selfASDU object instance

◆ SVSubscriber_ASDU_getDataSize()

LIB61850_API int SVSubscriber_ASDU_getDataSize ( SVSubscriber_ASDU  self)

Returns the size of the data part of the ASDU.

Parameters
selfASDU object instance
Returns
size of the ASDU data part in bytes.

◆ SVSubscriber_ASDU_getDatSet()

LIB61850_API const char* SVSubscriber_ASDU_getDatSet ( SVSubscriber_ASDU  self)

return the DatSet value included in the SV ASDU

Parameters
selfASDU object instance

◆ SVSubscriber_ASDU_getFLOAT32()

LIB61850_API float SVSubscriber_ASDU_getFLOAT32 ( SVSubscriber_ASDU  self,
int  index 
)

Get an FLOAT32 data value in the data part of the ASDU.

Parameters
selfASDU object instance
indexthe index (byte position of the start) of the data in the data part
Returns
SV data

◆ SVSubscriber_ASDU_getFLOAT64()

LIB61850_API double SVSubscriber_ASDU_getFLOAT64 ( SVSubscriber_ASDU  self,
int  index 
)

Get an FLOAT64 data value in the data part of the ASDU.

Parameters
selfASDU object instance
indexthe index (byte position of the start) of the data in the data part
Returns
SV data

◆ SVSubscriber_ASDU_getINT16()

LIB61850_API int16_t SVSubscriber_ASDU_getINT16 ( SVSubscriber_ASDU  self,
int  index 
)

Get an INT16 data value in the data part of the ASDU.

Parameters
selfASDU object instance
indexthe index (byte position of the start) of the data in the data part
Returns
SV data

◆ SVSubscriber_ASDU_getINT16U()

LIB61850_API uint16_t SVSubscriber_ASDU_getINT16U ( SVSubscriber_ASDU  self,
int  index 
)

Get an INT16U data value in the data part of the ASDU.

Parameters
selfASDU object instance
indexthe index (byte position of the start) of the data in the data part
Returns
SV data

◆ SVSubscriber_ASDU_getINT32()

LIB61850_API int32_t SVSubscriber_ASDU_getINT32 ( SVSubscriber_ASDU  self,
int  index 
)

Get an INT32 data value in the data part of the ASDU.

Parameters
selfASDU object instance
indexthe index (byte position of the start) of the data in the data part
Returns
SV data

◆ SVSubscriber_ASDU_getINT32U()

LIB61850_API uint32_t SVSubscriber_ASDU_getINT32U ( SVSubscriber_ASDU  self,
int  index 
)

Get an INT32U data value in the data part of the ASDU.

Parameters
selfASDU object instance
indexthe index (byte position of the start) of the data in the data part
Returns
SV data

◆ SVSubscriber_ASDU_getINT64()

LIB61850_API int64_t SVSubscriber_ASDU_getINT64 ( SVSubscriber_ASDU  self,
int  index 
)

Get an INT64 data value in the data part of the ASDU.

Parameters
selfASDU object instance
indexthe index (byte position of the start) of the data in the data part
Returns
SV data

◆ SVSubscriber_ASDU_getINT64U()

LIB61850_API uint64_t SVSubscriber_ASDU_getINT64U ( SVSubscriber_ASDU  self,
int  index 
)

Get an INT64U data value in the data part of the ASDU.

Parameters
selfASDU object instance
indexthe index (byte position of the start) of the data in the data part
Returns
SV data

◆ SVSubscriber_ASDU_getINT8()

LIB61850_API int8_t SVSubscriber_ASDU_getINT8 ( SVSubscriber_ASDU  self,
int  index 
)

Get an INT8 data value in the data part of the ASDU.

Parameters
selfASDU object instance
indexthe index (byte position of the start) of the data in the data part
Returns
SV data

◆ SVSubscriber_ASDU_getINT8U()

LIB61850_API uint8_t SVSubscriber_ASDU_getINT8U ( SVSubscriber_ASDU  self,
int  index 
)

Get an INT8U data value in the data part of the ASDU.

Parameters
selfASDU object instance
indexthe index (byte position of the start) of the data in the data part
Returns
SV data

◆ SVSubscriber_ASDU_getQuality()

LIB61850_API Quality SVSubscriber_ASDU_getQuality ( SVSubscriber_ASDU  self,
int  index 
)

Get a quality value in the data part of the ASDU.

NOTE: Quality is encoded as BITSTRING (4 byte)

Parameters
selfASDU object instance
indexthe index (byte position of the start) of the data in the data part
Returns
SV data

◆ SVSubscriber_ASDU_getRefrTmAsMs()

LIB61850_API uint64_t SVSubscriber_ASDU_getRefrTmAsMs ( SVSubscriber_ASDU  self)

Get the RefrTim value included in SV ASDU as milliseconds timestamp.

Parameters
selfASDU object instance
Returns
the time value as ms timestamp or 0 if RefrTm is not present in the SV ASDU

◆ SVSubscriber_ASDU_getRefrTmAsNs()

LIB61850_API nsSinceEpoch SVSubscriber_ASDU_getRefrTmAsNs ( SVSubscriber_ASDU  self)

Get the RefrTim value included in SV ASDU as nanoseconds timestamp.

Parameters
selfASDU object instance
Returns
the time value as nanoseconds timestamp or 0 if RefrTm is not present in the SV ASDU

◆ SVSubscriber_ASDU_getSmpCnt()

LIB61850_API uint16_t SVSubscriber_ASDU_getSmpCnt ( SVSubscriber_ASDU  self)

return the SmpCnt value included in the SV ASDU

The SmpCnt (sample counter) is increased for each ASDU to identify the sample.

Parameters
selfASDU object instance

◆ SVSubscriber_ASDU_getSmpMod()

LIB61850_API uint8_t SVSubscriber_ASDU_getSmpMod ( SVSubscriber_ASDU  self)

return the SmpMod value included in the SV ASDU

Parameters
selfASDU object instance

◆ SVSubscriber_ASDU_getSmpRate()

LIB61850_API uint16_t SVSubscriber_ASDU_getSmpRate ( SVSubscriber_ASDU  self)

return the SmpRate value included in the SV ASDU

Parameters
selfASDU object instance

◆ SVSubscriber_ASDU_getSmpSynch()

uint8_t SVSubscriber_ASDU_getSmpSynch ( SVSubscriber_ASDU  self)

return the SmpSynch value included in the SV ASDU

The SmpSynch gives information about the clock synchronization.

Parameters
selfASDU object instance

◆ SVSubscriber_ASDU_getSvId()

LIB61850_API const char* SVSubscriber_ASDU_getSvId ( SVSubscriber_ASDU  self)

return the SvID value included in the SV ASDU

Parameters
selfASDU object instance

◆ SVSubscriber_ASDU_getTimestamp()

LIB61850_API Timestamp SVSubscriber_ASDU_getTimestamp ( SVSubscriber_ASDU  self,
int  index 
)

Get a timestamp data value in the data part of the ASDU.

Parameters
selfASDU object instance
indexthe index (byte position of the start) of the data in the data part
Returns
SV data

◆ SVSubscriber_ASDU_hasDatSet()

LIB61850_API bool SVSubscriber_ASDU_hasDatSet ( SVSubscriber_ASDU  self)

Check if DatSet value is included in the SV ASDU.

Parameters
selfASDU object instance
Returns
true if DatSet value is present, false otherwise

◆ SVSubscriber_ASDU_hasRefrTm()

LIB61850_API bool SVSubscriber_ASDU_hasRefrTm ( SVSubscriber_ASDU  self)

Check if RefrTm value is included in the SV ASDU.

Parameters
selfASDU object instance
Returns
true if RefrTm value is present, false otherwise

◆ SVSubscriber_ASDU_hasSmpMod()

LIB61850_API bool SVSubscriber_ASDU_hasSmpMod ( SVSubscriber_ASDU  self)

Check if SmpMod value is included in the SV ASDU.

Parameters
selfASDU object instance
Returns
true if SmpMod value is present, false otherwise

◆ SVSubscriber_ASDU_hasSmpRate()

LIB61850_API bool SVSubscriber_ASDU_hasSmpRate ( SVSubscriber_ASDU  self)

Check if SmpRate value is included in the SV ASDU.

Parameters
selfASDU object instance
Returns
true if SmpRate value is present, false otherwise