EasyManua.ls Logo

Elprotronic MSP430 - F_Getreportmessagechar

Default Icon
119 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...
with the target device, then the report message will collect all reported information up to 1000 last
characters.
Syntax:
MSPPRG_API void F_ReportMessage( char * text );
MSPPRG_API char* F_Report_Message( void );
Return value:
none
note: F_Report_Message is available only with the Multi-FPA API-DLL.
Example:
char text[1002];
.......................
.......................
F_ReportMessage( text );
.......................
Example below shows how to take a message and display it in the scrolling box. The Edit box with
the ID e.g. IDC_REPORT must be created first.
............................................
Cstring Message = "";
............................................
void CMspPrgDemoDlg::Disp_report_message()
{
char text[1002]; //must be min. size - 1000
F_ReportMessage( text ); //API-Dll - get last report message
Message = text;
SetDlgItemText(IDC_REPORT, Message.GetBuffer(Message.GetLength()));
CEdit* pEdit = (CEdit*) GetDlgItem(IDC_REPORT);
pEdit->LineScroll(pEdit->GetLineCount(), 0);
UpdateWindow();
}
F_GetReportMessageChar
F_GetReportMessageChar - Get one character of the the last report message from the
programmer.
VALID FPA index - ( 1 to 64 )
See comment for the F_ReportMessage function.
69

Table of Contents