Ejemplo 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;
        }
Ejemplo 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;
        }
Ejemplo n.º 3
0
 private HyperionController( HyperionDevice hyperion )
 {
     _hyperion = hyperion;
 }