public void Start(int bitrate)
 {
     this.SetBitrate(bitrate);
     this.FDevice.PerformBlocking(() =>
     {
         if (!NativeFunctions.candle_channel_start(this.FDevice.Handle, this.FChannelIndex, 0))
         {
             NativeFunctions.throwError(this.FDevice.Handle);
         }
     });
 }
Exemple #2
0
        virtual public void Start(int bitrate)
        {
            this.SetBitrate(bitrate);
            this.FDevice.PerformBlocking(() =>
            {
                if (!NativeFunctions.candle_channel_start(this.FDevice.Handle, this.FChannelIndex, 0))
                {
                    NativeFunctions.throwError(this.FDevice.Handle);
                }
            });

            this.FCounterLastTime = DateTime.Now;
            this.FCounterRxBits   = 0;
            this.FCounterTxBits   = 0;
        }