#include <l1394_avcregister.h>
Inheritance diagram for L1394::AvcRegister:

Public Member Functions | |
AvcRegister constructor | |
These functions implement the Register objects for AV/C devices. | |
| AvcRegister (const FcpNode *parent_node, const int subunit_value) | |
| This method creates a Register object for AV/C devices. | |
| virtual | ~AvcRegister () |
| destructor | |
Register interface for A/VC devices | |
These functiosn implement the minimal DeviceRegister interface for A/VC devices | |
| int | send () const |
| This method sends the command and returns the response code. | |
| bool | hasFeature () const |
| This method tests, if a command is supported by a node. | |
| bool | hasFeature (const int command) const |
| This method tests, if a submethod of a command is supported by the device. | |
| QArray | status () const |
| This method returns the status of subfunction(0xFF normally for the feature itself). | |
Some internal methods | |
These methods help to implement the interface. | |
| AvcRegister * | setCtype (const int ctype) |
| This method sets the command type. | |
| AvcRegister * | setSubfunction (const int subfunction) |
| This method sets the subfunction. | |
| AvcRegister * | setOpcode (const int opcode) |
| This method sets the opcode. | |
| AvcRegister * | defaultSet (const int length, const int opcode, const int value) |
| This method sets default value for the array. FOR INTERNAL USE ONLY!! | |
| QArray * | getData () |
| return the data_array. FOR INTERNAL USE ONLY!!! | |
Protected Member Functions | |
| AvcRegister * | reset (const int size) |
| This method resets the data_arry. | |
Protected Attributes | |
| const FcpNode * | parent_node |
| pointer to the parent node | |
| QArray * | data_array |
| the data_array | |
| int | opcode |
| actual op_code | |
| int | subunit_value |
| actual subunit_value | |
| int | ctype |
| actual command type | |
| int | subfunction |
| actual subfunction | |
| bool | restore |
| variable to test if the data_array was reset. | |
Definition at line 36 of file l1394_avcregister.h.
|
||||||||||||
|
This method creates a Register object for AV/C devices.
Definition at line 22 of file l1394_avcregister.cpp. References ctype, data_array, opcode, and subfunction. |
|
|
destructor
Definition at line 32 of file l1394_avcregister.cpp. |
|
||||||||||||||||
|
|
return the data_array. FOR INTERNAL USE ONLY!!!
Definition at line 130 of file l1394_avcregister.h. References data_array. Referenced by L1394::AvcVcr::getTimeCode(), L1394::AvcVcr::marker(), L1394::AvcVcr::mediumInfo(), L1394::AvcVcr::recordingDate(), L1394::AvcVcr::search(), and L1394::AvcVcr::timecode(). |
|
|
This method tests, if a submethod of a command is supported by the device.
Definition at line 55 of file l1394_avcregister.cpp. References data_array, L1394::Quadlet::getByte(), IMPLEMENTED, opcode, parent_node, L1394::FcpNode::send(), L1394::QArray::setByte(), and SPECIFIC_INQUIRY. |
|
|
This method tests, if a command is supported by a node. For this method the general inquiry command is used.
Implements L1394::DeviceRegister. Reimplemented in L1394::AvcCameraRegister. Definition at line 44 of file l1394_avcregister.cpp. References data_array, L1394::Quadlet::getByte(), IMPLEMENTED, parent_node, L1394::FcpNode::send(), L1394::QArray::setByte(), and SPECIFIC_INQUIRY. |
|
|
This method resets the data_arry.
Definition at line 87 of file l1394_avcregister.cpp. References CONTROL, data_array, L1394::QArray::insert(), L1394::QArray::setByte(), and subunit_value. Referenced by defaultSet(). |
|
|
This method sends the command and returns the response code. After sending, the internal data Array will be restored and set to size 1.
Implements L1394::DeviceRegister. Definition at line 38 of file l1394_avcregister.cpp. References data_array, L1394::Quadlet::getByte(), L1394::Singleton< T, CreationPolicy, LifetimePolicy, ThreadingModel >::getInstance(), parent_node, and L1394::FcpNode::send(). |
|
|
This method sets the command type.
Definition at line 106 of file l1394_avcregister.h. References data_array, and L1394::QArray::setByte(). |
|
|
This method sets the opcode.
Definition at line 120 of file l1394_avcregister.h. References data_array, and L1394::QArray::setByte(). |
|
|
This method sets the subfunction.
Definition at line 113 of file l1394_avcregister.h. References data_array, and L1394::QArray::setByte(). |
|
|
This method returns the status of subfunction(0xFF normally for the feature itself).
Implements L1394::DeviceRegister. Definition at line 69 of file l1394_avcregister.cpp. References data_array, parent_node, L1394::FcpNode::send(), L1394::QArray::setByte(), and STATUS. |
|
|
actual command type
Definition at line 150 of file l1394_avcregister.h. Referenced by AvcRegister(). |
|
|
the data_array
Definition at line 141 of file l1394_avcregister.h. Referenced by AvcRegister(), defaultSet(), getData(), L1394::AvcCameraRegister::getValue(), hasFeature(), L1394::AvcCameraRegister::hasFeature(), L1394::AvcCameraRegister::onePush(), reset(), send(), setCtype(), setOpcode(), setSubfunction(), L1394::AvcCameraRegister::setValue(), and status(). |
|
|
actual op_code
Definition at line 144 of file l1394_avcregister.h. Referenced by L1394::AvcCameraRegister::automatic(), AvcRegister(), and hasFeature(). |
|
|
pointer to the parent node
Definition at line 138 of file l1394_avcregister.h. Referenced by L1394::AvcCameraRegister::automatic(), L1394::AvcCameraRegister::getValue(), hasFeature(), L1394::AvcCameraRegister::hasFeature(), L1394::AvcCameraRegister::onePush(), send(), L1394::AvcCameraRegister::setValue(), and status(). |
|
|
variable to test if the data_array was reset.
Definition at line 155 of file l1394_avcregister.h. |
|
|
actual subfunction
Definition at line 153 of file l1394_avcregister.h. Referenced by AvcRegister(). |
|
|
actual subunit_value
Definition at line 147 of file l1394_avcregister.h. Referenced by L1394::AvcCameraRegister::automatic(), and reset(). |
1.4.2
L1394 library
(NMM) grahics.cs.uni-sb.de/~repplix/l1394_home/