GetPCIStatus
Returns the current value of the PCI boards HTF ( Host Transfer Flags ) bits from the HSTR register.
Syntax
long GetPCIStatus();
Parameters
None
Returns
long - The current HTF bits value.
Required Headers
CController.h
Namespace
arc
Throws
std::runtime_error
Remarks
None
Example
        // This code demonstrates how to use GetPCIStatus() to
        // determine if the PCI board is expecting the controller
        // to be performing an image readout.

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

        CController cController;

        // .... open driver, initialize, etc ....

        try {
            long lStatus = cController.GetPCIStatus();

            cout << "PCI board thinks controller is in readout: "
                 << ( lStatus == READOUT ? "true" : "false" )
                 << endl;
         }
        catch ( std::exception &e )
        {
            cerr << "Exception Occurred: " << e.what() << endl;
        }

© Astronomical Research Cameras, Inc.