XBinder  Version 2.6.x
rtxTBCD.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 1997-2018 Objective Systems, Inc.
3  *
4  * This software is furnished under a license and may be used and copied
5  * only in accordance with the terms of such license and with the
6  * inclusion of the above copyright notice. This software or any other
7  * copies thereof may not be provided or otherwise made available to any
8  * other person. No title to and ownership of the software is hereby
9  * transferred.
10  *
11  * The information in this software is subject to change without notice
12  * and should not be construed as a commitment by Objective Systems, Inc.
13  *
14  * PROPRIETARY NOTICE
15  *
16  * This software is an unpublished work subject to a confidentiality agreement
17  * and is protected by copyright and trade secret law. Unauthorized copying,
18  * redistribution or other use of this work is prohibited.
19  *
20  * The above notice of copyright on this source code product does not indicate
21  * any actual or intended publication of such source code.
22  *
23  *****************************************************************************/
28 #ifndef _RTXTBCD_H_
29 #define _RTXTBCD_H_
30 
31 #include "rtxsrc/rtxContext.h"
32 
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36 
69 EXTERNRT int rtxQ825TBCDToString
70 (OSSIZE numocts, const OSOCTET* data, char* buffer, OSSIZE bufsiz);
71 
89 EXTERNRT int rtxDecQ825TBCDString
90 (OSCTXT* pctxt, OSSIZE numocts, char* buffer, OSSIZE bufsiz);
91 
103 EXTERNRT int rtxEncQ825TBCDString (OSCTXT* pctxt, const char* str);
104 
113 EXTERNRT int rtxTBCDBinToChar (OSUINT8 bcdDigit, char* pdigit);
114 
124 EXTERNRT int rtxTBCDCharToBin (char digit, OSUINT8* pbyte);
125 
130 #ifdef __cplusplus
131 }
132 #endif
133 
134 #endif
EXTERNRT int rtxDecQ825TBCDString(OSCTXT *pctxt, OSSIZE numocts, char *buffer, OSSIZE bufsiz)
This function decodes a Q.825 TBCD value to a standard null-terminated string.
EXTERNRT int rtxEncQ825TBCDString(OSCTXT *pctxt, const char *str)
This function encodes a null-terminated string Q.825 TBCD string.
EXTERNRT int rtxTBCDBinToChar(OSUINT8 bcdDigit, char *pdigit)
This function converts a TBCD binary character into its ASCII equivalent.
EXTERNRT int rtxTBCDCharToBin(char digit, OSUINT8 *pbyte)
This function converts a TBCD character ('0'-'9',"*#abc") into its binary equivalent.
Common run-time context definitions.
Run-time context structure.
Definition: rtxContext.h:185
EXTERNRT int rtxQ825TBCDToString(OSSIZE numocts, const OSOCTET *data, char *buffer, OSSIZE bufsiz)
This function converts a Q.825 TBCD value to a standard null-terminated string.