latest version v1.9 - last update 10 Apr 2010 |
IEEE 1394 Bus Information Class. More...
#include <ltiFireWireDCAM.h>
Public Member Functions | |
busInfo () | |
~busInfo () | |
bool | get () |
bool | getNodes () |
Public Attributes | |
raw1394handle_t * | handles |
nodeid_t ** | cameraNodes |
int | cameraNum |
int * | portCameraNum |
int | portNum |
bool | cardFound |
Protected Member Functions | |
bool | deleteCameraNodes () |
Static Protected Member Functions | |
static int | busResetHandler (raw1394handle_t handle, unsigned int generation) |
IEEE 1394 Bus Information Class.
lti::fireWireDCAM::busInfo::busInfo | ( | ) |
Default constructor.
Initializes everything with NULL o zero
lti::fireWireDCAM::busInfo::~busInfo | ( | ) |
Destructor.
Takes care of deallocation
static int lti::fireWireDCAM::busInfo::busResetHandler | ( | raw1394handle_t | handle, | |
unsigned int | generation | |||
) | [static, protected] |
Bus reset handler.
TODO: we have to decide what is to be done when the cameras are life plugged/unplugged!
bool lti::fireWireDCAM::busInfo::deleteCameraNodes | ( | ) | [protected] |
Delete the camera nodes.
bool lti::fireWireDCAM::busInfo::get | ( | ) |
Fill the structure with information about the bus, nodes and cameras.
bool lti::fireWireDCAM::busInfo::getNodes | ( | ) |
Get camera nodes.
Returns false if no card could be found (which also sets the attribute cardFound to false
nodeid_t** lti::fireWireDCAM::busInfo::cameraNodes |
Nodes.
Array of pointers to nodeid_t structures. This array will have portNum number of elements.
Flag to indicate if a camera was found.
raw1394handle_t* lti::fireWireDCAM::busInfo::handles |
Array of bus handles (type declared in file libraw1394/raw1394.h).
The number of elements in the array is given by portNum.
Array with the number of cameras for each port.
The number of elements of this array is given by portNum.
Port number.
Number of ports available. The portCameraNum and cameraNodes attributes are arrays with this number of elements.