RJ10DLL::GetExtIQDrawData
float GetExtIQDrawData( IQ_DRAW_PARA *GetPara);
Return Value
the value of max magnitude level
Parameters
GetPara
A pointer to the IQ_DRAW_PARA structure.
Remarks
get for parorama viewer all the plot data and parameter of the current
extern IQ-Complex-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)
wParam Bit-0 == normal IF-
real signal input
wParam Bit-1 == normal IQ- complex signal input
LRESULT CRJ10MiniDlg::OnIFInput(WPARAM wParam,
LPARAM lParam)
{
//we use only every second view - the
sequence is 48000/2048=23.4375 = ~23
if(!StopFlag && myExtRxPara.IQ_open)
{
DrawDelaySum+=DrawInputFac;
if(DrawDelaySum>=DrawDelayFac
|| DrawImmediately)
{
if(!DrawImmediately)
DrawDelaySum-=DrawDelayFac;
DrawImmediately=0;
int
chn=wParam&3; //wParam = (imax<<2|chn);
int
imax=wParam>>2;
if(chn&1)
{
m_IFctrl.m_View.GetDrawData(); // 48000/2048 ~23 x per
sec.
m_inpeek.SetPeakMeter(imax); // set input
level
}
if(chn&2)
m_IFctrl.myPanorama.m_View.GetDrawData(lParam);
}
}
return NULL;
}