HOMEPAGE

Open Source Project RJ10.DLL - Less is More: This does not mean that 'More' is too complicated.

Project Level 1

Developer Plattform

!?

Start and Process Control

Radio Control

IF-In & AF-Out Control
Panorama-View & ExtIQ-Receiver
EEprom & Calibration
Graphical Utillity

RJ10DLL::GetIFDrawData

float GetIFDrawData( IF_DRAW_PARA *GetPara, int channel );

Return Value

   the value of Magnitude Maximum.

Parameters

   GetPara
   A pointer to the IF_DRAW_PARA structure.

    int channel
   channel = 0,1 and -1 for automatic

   normal you set channel=-1, then the data is filled  index[0] =Data[0]
   else the index is filled  index[0] =Data[channel] and index[1] =Data[channel^1]

 Remarks

   get all the plot data and parameter of the current IF-Signal.

   Note:
   if the Audio-Thread is running,
   then the routine sends a Message WM_GET_SPECTRUM
   
every time a block of 2048 sample is ready.
   And that's the right time for this Command.

  

Example

ON_MESSAGE(WM_GET_SPECTRUM, OnIFInput)

LRESULT CRJ10MiniDlg::OnIFInput(WPARAM wParam, LPARAM lParam)
{
    //we use only every second view - the sequence is 48000/2048=23.4375 = ~24
    viewcntr++;
   if(viewcntr&1)
    {
    m_IFctrl.m_View.GetDrawData(); // ~12 times per sec.
    m_inpeek.SetPeakMeter(wParam);
    }
  return NULL;
}

void MyIFView::GetDrawData()
{
    float *MagData,*MagData2,*RawData;

    GetIFDrawData(&GetPara,-1); //get current channel
    if(!GetPara.MagData) return;

    MagData = GetPara.MagData[0];
    MagData2 = GetPara.MagData[1];
    RawData = GetPara.RawData[0];

   //draw the data (see on the original SourceExample RJ10Mini)
}

See Also
   -->
MyIFView.h,MyIFView.cpp,RJ10M-DLL.h

 

   Copyright 2012 © Bonito Germany.   

www.bonito.net