1 /* 2 3 % Copyright (C) 2014 Alois Schloegl <alois.schloegl@gmail.com> 4 % This file is part of the "BioSig for C/C++" repository 5 % (biosig4c++) at http://biosig.sf.net/ 6 7 8 This program is free software; you can redistribute it and/or 9 modify it under the terms of the GNU General Public License 10 as published by the Free Software Foundation; either version 3 11 of the License, or (at your option) any later version. 12 13 This program is distributed in the hope that it will be useful, 14 but WITHOUT ANY WARRANTY; without even the implied warranty of 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 GNU General Public License for more details. 17 18 You should have received a copy of the GNU General Public License 19 along with this program. If not, see <http://www.gnu.org/licenses/>. 20 21 */ 22 23 /**************************************************************************** 24 ** ** 25 ** Conversion functions for encoded physical units according to ** 26 ** ISO/IEEE 11073-10102 Annex B ** 27 ** ** 28 ****************************************************************************/ 29 #ifndef __MDC_ECG_CODES_H__ 30 #define __MDC_ECG_CODES_H__ 31 32 #if defined(_MSC_VER) && (_MSC_VER < 1600) 33 typedef unsigned __int16 uint16_t; 34 #else 35 #include <inttypes.h> 36 #endif 37 38 39 #ifdef __cplusplus 40 extern "C" { 41 #endif 42 43 uint16_t encode_mdc_ecg_code10 (const char *IDstr); 44 uint32_t encode_mdc_ecg_cfcode10 (const char *IDstr); 45 const char* decode_mdc_ecg_code10 (uint16_t code10); 46 const char* decode_mdc_ecg_cfcode10 (uint32_t cf_code10); 47 48 #ifdef __cplusplus 49 } 50 #endif 51 52 53 #endif /* __PHYSICALUNITS_H__ */ 54