Svcdsp2Hex() - VeriFone MX800 series Programmer's Manual

Hide thumbs Also See for MX800 series:
Table of Contents

Advertisement

S
F
ERVICE
UNCTIONS

svcDsp2Hex()

svcDsp2Hex()
146
M
X
800 S
P
ERIES
ROGRAMMERS
This command causes the data at dsp to be converted and stored at location
hex. The presumption is that the input (at dsp) consists of count pairs of bytes,
with each byte in the range of 30h-90h (ASCII 0-9) or 42h-46h (ASCII A-F). Each
byte will then be converted to the corresponding hexadecimal nibble (hex 0-9, A-
F).
This function will convert up to a long hex value for the corresponding ASCII array.
It will only convert up to the number of pairs specified even if the ASCII string is
longer. This function is a void function and does not return any error or success
code. It expects all values to be legal hex values.
Prototype
void svcDsp2Hex(dsp, hex, count)
Example
Suppose dsp contains ASCII array "12345F" and we execute
SVC_DPS_2_HEX(dsp, hex, 3). Then the value of hex will be 12345h.
G
UIDE

Advertisement

Table of Contents
loading

Table of Contents