Changeset 477
- Timestamp:
- 10/30/09 22:19:53 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/csctapi/ifd_towitoko.c
r70 r477 565 565 if(ioctl(ifd->io->fd, IOCTL_GET_PARAMETERS, ¶ms)<0) 566 566 return IFD_TOWITOKO_IO_ERROR; 567 /* 568 printf("T=%d\n", (int)params.T); 569 printf("f=%d\n", (int)params.f); 570 printf("ETU=%d\n", (int)params.ETU); 571 printf("WWT=%d\n", (int)params.WWT); 572 printf("CWT=%d\n", (int)params.CWT); 573 printf("BWT=%d\n", (int)params.BWT); 574 printf("EGT=%d\n", (int)params.EGT); 575 printf("clock=%d\n", (int)params.clock_stop_polarity); 576 printf("check=%d\n", (int)params.check); 577 printf("P=%d\n", (int)params.P); 578 printf("I=%d\n", (int)params.I); 579 printf("U=%d\n", (int)params.U); 580 */ 581 582 // print_hex_data(buf, n); 567 568 // cs_dump(buf, n, "BUF:"); 583 569 if(n>9 && !memcmp(buf+4, irdeto, 6)) 584 570 { … … 603 589 double a; 604 590 591 ATR_GetParameter(*atr, ATR_PARAMETER_D, &a); 592 // printf("atr D=%f\n", a); 593 params.ETU /= (unsigned char)a; 594 ATR_GetParameter(*atr, ATR_PARAMETER_N, &a); 595 params.EGT = (unsigned char)a; 605 596 ATR_GetParameter(*atr, ATR_PARAMETER_P, &a); 606 597 // printf("atr P=%f\n", a); … … 609 600 // printf("atr I=%f\n", a); 610 601 params.I = (unsigned char)a; 611 612 602 613 603 if(ioctl(ifd->io->fd, IOCTL_SET_PARAMETERS, ¶ms)!=0) … … 618 608 } 619 609 620 621 /*622 610 ioctl(ifd->io->fd, IOCTL_GET_PARAMETERS, ¶ms); 623 611 624 printf("T=%d\n", (int)params.T); 625 printf("f=%d\n", (int)params.f); 626 printf("ETU=%d\n", (int)params.ETU); 627 printf("WWT=%d\n", (int)params.WWT); 628 printf("CWT=%d\n", (int)params.CWT); 629 printf("BWT=%d\n", (int)params.BWT); 630 printf("EGT=%d\n", (int)params.EGT); 631 printf("clock=%d\n", (int)params.clock_stop_polarity); 632 printf("check=%d\n", (int)params.check); 633 printf("P=%d\n", (int)params.P); 634 printf("I=%d\n", (int)params.I); 635 printf("U=%d\n", (int)params.U);*/ 636 637 612 cs_debug("T=%d f=%d ETU=%d WWT=%d CWT=%d BWT=%d EGT=%d clock=%d check=%d P=%d I=%d U=%d", (int)params.T, (int)params.f, (int)params.ETU, (int)params.WWT, (int)params.CWT, (int)params.BWT, (int)params.EGT, (int)params.clock_stop_polarity, (int)params.check, (int)params.P, (int)params.I, (int)params.U); 638 613 639 614 req_ts.tv_sec = 0;
Note:
See TracChangeset
for help on using the changeset viewer.