Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
gsePacketData.h@0:230c10b228ea, 2011-10-07 (annotated)
- Committer:
- sblair
- Date:
- Fri Oct 07 13:41:08 2011 +0000
- Revision:
- 0:230c10b228ea
- Child:
- 1:9399d44c2b1a
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sblair | 0:230c10b228ea | 1 | #ifndef GSE_PACKET_DATA_H |
sblair | 0:230c10b228ea | 2 | #define GSE_PACKET_DATA_H |
sblair | 0:230c10b228ea | 3 | |
sblair | 0:230c10b228ea | 4 | #ifdef __cplusplus /* If this is a C++ compiler, use C linkage */ |
sblair | 0:230c10b228ea | 5 | extern "C" { |
sblair | 0:230c10b228ea | 6 | #endif |
sblair | 0:230c10b228ea | 7 | |
sblair | 0:230c10b228ea | 8 | #include <stdlib.h> |
sblair | 0:230c10b228ea | 9 | #include <string.h> |
sblair | 0:230c10b228ea | 10 | #include "ctypes.h" |
sblair | 0:230c10b228ea | 11 | |
sblair | 0:230c10b228ea | 12 | //#define GSE_MAX_DATASET_SIZE 1280 |
sblair | 0:230c10b228ea | 13 | |
sblair | 0:230c10b228ea | 14 | struct gseData { |
sblair | 0:230c10b228ea | 15 | struct ethHeaderData ethHeaderData; |
sblair | 0:230c10b228ea | 16 | unsigned char *gocbRef; // <IEDname><LDinst>/LLN0$<GSEControl.name> e.g. "E1Q1SB1C1/LLN0$ItlPositions" |
sblair | 0:230c10b228ea | 17 | CTYPE_INT32U timeAllowedToLive; |
sblair | 0:230c10b228ea | 18 | unsigned char *datSet; // <IEDname><LDinst>/LLN0$<DataSet.name> e.g. "E1Q1SB1C1/LLN0$Positions" |
sblair | 0:230c10b228ea | 19 | unsigned char *goID; // optional |
sblair | 0:230c10b228ea | 20 | CTYPE_TIMESTAMP t; |
sblair | 0:230c10b228ea | 21 | CTYPE_INT32U stNum; |
sblair | 0:230c10b228ea | 22 | CTYPE_INT32U sqNum; |
sblair | 0:230c10b228ea | 23 | CTYPE_BOOLEAN test; |
sblair | 0:230c10b228ea | 24 | CTYPE_INT32U confRev; |
sblair | 0:230c10b228ea | 25 | CTYPE_BOOLEAN ndsCom; |
sblair | 0:230c10b228ea | 26 | CTYPE_INT32U numDatSetEntries; |
sblair | 0:230c10b228ea | 27 | CTYPE_INT32U minTime; // stored in milliseconds |
sblair | 0:230c10b228ea | 28 | CTYPE_INT32U maxTime; // stored in milliseconds |
sblair | 0:230c10b228ea | 29 | int (*encodeDataset)(unsigned char *buf); // function pointer to dataset-specific encoder |
sblair | 0:230c10b228ea | 30 | int (*getDatasetLength)(); // function pointer to dataset-specific getLength function |
sblair | 0:230c10b228ea | 31 | }; |
sblair | 0:230c10b228ea | 32 | |
sblair | 0:230c10b228ea | 33 | |
sblair | 0:230c10b228ea | 34 | #ifdef __cplusplus /* If this is a C++ compiler, end C linkage */ |
sblair | 0:230c10b228ea | 35 | } |
sblair | 0:230c10b228ea | 36 | #endif |
sblair | 0:230c10b228ea | 37 | |
sblair | 0:230c10b228ea | 38 | #endif |