<div>Hi there,</div>
<div> </div>
<div>I have been reading and porting Zaptel to Windows TAPI. I don't quite understand the following codes in wctdm.c:</div>
<div> </div>
<div>.............</div>
<div>.............</div>
<div> </div>
<div> /* Go to half-duty FSYNC */<br> __wctdm_setcreg(wc, WC_SYNC, 0x01);<br> y = __wctdm_getcreg(wc, WC_SYNC);</div>
<div>.........</div>
<div>.........</div>
<div> __wctdm_setcreg(wc, WC_SYNC, (wc->cardflag << 1) | 0x1);</div>
<div> </div>
<div>...........</div>
<div> </div>
<div>What do they do? In particular, why does wc->cardflag have to be shifted left by 1?</div>
<div> </div>
<div>Many thanks.</div>
<div>David</div>