User Manual

SDK - SCR API
________________________________
____________
Boomer II User Manual & Integrator’s Guide
Wavenet Technology 72 BM210012WT09
q scr_Print()
Prototype:
void scr_Print(FILE *l_fp, SCRMsg *lmsg)
Description
This routine prints an ASCII representation of the SCR message
structure to the given file. This is intended to be used for debugging or
tracing purposes.
Input:
Ø *l_fp The file pointer to write the message details to.
Ø *l_msg The message structure to print.
Output: None
Example
#i n c l ude <s c r a p i . h >
{
SCRMs g l ms g; / * SCR me s s a ge s t r u c t */
FI LE *l f p; / * f i l e t o d u mp me s s a g e t o * /
. . .
/ * r e c e i ve a me s s a g e a n d d e c ode i t i nt o l ms g * /
. . .
l f p = f o pe n ( de bu g. t r c , " a " ) ;
i f ( l f p ! = ( FI LE * ) NULL) {
f p r i nt f ( l f p, \ nRe c e i v e d t he f o l l owi ng
me s s a ge : \ n" ) ;
s c r _ Pr i nt ( l f p , &l ms g) ;
f c l os e ( l f p) ;
}
/ * pr o c e s s me s s a g e * /
. . .
}