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)
            {
            }
        }
Esempio n. 2
0
 public SynthHMC704LP4E(Device device, HMC704_CHIP_NUMBER chipNum)
 {
     try
     {
         m_hmc = new HMCMode(device);
         ConfigurePins(chipNum);
     }
     catch (Exception err)
     {
         throw (new SystemException(err.Message));
     }
 }
Esempio n. 3
0
 public void ConfigurePins(HMC704_CHIP_NUMBER chipNum)
 {
     m_hmc.ConfigurePins(chipNum);
     m_hmc.Enable();
 }