public ConfigureAntenna( LakeChabotReader reader )
{
if ( null == reader )
{
throw new ArgumentNullException( "reader", "Null reader passed to ConfigureAntenna CTOR()" );
}
if ( reader.Mode != rfidReader.OperationMode.BoundToReader )
{
throw new ArgumentOutOfRangeException( "reader", "Unbound reader passed to ConfigureAntenna()" );
}
InitializeComponent( );
//applyAtStartupCheckBox.Checked = !String.IsNullOrEmpty( RFID_Explorer.Properties.Settings.Default.antennaSettings );
this.reader = reader;
this.timer = new Timer( );
this.timer.Interval = 5000;
this.timer.Tick += new EventHandler( timer_Tick );
//clark not sure. Wait firmware support this function.
#if (LBT)
//RfPowerThreshold Clark 2011.2.10 Cpoied from R1000 Tracer
UInt32 oem_Data = 0;
reader.MacReadOemData
(
(ushort)enumOEM_ADDR.ENUM_OEM_ADDR_RF_REVPWR_THRESHOLD,//0x000000AE,
ref oem_Data
);
numericUpDownRfPowerThreshold.Value = oem_Data;
#endif
}