Esempio n. 1
0
        public static HyperionController Create( HyperionDevice device, params  ICommandServer[] servers )
        {
            HyperionController controller = new HyperionController( device );

            // Connect each of the command servers to the controller
            foreach ( ICommandServer server in servers )
            {
                controller.ConnectCommandServer( server );
            }

            return controller;
        }
Esempio n. 2
0
        /// <summary>
        /// Create a new Hyperion Device, initialize the peak/spectrum memory data buffers,
        /// enable interrupts, and enable DMA.
        /// </summary>
        /// <param name="deviceInteface">The interface for communicating with the device hardware.</param>
        public static HyperionDevice Create( IDeviceInterface deviceInteface )
        {
            HyperionDevice device = new HyperionDevice( deviceInteface );

            // Map device memory into the process virtual memory for peak/spectrum data.
            device.InitializeDataBuffers();

            // Enable Data Acquisition from the device
            device.ConfigureInterrupts( Interrupts.All );
            device.ConfigureDMA( DmaModes.All );

            return device;
        }
Esempio n. 3
0
 private HyperionController( HyperionDevice hyperion )
 {
     _hyperion = hyperion;
 }