[asterisk-dev] Reading codes - need help

VoIP Newbie voip.newbie at gmail.com
Fri Mar 16 08:50:02 MST 2007


Hi there,

I have been reading and porting Zaptel to Windows TAPI. I don't quite
understand the following codes in wctdm.c:

.............
.............

  /* Go to half-duty FSYNC */
  __wctdm_setcreg(wc, WC_SYNC, 0x01);
  y = __wctdm_getcreg(wc, WC_SYNC);
.........
.........
 __wctdm_setcreg(wc, WC_SYNC, (wc->cardflag << 1) | 0x1);

...........

What do they do? In particular, why does wc->cardflag have to be shifted
left by 1?

Many thanks.
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20070316/baa934b4/attachment.htm


More information about the asterisk-dev mailing list