Ejemplo n.º 1
0
        private void InitIOModule()
        {
            CSadrADC  = new SPIAddressObject(SPIAddressObject.eCSadrMode.SPIwithCSdemux, null, CSAdrSelection, HW_ADC_CSadr);
            CSadrDAC  = new SPIAddressObject(SPIAddressObject.eCSadrMode.SPIwithCSdemux, null, CSAdrSelection, HW_DAC_CSadr);
            CSadrGPIO = new SPIAddressObject(SPIAddressObject.eCSadrMode.SPIwithCSdemux, null, CSAdrSelection, HW_GPIO_CSadr);
            CSadrLEDD = new SPIAddressObject(SPIAddressObject.eCSadrMode.SPIdedicated, null, null, 0);

            GSLEDdriver = new LEDD_TLC5941(SPIOInterface, CSadrLEDD, GSLEDdriverLatch, GSLEDdriverMode, null);
            DCLEDDriver = new LEDD_TLC5925(SPIOInterface, CSadrLEDD, DCLEDdriverLatch, null);
            StatusLED   = new LED_APA102(StatusLEDInterface, CSadrLEDD);
            DACslave    = new DAC_MCP4922(SPIOInterface, CSadrDAC, null, null);
            ADCslave    = new ADC_MCP3208(SPIOInterface, CSadrADC);
            GPIOslave   = new GPIO_MCP23S17(SPIOInterface, CSadrGPIO, null, null, 0);
        }