These days I have been learning xscope. I learned from AN00196 and the Xtimecomposer studio user guider that it seems that there are 2 methods to initialize xscope method,
one is to declare in the config.xscope file, for example:
The other way is to define a init function in the file where you use xscope, like this:<?xml version="1.0" encoding="UTF-8"?>
<!-- ======================================================= -->
<!-- The 'ioMode' attribute on the xSCOPEconfig -->
<!-- element can take the following values: -->
<!-- "none", "basic", "timed" -->
<!-- -->
<!-- The 'type' attribute on Probe -->
<!-- elements can take the following values: -->
<!-- "STARTSTOP", "CONTINUOUS", "DISCRETE", "STATEMACHINE" -->
<!-- -->
<!-- The 'datatype' attribute on Probe -->
<!-- elements can take the following values: -->
<!-- "NONE", "UINT", "INT", "FLOAT" -->
<!-- ======================================================= -->
<xSCOPEconfig ioMode="none" enabled="true">
<Probe name="Value" type="CONTINUOUS" datatype="UINT" units="Value" enabled="true"/>
</xSCOPEconfig>
Am I right? And is there any difference between these 2 methods?void xscope_user_init ( void ) {
xscope_register (2,
XSCOPE_CONTINUOUS , " Microphone Left ", XSCOPE_UINT , "mV",
XSCOPE_CONTINUOUS , " Microphone Right ", XSCOPE_UINT , "mV"
);
}
Thanks a lot!