00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00028 #ifndef _RTBCD_H_
00029 #define _RTBCD_H_
00030
00031 #include "rtsrc/asn1type.h"
00032 #include "rtxsrc/rtxTBCD.h"
00033
00034 #ifdef __cplusplus
00035 extern "C" {
00036 #endif
00037
00067 EXTERNRT const char* rtBCDToString
00068 (OSUINT32 numocts, const OSOCTET* data, char* buffer, size_t bufsiz,
00069 OSBOOL isTBCD);
00070
00085 EXTERNRT int rtStringToBCD
00086 (const char* str, OSOCTET* bcdStr, size_t bufsiz, OSBOOL isTBCD);
00087
00101 EXTERNRT int rtStringToDynBCD
00102 (OSCTXT* pctxt, const char* str, ASN1DynOctStr* poctstr);
00103
00119 EXTERNRT int rtStringToTBCD (const char* str, OSOCTET* bcdStr, size_t bufsiz);
00120
00142 EXTERNRT const char* rtTBCDToString
00143 (OSUINT32 numocts, const OSOCTET* data, char* buffer, size_t bufsiz);
00144
00169 #define rtQ825TBCDToString(numocts, data, buffer, bufsiz) \
00170 rtxQ825TBCDToString(numocts, data, buffer, bufsiz)
00171
00189 #define rtDecQ825TBCDString(pctxt, numocts, buffer, bufsiz) \
00190 rtxDecQ825TBCDString(pctxt, numocts, buffer, bufsiz)
00191
00203 #define rtEncQ825TBCDString(pctxt, str) \
00204 rtxEncQ825TBCDString(pctxt, str)
00205
00214 #define rtTBCDBinToChar(bcdDigit, pdigit) rtxTBCDBinToChar(bcdDigit, pdigit)
00215
00225 #define rtTBCDCharToBin(digit, pbyte) rtxTBCDCharToBin(digit, pbyte)
00226
00231 #ifdef __cplusplus
00232 }
00233 #endif
00234
00235 #endif