TraceBufferASCIIFile

TraceBufferASCIIFile


Declaration

void (_stdcall * TraceBufferASCIIFile)(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 ASCII code into the log file that is defined by FileName parameter. The files are saved to the Trace directory of an application.
Note: FileName can also contain directory names, e.g. "subdir1/mylog.txt" or "../anotherdir/mylog.txt".