long command |
The ioctl command to send to the device driver.
See below for the list of available commands.
|
||||||||||||||||||||||||||||||
long arg |
[optional] Any argument that may be required by the command.
Default value: -1. |
// This code demonstrates how to use IoctlDriver to read
// the DMA address from the PCI board.
#include <iostream.h>
#include "CController.h"
using namespace std;
using namespace arc;
CController cController;
long lRetVal = 0;
// .... open driver, initialize, etc ....
try {
lRetVal = cController.IoctlDriver( ASTROPCI_GET_DMA_ADDR );
cout << "DMA Address: 0x" << hex << lRetVal << endl;
}
catch ( std::exception &e )
{
cerr << "Exception Occurred: " << e.what() << endl;
}
© Astronomical Research Cameras, Inc.