TraceBufferHexFile

TraceBufferHexFile


Declaration

void (_stdcall * TraceBufferHexFile)(HOBJ LnID, char *FileName, unsigned int MaxFileSize, void *Data, unsigned int Len);

Parameters

LnId

Line ID.

FileName

File name.

MaxFileSize

Maximal size of log file.

Data

Pointer to a buffer with data to be saved.

Len

Number of bytes to be saved.

Description

This procedure enables to save the received or sent data as hexadecimal character into log file that is defined by FileName parameter. The files are saved to Trace directory of an application.
Note: FileName can also contain directory names, e.g. "subdir1/mylog.txt" or "../anotherdir/mylog.txt".