Пример #1
0
 private void ConfigureSelf(FpgaAcquisitionConfiguration config)
 {
     _config    = config;
     _assembler = CreateAssemblerChild(config);
     _framing   = CreateDelimiterChild(config, _assembler);
     _connector = CreateConnectionChild(config, _framing);
 }
Пример #2
0
        private void ReConfigureSelf(FpgaAcquisitionConfiguration configuration)
        {
            if (ShouldReconfigureAssembler(configuration))
            {
                //Reconfigure assembler
                Context.Stop(_assembler);
                _assembler = CreateAssemblerChild(configuration);
            }

            if (ShouldReconfigureDelimiter(configuration))
            {
                //Reconfigure delimiter
                Context.Stop(_framing);
                _framing = CreateDelimiterChild(configuration, _assembler);
            }

            if (ShouldReconfigureConnection(configuration))
            {
                //Reconfigure connection
                Context.Stop(_connector);
                _connector = CreateConnectionChild(configuration, _framing);
            }
        }
Пример #3
0
 public Configure(FpgaAcquisitionConfiguration config)
 {
     Configuration = config;
 }