public cc2500(CommPortLogged c) { cpl = c; CRC_AUTOFLUSH = ManchesterEnable = false; AddressCheck = ChannelNo = DeviceAddress = RXOFF_MODE = TXOFF_MODE = CCA_MODE = 0; PacketLength = 61; output_power_level = 0; }
public ad4360_control_form(CommPortLogged c, int clock_freq) { InitializeComponent(); string Fosc = ConfigurationManager.AppSettings["AD4360_FOSC"]; int fosc = int.Parse(Fosc); device = new ad4360(fosc); FOSC.Text = Fosc; out_freq.Text = clock_freq.ToString(); corePowerLevel.Items.AddRange(device.CORE_POWER_LEVELS); corePowerLevel.SelectedIndex = device.CORE_POWER_LEVEL_DEFAULT; double icp = ad4360.ICP_STEP; for (int i = 0; i < ad4360.ICP_STEP_COUNT; i++) { string value = icp.ToString() + " mA"; currentSetting1.Items.Add(value); currentSetting2.Items.Add(value); icp += ad4360.ICP_STEP; } currentSetting1.SelectedIndex = 0; currentSetting2.SelectedIndex = 0; muxoutControl.Items.AddRange(device.MUXOUT_VALUES); muxoutControl.SelectedIndex = 1; outPowerLevel.Items.AddRange(device.OUTPUT_POWER_LEVELS); outPowerLevel.SelectedIndex = 3; antiBLPW.Items.AddRange(device.ANTI_BACKLASH_PULSE_WIDTHS); antiBLPW.SelectedIndex = 0; bandSelClockDiv.Items.AddRange(device.BAND_SELECT_CLOCK_DIVIDERS); bandSelClockDiv.SelectedIndex = 0; referenceFreq_TextChanged(null, null); out_freq_TextChanged(null, null); cpl = c; }
public i2c_master(CommPortLogged c) { cpl = c; }