An mbed implementation of IEC 61850-9-2LE Sample Values. Creating using the rapid61850 library, available at: https://github.com/stevenblair/rapid61850.
gseEncodeBasic.h
00001 /** 00002 * Rapid-prototyping protection schemes with IEC 61850 00003 * 00004 * Copyright (c) 2012 Steven Blair 00005 * 00006 * This program is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU General Public License 00008 * as published by the Free Software Foundation; either version 2 00009 * of the License, or (at your option) any later version. 00010 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software 00018 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00019 */ 00020 00021 #ifndef GSE_ENCODE_BASIC_H 00022 #define GSE_ENCODE_BASIC_H 00023 00024 #ifdef __cplusplus /* If this is a C++ compiler, use C linkage */ 00025 extern "C" { 00026 #endif 00027 00028 #include "datatypes.h" 00029 #include "encodePacket.h" 00030 00031 int BER_ENCODE_CTYPE_FLOAT32(unsigned char *buf, CTYPE_FLOAT32 *value); 00032 int BER_ENCODE_CTYPE_FLOAT64(unsigned char *buf, CTYPE_FLOAT64 *value); 00033 int BER_ENCODE_CTYPE_QUALITY(unsigned char *buf, CTYPE_QUALITY *value); 00034 int BER_ENCODE_CTYPE_TIMESTAMP(unsigned char *buf, CTYPE_TIMESTAMP *value); 00035 int BER_ENCODE_CTYPE_ENUM(unsigned char *buf, CTYPE_ENUM *value); 00036 int BER_ENCODE_CTYPE_INT8(unsigned char *buf, CTYPE_INT8 *value); 00037 int BER_ENCODE_CTYPE_INT16(unsigned char *buf, CTYPE_INT16 *value); 00038 int BER_ENCODE_CTYPE_INT32(unsigned char *buf, CTYPE_INT32 *value); 00039 int BER_ENCODE_CTYPE_INT16U(unsigned char *buf, CTYPE_INT16U *value); 00040 int BER_ENCODE_CTYPE_INT32U(unsigned char *buf, CTYPE_INT32U *value); 00041 int BER_ENCODE_CTYPE_VISSTRING255(unsigned char *buf, CTYPE_VISSTRING255 *value); 00042 int BER_ENCODE_CTYPE_BOOLEAN(unsigned char *buf, CTYPE_BOOLEAN *value); 00043 int BER_ENCODE_CTYPE_DBPOS(unsigned char *buf, CTYPE_DBPOS *value); 00044 00045 #ifdef __cplusplus /* If this is a C++ compiler, end C linkage */ 00046 } 00047 #endif 00048 00049 #endif
Generated on Sat Jul 23 2022 01:15:10 by 1.7.2