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.
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
Generated on Sat Jul 23 2022 01:15:10 by
