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; }
/// <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; }
private HyperionController( HyperionDevice hyperion ) { _hyperion = hyperion; }