22.11.9.2 Hexadecimal Number to String Conversion

This function is used to convert binary data into a hexadecimal string. Convert the integer in Parameter 2 (Convert-From Address) into a hexadecimal integer text, and store it in Parameter 1 (Convert-To Data Buffer).

_bin2hexasc (Conversion result buffer, Conversion source address)

Example expression 1 (When the bit length is 16 bits)

_bin2hexasc (databuf0, [w:[#INTERNAL]LS0100])

The above data are converted as follows: Note that "NULL (0x00)" is added.

Example expression 2 (When the bit length is 32 bits)

_bin2hexasc (databuf0, [w:[#INTERNAL]LS0100])

The above data are converted as follows: