RJ10DLL::HandleRadioValue
int HandleRadioValue( int
type, int set );
Return Value
WT_VALUE - Write Values = Nonzero if successful; otherwise 0.
WT_ONOFF - Write Status = Nonzero if successful; otherwise 0.
RD_VALUE - Read Values = brings back the read value
RD_ONOFF - Read Status = brings back the on/off state
Parameters
int tpye
can be one of the following definitions:
//get the active radio on/off state
#define RADIO_RD_FC_ONOFF 0x01000000
//Get the ON/OFF State of Frequency-Xtal Correcture
#define
RADIO_RD_SC_ONOFF 0x01000001 //Get the ON/OFF State of
Frequency-Xtal Scale
#define
RADIO_RD_AC_ONOFF 0x01000002 //Get the ON/OFF State of
Input Sample Correcture
#define
RADIO_RD_DX_ONOFF 0x01000003 //Get the ON/OFF State of
Gain-Factor of the DX-Channel
//get the currend radio calibration value
#define
RADIO_RD_FC_VALUE 0x01100000 //Get the Value of
Frequency-Xtal Correcture
#define
RADIO_RD_SC_VALUE 0x01100001 //Get the Value of
Frequency-Xtal Scale
#define
RADIO_RD_AC_VALUE 0x01100002 //Get the Value of Input
Sample Correcture
#define
RADIO_RD_DX_VALUE 0x01100003 //Get the Value of
Gain-Factor of the DX-Channel
//set the active radio on/off state
#define
RADIO_WT_FC_ONOFF 0x11000000 //Set ON/OFF State of
Frequency-Xtal Correcture
#define
RADIO_WT_SC_ONOFF 0x11000001 //Set ON/OFF State of
Frequency-Xtal Scale
#define
RADIO_WT_AC_ONOFF 0x11000002 //Set ON/OFF State of Input
Sample Correcture
#define
RADIO_WT_DX_ONOFF 0x11000003 //Set ON/OFF State of the
Gain-Factor of the DX-Channel
//set currend radio calibration value
#define RADIO_WT_FC_VALUE 0x11100000
//Set the Value of Frequency-Xtal Correcture
#define
RADIO_WT_SC_VALUE 0x11100001 //Set the Value of
Frequency-Xtal Scale
#define
RADIO_WT_AC_VALUE 0x11100002 //Set the Value of Input
Sample Correcture
#define
RADIO_WT_DX_VALUE 0x11100003 //Set the Value of the
Gain-Factor of the DX-Channel
//set default radio calibration value
#define
RADIO_WT_FC_DVALUE 0x11110000 //Set the default Value of
Frequency-Xtal Correcture
#define
RADIO_WT_SC_DVALUE 0x11110001 //Set the default Value of
Frequency-Xtal Scale
#define
RADIO_WT_AC_DVALUE 0x11110002 //Set the default Value of
Input Sample Correcture
#define
RADIO_WT_DX_DVALUE 0x11110003 //Set the default Value of
the Gain-Factor of the DX-Channel
int set
on type of RADIO_WT_.... =
this hold the write value
Remarks
Read or Write the Radio Calibration
Values of the EEprom Data
Example
BOOL WriteRadioValue(int type,
int value)
{
if(AfxMessageBox("are your shure ? to burne this?",MB_YESNO)==IDYES)
{
HandleRadioValue(type,value);
return
TRUE;
}
return FALSE;
}
int ReadRadioCalibrationValue(int
type)
{
return
HandleRadioValue(type,0);
}
See Also -->
IFScopeControl.h,IFScopeControl.cpp,RJ10M-DLL.h |