20000730_CLINIC_NMRA-00 Computer Interface App.pdf
20000730_CLINIC_NMRA-00 Computer Interface App.pdf
20000730_CLINIC_NMRA-00 Computer Interface App.pdf
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
KAM * C++ cont.<br />
/*<br />
* NAME<br />
* DecoderGetModelFromCookie() - Get controller facilities.<br />
* RETURN VALUE<br />
* iModel - Decoder model ID.<br />
*<br />
* DESCRIPTION<br />
* DecoderGetModelFromCookie() gets the decoder model ID.<br />
*/<br />
int T<strong>Interface</strong>Device::DecoderGetModelFromCookie(long lCookie ) const<br />
{<br />
TRACE( "T<strong>Interface</strong>Device::DecoderGetModelFromCookie( 0x%08lx ) - Entering\n",lCookie );<br />
short iError;<br />
int iLogCmdPort, iLogProgPort, iDCCAddr, iDecoderClass, iDecoderModel;<br />
m_pEngIfc->DccDecoderTranslate(lCookie, &iLogCmdPort, &iLogProgPort, &iDCCAddr,<br />
}<br />
Matt Katzer<br />
San Jose, Calif.<br />
<strong>NMRA</strong> 2<strong>00</strong>0<br />
Copyright 2<strong>00</strong>0 KAM Industries<br />
all rights reserved.<br />
*KAM Industries is a division of<br />
KAMIND Associates, Inc.<br />
&iDecoderClass, &iDecoderModel, &iError);<br />
TRACE( "T<strong>Interface</strong>Device::DecoderGetModelFromCookie( 0x%08lx ) - Exiting: (%X)- Error\n", lCookie, iError );<br />
return ( iDecoderModel );<br />
Easily supported in multiple languages<br />
Page 34<br />
KAM<br />
TM