UnmapDriver
Removes all mappings to the device driver image buffer that was created by a previous call to MapDriver() or OpenDriver().
Syntax
void UnmapDriver();
Parameters
None
Returns
None
Required Headers
CController.h
Namespace
arc
Throws
None
Remarks
None
Example
        // This code demonstrates how to instantiate a new CController
        // object, open a driver connection, map the image buffer, and 
        // then unmap and close it.

        #include <iostream.h>
        #include "CController.h"
        using namespace std;
        using namespace arc;

        CController cController;

        try {
            // Find all ARC PCI boards in the system.
            // This MUST be called first!
            cController.GetDeviceBindings();

            if ( cController.GetDeviceBindingCount() <= 0 )
                throw std::runtime_error( "No PCI devices available!" );

            cout << "Opening device #0" << endl;
            cController.OpenDriver( 0 );

            cout << "Mapping 2200x2200 pixel image buffer" << endl;
            cController.MapDriver( 2200 * 2200 * sizeof( unsigned short ) );

            // Unmap image buffer
            cout << "Unmapping image buffer" << endl;
            cController.UnmapDriver();

            // Close the driver connection.
            cout << "Closing device #0" << endl;
            cController.CloseDriver();
         }
        catch ( std::exception &e )
        {
            cerr << "Exception Occurred: " << e.what() << endl;
        }

© Astronomical Research Cameras, Inc.