public void ConfigurePins(HMC704_CHIP_NUMBER chipNum) { if (chipNum == HMC704_CHIP_NUMBER.HMC704_CHIP1) { m_io[SCK] = new DiolanIO(m_dlnDevice, 7); m_io[SDI] = new DiolanIO(m_dlnDevice, 8); m_io[SD_LDO] = new DiolanIO(m_dlnDevice, 2); m_io[SEN] = new DiolanIO(m_dlnDevice, 3); m_io[CEN] = new DiolanIO(m_dlnDevice, 4); m_io[SCK].Output(); m_io[SDI].Output(); m_io[SEN].Output(); m_io[CEN].Output(); m_io[SCK].Clear(); m_io[SDI].Clear(); m_io[CEN].Set(); m_io[CEN].Clear(); m_io[SEN].Clear(); m_io[SD_LDO].Input(); m_configured = true; } if (chipNum == HMC704_CHIP_NUMBER.HMC704_CHIP2) { } if (chipNum == HMC704_CHIP_NUMBER.HMC704_CHIP3) { } }
public ADRF5730(Device device) { m_LE = new DiolanIO(device, 8); m_Dout[0] = new DiolanIO(device, 0); m_Dout[1] = new DiolanIO(device, 1); m_Dout[2] = new DiolanIO(device, 11); m_Dout[3] = new DiolanIO(device, 12); m_Dout[4] = new DiolanIO(device, 13); for (int i = 0; i < m_Dout.Length; i++) { m_Dout[i].Output(); m_Dout[i].Enable(true); } m_LE.Output(); m_LE.Enable(true); SetAtten(0); }
public void ConfigurePins(int SCK_Io, int SDI_Io, int SD_LDO_Io, int SEN_Io, int CEN_Io) { m_io[SCK] = new DiolanIO(m_dlnDevice, SCK_Io); m_io[SDI] = new DiolanIO(m_dlnDevice, SDI_Io); m_io[SD_LDO] = new DiolanIO(m_dlnDevice, SD_LDO_Io); m_io[SEN] = new DiolanIO(m_dlnDevice, SEN_Io); m_io[CEN] = new DiolanIO(m_dlnDevice, CEN_Io); m_io[SCK].Output(); m_io[SDI].Output(); m_io[SEN].Output(); m_io[CEN].Output(); m_io[SCK].Clear(); m_io[SDI].Clear(); m_io[CEN].Set(); m_io[CEN].Clear(); m_io[SEN].Clear(); m_io[SD_LDO].Input(); m_configured = true; }