#include <l1394_transaction.h>
Public Member Functions | |
Transaction constructor | |
These functions creates a Transaction object. | |
Transaction (raw1394handle_t) | |
Constructor. | |
~Transaction () | |
Destructor. | |
Transactions | |
These methods are wrapper for the libraw functions. | |
int | read (const u_int64_t address, Quadlet *q, const u_int32_t node_id) const |
This method reads 4 bytes from CsrRom of a specific node and return the value. | |
int | write (const u_int64_t address, const Quadlet &data, const u_int32_t node_id) const |
This method writes 4 bytes to CsrRom of a specific node. | |
int | lock (const u_int64_t address, const Quadlet &data, const unsigned int extcode, const Quadlet &argument, Quadlet *result, const u_int32_t node_id) const |
This method realizes an atomic transaction on the FireWire bus. | |
Quadlet | send (const Quadlet &command, const u_int32_t node_id) const |
This method sends a Quadlet (4 bytes) to the node with current node_ide. | |
QArray | send (const QArray &command, const u_int32_t node_id) const |
This method sends an QArray to a node. | |
Static Public Member Functions | |
static void | setSafeMode (bool b, int d) |
This method enables/disables the safe mode for asynchrone transactions. | |
static void | delay (int i) |
delay for msecs i |
It provides methods for the FireWire specific transactions (read, write and lock) and AV/C specific transactions (send).
Definition at line 46 of file l1394_transaction.h.
|
Constructor.
Definition at line 27 of file l1394_transaction.cpp. |
|
Destructor.
Definition at line 32 of file l1394_transaction.cpp. |
|
delay for msecs i
Definition at line 270 of file l1394_transaction.cpp. Referenced by lock(), read(), L1394::DccCamera::shot(), and write(). |
|
This method realizes an atomic transaction on the FireWire bus. An atomic transaction means, that no node can access the address during the lock operation.
Definition at line 122 of file l1394_transaction.cpp. References delay(), L1394::Quadlet::fromInt(), L1394::Singleton< T, CreationPolicy, LifetimePolicy, ThreadingModel >::getInstance(), L1394_FAILED, L1394_SUCCESS, and L1394::Quadlet::toInt(). |
|
This method reads 4 bytes from CsrRom of a specific node and return the value.
Definition at line 36 of file l1394_transaction.cpp. References delay(), L1394::Quadlet::fromInt(), L1394::Singleton< T, CreationPolicy, LifetimePolicy, ThreadingModel >::getInstance(), L1394_FAILED, and L1394_SUCCESS. Referenced by L1394::Card::readAGuid(), and L1394::Card::readTopoMap(). |
|
This method sends an QArray to a node.
Definition at line 202 of file l1394_transaction.cpp. References FCP_COMMAND_ADDR, L1394::Singleton< T, CreationPolicy, LifetimePolicy, ThreadingModel >::getInstance(), L1394::QArray::getQuadlet(), L1394::QArray::getSize(), and L1394::QArray::toIntArray(). |
|
This method sends a Quadlet (4 bytes) to the node with current node_ide.
Definition at line 164 of file l1394_transaction.cpp. References FCP_COMMAND_ADDR, L1394::Singleton< T, CreationPolicy, LifetimePolicy, ThreadingModel >::getInstance(), and L1394::QArray::getQuadlet(). |
|
This method enables/disables the safe mode for asynchrone transactions. If you enable the safemode a delay between every transaction is enabled. Definition at line 127 of file l1394_transaction.h. Referenced by L1394::Session::safeMode(). |
|
This method writes 4 bytes to CsrRom of a specific node.
Definition at line 82 of file l1394_transaction.cpp. References delay(), L1394::Singleton< T, CreationPolicy, LifetimePolicy, ThreadingModel >::getInstance(), L1394_FAILED, L1394_SUCCESS, and L1394::Quadlet::toInt(). |