EasyManua.ls Logo

VeriFone MX800 Series - Svcdsp2 Hex()

VeriFone MX800 Series
344 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
SERVICE FUNCTIONS
svcDsp2Hex()
146 M
X
800 SERIES PROGRAMMERS GUIDE
svcDsp2Hex()
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.

Table of Contents