An mbed implementation of IEC 61850-9-2LE Sample Values. Creating using the rapid61850 library, available at: https://github.com/stevenblair/rapid61850.

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers svEncodeBasic.h Source File

svEncodeBasic.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 SV_ENCODE_BASIC_H
00022 #define SV_ENCODE_BASIC_H
00023 
00024 #include "datatypes.h"
00025 
00026 #ifdef __cplusplus /* If this is a C++ compiler, use C linkage */
00027 extern "C" {
00028 #endif
00029 
00030 int ENCODE_CTYPE_FLOAT32(unsigned char *buf, CTYPE_FLOAT32 *value);
00031 int ENCODE_CTYPE_FLOAT64(unsigned char *buf, CTYPE_FLOAT64 *value);
00032 int ENCODE_CTYPE_QUALITY(unsigned char *buf, CTYPE_QUALITY *value);
00033 int ENCODE_CTYPE_TIMESTAMP(unsigned char *buf, CTYPE_TIMESTAMP *value);
00034 int ENCODE_CTYPE_ENUM(unsigned char *buf, CTYPE_ENUM *value);
00035 int ENCODE_CTYPE_INT8(unsigned char *buf, CTYPE_INT8 *value);
00036 int ENCODE_CTYPE_INT16(unsigned char *buf, CTYPE_INT16 *value);
00037 int ENCODE_CTYPE_INT32(unsigned char *buf, CTYPE_INT32 *value);
00038 int ENCODE_CTYPE_INT16U(unsigned char *buf, CTYPE_INT16U *value);
00039 int ENCODE_CTYPE_INT32U(unsigned char *buf, CTYPE_INT32U *value);
00040 int ENCODE_CTYPE_VISSTRING255(unsigned char *buf, CTYPE_VISSTRING255 *value);
00041 int ENCODE_CTYPE_BOOLEAN(unsigned char *buf, CTYPE_BOOLEAN *value);
00042 int ENCODE_CTYPE_DBPOS(unsigned char *buf, CTYPE_DBPOS *value);
00043 
00044 #ifdef __cplusplus /* If this is a C++ compiler, end C linkage */
00045 }
00046 #endif
00047 
00048 #endif