Changeset 72


Ignore:
Timestamp:
05/17/09 22:02:31 (12 years ago)
Author:
rorothetroll
Message:

csctapi/io_serial.[c,h] : added the irdeto param to the IO_Serial_Set_Smartreader_Freq

as after talking to a contact, we thing we need to set NN to 1 for irdete (and 0 for seca).

Location:
trunk/csctapi
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/csctapi/io_serial.c

    r71 r72  
    523523      printf("IO: SMARTREADER .. switching to frequency to %2.2fMHz\n", (float)mhz/100.0);
    524524#endif
    525       if(!IO_Serial_Set_Smartreader_Freq(io,mhz))
     525      if(!IO_Serial_Set_Smartreader_Freq(io,mhz,reader_irdeto_mode))
    526526      {
    527527#ifdef DEBUG_IO
     
    11231123
    11241124
    1125 bool IO_Serial_Set_Smartreader_Freq(IO_Serial * io, int freq)
     1125bool IO_Serial_Set_Smartreader_Freq(IO_Serial * io, int freq, int irdeto_mode)
    11261126 {
    11271127   struct termios term;
     
    11501150   // printf("fr = %02x %02x %02x\n" , fr[0],fr[1],fr[2]);
    11511151   
     1152   if(irdeto_mode)
     1153      nn[1]=0x01;
     1154     
    11521155   // send the commands
    11531156   IO_Serial_Write (io, 0, 4, fi_di);
  • trunk/csctapi/io_serial.h

    r71 r72  
    112112
    113113/* smartreader Frequency set */
    114 extern bool IO_Serial_Set_Smartreader_Freq(IO_Serial * io, int freq);
     114extern bool IO_Serial_Set_Smartreader_Freq(IO_Serial * io, int freq, int irdeto_mode);
    115115
    116116#endif /* IO_SERIAL */
Note: See TracChangeset for help on using the changeset viewer.