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@1:9399d44c2b1a, 2011-10-07 (annotated)
- Committer:
- sblair
- Date:
- Fri Oct 07 13:48:18 2011 +0000
- Revision:
- 1:9399d44c2b1a
- Parent:
- 0:230c10b228ea
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| sblair | 1:9399d44c2b1a | 1 | /** |
| sblair | 1:9399d44c2b1a | 2 | * Rapid-prototyping protection schemes with IEC 61850 |
| sblair | 1:9399d44c2b1a | 3 | * |
| sblair | 1:9399d44c2b1a | 4 | * Copyright (c) 2011 Steven Blair |
| sblair | 1:9399d44c2b1a | 5 | * |
| sblair | 1:9399d44c2b1a | 6 | * This program is free software; you can redistribute it and/or |
| sblair | 1:9399d44c2b1a | 7 | * modify it under the terms of the GNU General Public License |
| sblair | 1:9399d44c2b1a | 8 | * as published by the Free Software Foundation; either version 2 |
| sblair | 1:9399d44c2b1a | 9 | * of the License, or (at your option) any later version. |
| sblair | 1:9399d44c2b1a | 10 | |
| sblair | 1:9399d44c2b1a | 11 | * This program is distributed in the hope that it will be useful, |
| sblair | 1:9399d44c2b1a | 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| sblair | 1:9399d44c2b1a | 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| sblair | 1:9399d44c2b1a | 14 | * GNU General Public License for more details. |
| sblair | 1:9399d44c2b1a | 15 | |
| sblair | 1:9399d44c2b1a | 16 | * You should have received a copy of the GNU General Public License |
| sblair | 1:9399d44c2b1a | 17 | * along with this program; if not, write to the Free Software |
| sblair | 1:9399d44c2b1a | 18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| sblair | 1:9399d44c2b1a | 19 | */ |
| sblair | 1:9399d44c2b1a | 20 | |
| sblair | 0:230c10b228ea | 21 | #ifndef SV_ENCODE_BASIC_H |
| sblair | 0:230c10b228ea | 22 | #define SV_ENCODE_BASIC_H |
| sblair | 0:230c10b228ea | 23 | |
| sblair | 0:230c10b228ea | 24 | #ifdef __cplusplus /* If this is a C++ compiler, use C linkage */ |
| sblair | 0:230c10b228ea | 25 | extern "C" { |
| sblair | 0:230c10b228ea | 26 | #endif |
| sblair | 0:230c10b228ea | 27 | |
| sblair | 0:230c10b228ea | 28 | #include "datatypes.h" |
| sblair | 0:230c10b228ea | 29 | |
| sblair | 0:230c10b228ea | 30 | int ENCODE_CTYPE_FLOAT32(unsigned char *buf, CTYPE_FLOAT32 *value); |
| sblair | 0:230c10b228ea | 31 | int ENCODE_CTYPE_FLOAT64(unsigned char *buf, CTYPE_FLOAT64 *value); |
| sblair | 0:230c10b228ea | 32 | int ENCODE_CTYPE_QUALITY(unsigned char *buf, CTYPE_QUALITY *value); |
| sblair | 0:230c10b228ea | 33 | int ENCODE_CTYPE_TIMESTAMP(unsigned char *buf, CTYPE_TIMESTAMP *value); |
| sblair | 0:230c10b228ea | 34 | int ENCODE_CTYPE_ENUM(unsigned char *buf, CTYPE_ENUM *value); |
| sblair | 0:230c10b228ea | 35 | int ENCODE_CTYPE_INT16(unsigned char *buf, CTYPE_INT16 *value); |
| sblair | 0:230c10b228ea | 36 | int ENCODE_CTYPE_INT32(unsigned char *buf, CTYPE_INT32 *value); |
| sblair | 0:230c10b228ea | 37 | int ENCODE_CTYPE_INT16U(unsigned char *buf, CTYPE_INT16U *value); |
| sblair | 0:230c10b228ea | 38 | int ENCODE_CTYPE_INT32U(unsigned char *buf, CTYPE_INT32U *value); |
| sblair | 0:230c10b228ea | 39 | int ENCODE_CTYPE_VISSTRING255(unsigned char *buf, CTYPE_VISSTRING255 *value); |
| sblair | 0:230c10b228ea | 40 | int ENCODE_CTYPE_BOOLEAN(unsigned char *buf, CTYPE_BOOLEAN *value); |
| sblair | 0:230c10b228ea | 41 | int ENCODE_CTYPE_DBPOS(unsigned char *buf, CTYPE_DBPOS *value); |
| sblair | 0:230c10b228ea | 42 | |
| sblair | 0:230c10b228ea | 43 | #ifdef __cplusplus /* If this is a C++ compiler, end C linkage */ |
| sblair | 0:230c10b228ea | 44 | } |
| sblair | 0:230c10b228ea | 45 | #endif |
| sblair | 0:230c10b228ea | 46 | |
| sblair | 0:230c10b228ea | 47 | #endif |