Esempio n. 1
0
 public byte StatusPort()
 {
     if (ozy_control)
     {
         return((byte)OzySDR1kControl.GetStatusPort());
     }
     else if (usb_present)
     {
         return((byte)USB.Sdr1kGetStatusPort());
     }
     else
     {
         if (ignore_ptt)
         {
             return(0);                    /* kd5tfd hack */
         }
         else
         {
             if (lpt_addr != 0x0)
             {
                 return(Parallel.inport((ushort)(lpt_addr + 1)));
             }
             else
             {
                 return(0);
             }
         }
     }
 }
 public byte StatusPort()
 {
     if (usb_present)
     {
         return((byte)USB.Sdr1kGetStatusPort());
     }
     else
     {
         return(Parallel.inport((ushort)(lpt_addr + 1)));
     }
 }
Esempio n. 3
0
 public byte StatusPort()
 {
     if (usb_present)
     {
         return((byte)USB.Sdr1kGetStatusPort());
     }
     else
     if (lpt_addr == 0)                          //[patch_4
     {
         return(0);
     }
     else                                        //patch_4]
     {
         return(Parallel.inport((ushort)(lpt_addr + 1)));
     }
 }