The goal of this software is to automatically generate C/C++ code which reads and writes GOOSE and Sampled Value packets. Any valid IEC 61850 Substation Configuration Description (SCD) file, describing GOOSE and/or SV communications, can be used as the input. The output code is lightweight and platform-independent, so it can run on a variety of devices, including low-cost microcontrollers. It\'s ideal for rapid-prototyping new protection and control systems that require communications. This mbed project is a simple example of this functionality. Other code: https://github.com/stevenblair/rapid61850 Project homepage: http://personal.strath.ac.uk/steven.m.blair/
encodePacket.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 ENCODE_PACKET_H |
sblair | 0:230c10b228ea | 2 | #define ENCODE_PACKET_H |
sblair | 0:230c10b228ea | 3 | |
sblair | 0:230c10b228ea | 4 | |
sblair | 0:230c10b228ea | 5 | #ifdef __cplusplus /* If this is a C++ compiler, use C linkage */ |
sblair | 0:230c10b228ea | 6 | extern "C" { |
sblair | 0:230c10b228ea | 7 | #endif |
sblair | 0:230c10b228ea | 8 | |
sblair | 0:230c10b228ea | 9 | #include "ctypes.h" |
sblair | 0:230c10b228ea | 10 | |
sblair | 0:230c10b228ea | 11 | int getLengthBytes(int len); |
sblair | 0:230c10b228ea | 12 | int encodeLength(unsigned char *buf, CTYPE_INT16U len); |
sblair | 0:230c10b228ea | 13 | |
sblair | 0:230c10b228ea | 14 | #ifdef __cplusplus /* If this is a C++ compiler, end C linkage */ |
sblair | 0:230c10b228ea | 15 | } |
sblair | 0:230c10b228ea | 16 | #endif |
sblair | 0:230c10b228ea | 17 | |
sblair | 0:230c10b228ea | 18 | #endif |