RIEVTECH — RIEVTECH STUDIO SOFTWARE MANUAL(2.0 Version).docx

RIEVTECH STUDIO SOFTWARE MANUAL 0 means fill 0s to the spaces.3- The width of the character.4- Precision, the number of decimal places. Character Conversion:

%% Print % sign, no conversion %c Convert the integer to corresponding ASCII character %d Convert the integer to decimal number %f Convert to floating number %o Convert the integer to Octal numbers %s Convert the integer to string %x Convert the integer to lower case hexadecimal number %X Convert the integer to upper case hexadecimal number Example : intitest=12; floatftest=65.4321; Debug(0,"itest=%d\n ftest=%2.3f\n",itest,ftest); Output Result : itest=12 ftest=65.432 6.2.3 Computation and Conversion Function 6.2.3.1 CRC check function, 16Bit unsigned short CRC16( Array Pointer , Computation Length ); Array Pointer: point to the array being processed. Computation Length:

the number of bytes being processed. Return Value: 16-bit CRC check value. 590