コード例 #1
0
ファイル: DaxIqCat.cs プロジェクト: mistic-lab/FlexlibMono
        private void StdOutPackageNotify(IQStream iqStream)
        {
            if (PackageWriteNotifyDone && prevCenterFreq.Equals(iqStream.Pan.CenterFreq))
            {
                return;
            }

            prevCenterFreq = iqStream.Pan.CenterFreq;
            Console.WriteLine("> Writing Packages to <{3}:{4}> DAX channel [{0} @{1} kHz] Center Freq: {2} MHz >", iqStream.DAXIQChannel, iqStream.SampleRate, iqStream.Pan.CenterFreq, _endPoint.Address, _endPoint.Port);
            PackageWriteNotifyDone = true;
        }
コード例 #2
0
ファイル: DaxIqCat.cs プロジェクト: mistic-lab/FlexlibMono
        /// <summary>
        /// Called when IQ data for the subscriped IQ channel is ready
        /// </summary>
        /// <param name="iqStream">reference to the IQ stream</param>
        /// <param name="data"></param>
        void IQ_DataReady(IQStream iqStream, float[] data)
        {
            ushort i = 0;

            foreach (var bt in data.SelectMany(BitConverter.GetBytes))
            {
                _outBuffer [i++] = bt;
            }

            _sock.SendTo(_outBuffer, _endPoint);
            StdOutPackageNotify(iqStream);
        }
コード例 #3
0
 private static void IQ_Data_Received(IQStream iq_stream, float[] data)
 {
     Console.Write("Yes sir");
 }