IRegisterDevice.h
Go to the documentation of this file.
00001 /*=============================================================================
00002   Copyright (C) 2012 Allied Vision Technologies.  All Rights Reserved.
00003 
00004   Redistribution of this file, in original or modified form, without
00005   prior written consent of Allied Vision Technologies is prohibited.
00006 
00007 -------------------------------------------------------------------------------
00008 
00009   File:        IRegisterDevice.h
00010 
00011   Description: Definition of interface AVT::VmbAPI::IRegisterDevice.
00012 
00013 -------------------------------------------------------------------------------
00014 
00015   THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
00016   WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF TITLE,
00017   NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR  PURPOSE ARE
00018   DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, 
00019   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 
00020   (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
00021   LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED  
00022   AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR 
00023   TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 
00024   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00025 
00026 =============================================================================*/
00027 
00028 #ifndef AVT_VMBAPI_IREGISTERDEVICE_H
00029 #define AVT_VMBAPI_IREGISTERDEVICE_H
00030 
00031 #include <VimbaC/Include/VmbCommonTypes.h>
00032 #include <vector>
00033 
00034 namespace AVT {
00035 namespace VmbAPI {
00036 
00037 class IRegisterDevice 
00038 {
00039   public:
00040 
00041     virtual ~IRegisterDevice() {};
00042 
00043     //
00044     // Method:      ReadRegisters()
00045     //
00046     // Purpose:     Reads one or more registers consecutively. The number of registers to be read is determined by the number of provided addresses.
00047     //
00048     // Parameters:  [in ]   Uint64Vector     &addresses  A list of register addresses
00049     //              [out]   Uint64Vector     &buffer     The returned data as vector
00050     //
00051     // Returns:
00052     //  - VmbErrorSuccess:      If all requested registers have been read
00053     //  - VmbErrorIncomplete:   If at least one, but not all registers have been read. See overload ReadRegisters( const Uint64Vector &addresses, Uint64Vector &buffer, VmbUint32_t &completeReads ).
00054     //
00055     virtual VmbErrorType ReadRegisters( const Uint64Vector &addresses, Uint64Vector &buffer ) const = 0;
00056 
00057     //
00058     // Method:      ReadRegisters()
00059     //
00060     // Purpose:     Reads one or more registers consecutively. The number of registers to be read is determined by the number of provided addresses.
00061     //
00062     // Parameters:  [in ]   const Uint64Vector   &addresses      A list of register addresses
00063     //              [out]   Uint64Vector         &buffer         The returned data as vector
00064     //              [out]   VmbUint64_t          &completeReads  The number of successfully read registers
00065     //
00066     // Returns:
00067     //  - VmbErrorSuccess:      If all requested registers have been read
00068     //  - VmbErrorIncomplete:   If at least one, but not all registers have been read.
00069     //
00070     virtual VmbErrorType ReadRegisters( const Uint64Vector &addresses, Uint64Vector &buffer, VmbUint32_t &completedReads ) const = 0;
00071     
00072     //
00073     // Method:      WriteRegisters()
00074     //
00075     // Purpose:     Writes one or more registers consecutively. The number of registers to be written is determined by the number of provided addresses.
00076     //
00077     // Parameters:  [in ]    Uint64Vector     &addresses  A list of register addresses
00078     //              [in ]    Uint64Vector     &buffer     The data to write as vector
00079     //
00080     // Returns:
00081     //  - VmbErrorSuccess:      If all requested registers have been written
00082     //  - VmbErrorIncomplete:   If at least one, but not all registers have been written. See overload WriteRegisters( const Uint64Vector &addresses, Uint64Vector &buffer, VmbUint32_t &completeWrites ).
00083     //
00084     virtual VmbErrorType WriteRegisters( const Uint64Vector &addresses, const Uint64Vector &data ) = 0;
00085 
00086     //
00087     // Method:      WriteRegisters()
00088     //
00089     // Purpose:     Writes one or more registers consecutively. The number of registers to be written is determined by the number of provided addresses.
00090     //
00091     // Parameters:  [in ]   Uint64Vector     &addresses      A list of register addresses
00092     //              [in ]   Uint64Vector     &buffer         The data to write as vector
00093     //              [out]   VmbUint64_t      &completeWrites The number of successfully read registers
00094     //
00095     // Returns:
00096     //  - VmbErrorSuccess:      If all requested registers have been written
00097     //  - VmbErrorIncomplete:   If at least one, but not all registers have been written.
00098     //
00099     virtual VmbErrorType WriteRegisters( const Uint64Vector &addresses, const Uint64Vector &data, VmbUint32_t &completedWrites ) = 0;
00100     
00101     //
00102     // Method:      ReadMemory()
00103     //
00104     // Purpose:     Reads a block of memory. The number of bytes to read is determined by the size of the provided buffer.
00105     //
00106     // Parameters:  [in ]   VmbUint64_t     &address    The address to read from
00107     //              [out]   UcharVector     &buffer     The returned data as vector
00108     //
00109     // Returns:
00110     //  - VmbErrorSuccess:      If all requested bytes have been read
00111     //  - VmbErrorIncomplete:   If at least one, but not all bytes have been read. See overload ReadMemory( const VmbUint64_t &address, UcharVector &buffer, VmbUint32_t &completeReads ).
00112     //
00113     virtual VmbErrorType ReadMemory( const VmbUint64_t &address, UcharVector &buffer ) const = 0;
00114 
00115     //
00116     // Method:      ReadMemory()
00117     //
00118     // Purpose:     Reads a block of memory. The number of bytes to read is determined by the size of the provided buffer.
00119     //
00120     // Parameters:  [in ]   VmbUint64_t     &address        The address to read from
00121     //              [out]   UcharVector     &buffer         The returned data as vector
00122     //              [out]   VmbUint32_t     &completeReads  The number of successfully read bytes
00123     //
00124     // Returns:
00125     //  - VmbErrorSuccess:      If all requested bytes have been read
00126     //  - VmbErrorIncomplete:   If at least one, but not all bytes have been read.
00127     //
00128     virtual VmbErrorType ReadMemory( const VmbUint64_t &address, UcharVector &buffer, VmbUint32_t &sizeComplete ) const = 0;
00129     
00130     //
00131     // Method:      WriteMemory()
00132     //
00133     // Purpose:     Writes a block of memory. The number of bytes to write is determined by the size of the provided buffer.
00134     //
00135     // Parameters:  [in]    VmbUint64_t     &address    The address to write to
00136     //              [in]    UcharVector     &buffer     The data to write as vector
00137     //
00138     // Returns:
00139     //  - VmbErrorSuccess:      If all requested bytes have been written
00140     //  - VmbErrorIncomplete:   If at least one, but not all bytes have been written. See overload ReadMemory( const VmbUint64_t &address, UcharVector &buffer, VmbUint32_t &completeWrites ).
00141     //
00142     virtual VmbErrorType WriteMemory( const VmbUint64_t &address, const UcharVector &buffer ) = 0;
00143 
00144     //
00145     // Method:      WriteMemory()
00146     //
00147     // Purpose:     Writes a block of memory. The number of bytes to write is determined by the size of the provided buffer.
00148     //
00149     // Parameters:  [in]    VmbUint64_t     &address        The address to write to
00150     //              [in]    UcharVector     &buffer         The data to write as vector
00151     //              [out]   VmbUint32_t     &completeWrites The number of successfully written bytes
00152     //
00153     // Returns:
00154     //  - VmbErrorSuccess:      If all requested bytes have been written
00155     //  - VmbErrorIncomplete:   If at least one, but not all bytes have been written.
00156     //
00157     virtual VmbErrorType WriteMemory( const VmbUint64_t &address, const UcharVector &buffer, VmbUint32_t &sizeComplete ) = 0;
00158 };
00159 
00160 }} // namespace AVT::VmbAPI
00161 
00162 #endif


avt_vimba_camera
Author(s): Miquel Massot , Allied Vision Technologies
autogenerated on Thu Aug 27 2015 12:29:49