- added added LogControlBlock data structure

pull/6/head
Michael Zillgith 9 years ago
parent 842331322a
commit ab9ad2dcf2

@ -82,6 +82,7 @@ typedef struct sGSEControlBlock GSEControlBlock;
typedef struct sSVControlBlock SVControlBlock; typedef struct sSVControlBlock SVControlBlock;
typedef struct sLogControlBlock LogControlBlock;
typedef enum { typedef enum {
IEC61850_BOOLEAN = 0,/* int */ IEC61850_BOOLEAN = 0,/* int */
@ -256,6 +257,19 @@ struct sReportControlBlock {
ReportControlBlock* sibling; /* next control block in list or NULL if this is the last entry */ ReportControlBlock* sibling; /* next control block in list or NULL if this is the last entry */
}; };
struct sLogControlBlock {
LogicalNode* parent;
char* name;
char* dataSetName;
char* logRef; /* object reference to the journal. Defaults to <MMS DomainName>/<LNName>$GeneralLog */
uint8_t trgOps; /* TrgOps - trigger conditions */
uint8_t options; /* OptFlds */
uint32_t intPeriod; /* IntgPd - integrity period */
};
struct sSettingGroupControlBlock { struct sSettingGroupControlBlock {
LogicalNode* parent; LogicalNode* parent;

@ -92,6 +92,10 @@ encodeStructuredAccessResult(MmsValue* value, uint8_t* buffer, int bufPos, bool
} }
/*
* Returns the number of elements in an MMS Data element
* or -1 in case of an parsing error.
*/
static int static int
getNumberOfElements(uint8_t* buffer, int bufPos, int elementLength) getNumberOfElements(uint8_t* buffer, int bufPos, int elementLength)
{ {

Loading…
Cancel
Save