Public Member Functions | Private Attributes
camera1394::Registers Class Reference

Registers class. More...

#include <registers.h>

List of all members.

Public Member Functions

bool getAbsoluteRegister (const uint64_t offset, const uint32_t feature, uint32_t &val)
bool getAdvancedControlRegisters (const uint64_t offset, const uint32_t num_regs, std::vector< uint32_t > &val)
bool getControlRegisters (const uint64_t offset, const uint32_t num_regs, std::vector< uint32_t > &val)
bool getFormat7Register (const uint64_t offset, const uint32_t mode, uint32_t &val)
bool getPIORegister (const uint64_t offset, uint32_t &val)
bool getSIORegister (const uint64_t offset, uint32_t &val)
bool getStrobeRegister (const uint64_t offset, uint32_t &val)
 Registers (dc1394camera_t *camera)
 Registers ()
bool setAbsoluteRegister (const uint64_t offset, const uint32_t feature, const uint32_t val)
bool setAdvancedControlRegisters (const uint64_t offset, const std::vector< uint32_t > &val)
bool setControlRegisters (const uint64_t offset, const std::vector< uint32_t > &val)
bool setFormat7Register (const uint64_t offset, const uint32_t mode, const uint32_t val)
bool setPIORegister (const uint64_t offset, const uint32_t val)
bool setSIORegister (const uint64_t offset, const uint32_t val)
bool setStrobeRegister (const uint64_t offset, const uint32_t val)

Private Attributes

dc1394camera_t * camera_

Detailed Description

Registers class.

Allows to to get/set control and status registers (CSR).

Definition at line 55 of file registers.h.


Constructor & Destructor Documentation

camera1394::Registers::Registers ( dc1394camera_t *  camera)

Definition at line 47 of file registers.cpp.

Definition at line 50 of file registers.cpp.


Member Function Documentation

bool camera1394::Registers::getAbsoluteRegister ( const uint64_t  offset,
const uint32_t  feature,
uint32_t &  val 
)

Get feature absolute value register.

Definition at line 84 of file registers.cpp.

bool camera1394::Registers::getAdvancedControlRegisters ( const uint64_t  offset,
const uint32_t  num_regs,
std::vector< uint32_t > &  val 
)

Get advanced feature registers.

Definition at line 118 of file registers.cpp.

bool camera1394::Registers::getControlRegisters ( const uint64_t  offset,
const uint32_t  num_regs,
std::vector< uint32_t > &  val 
)

Get camera control registers.

Parameters:
offsetregister offset
num_regsnumber of registers to read
valbuffer to fill in (must be preallocated)
Returns:
true if succeeded

Definition at line 63 of file registers.cpp.

bool camera1394::Registers::getFormat7Register ( const uint64_t  offset,
const uint32_t  mode,
uint32_t &  val 
)

Get Format7 register.

Definition at line 101 of file registers.cpp.

bool camera1394::Registers::getPIORegister ( const uint64_t  offset,
uint32_t &  val 
)

Get parallel input/output (PIO) register.

Definition at line 136 of file registers.cpp.

bool camera1394::Registers::getSIORegister ( const uint64_t  offset,
uint32_t &  val 
)

Get serial input/output (SIO) register.

Definition at line 149 of file registers.cpp.

bool camera1394::Registers::getStrobeRegister ( const uint64_t  offset,
uint32_t &  val 
)

Get strobe register.

Definition at line 162 of file registers.cpp.

bool camera1394::Registers::setAbsoluteRegister ( const uint64_t  offset,
const uint32_t  feature,
const uint32_t  val 
)

Set feature absolute value register.

Definition at line 92 of file registers.cpp.

bool camera1394::Registers::setAdvancedControlRegisters ( const uint64_t  offset,
const std::vector< uint32_t > &  val 
)

Set advanced feature registers.

Definition at line 127 of file registers.cpp.

bool camera1394::Registers::setControlRegisters ( const uint64_t  offset,
const std::vector< uint32_t > &  val 
)

Set camera camera registers.

Parameters:
offsetregister offset
valvalues to set
Returns:
true if succeeded

Definition at line 76 of file registers.cpp.

bool camera1394::Registers::setFormat7Register ( const uint64_t  offset,
const uint32_t  mode,
const uint32_t  val 
)

Set Format7 register.

Definition at line 109 of file registers.cpp.

bool camera1394::Registers::setPIORegister ( const uint64_t  offset,
const uint32_t  val 
)

Set parallel input/output (PIO) register.

Definition at line 142 of file registers.cpp.

bool camera1394::Registers::setSIORegister ( const uint64_t  offset,
const uint32_t  val 
)

Set serial input/output (SIO) register.

Definition at line 155 of file registers.cpp.

bool camera1394::Registers::setStrobeRegister ( const uint64_t  offset,
const uint32_t  val 
)

Set strobe register.

Definition at line 168 of file registers.cpp.


Member Data Documentation

dc1394camera_t* camera1394::Registers::camera_ [private]

Definition at line 92 of file registers.h.


The documentation for this class was generated from the following files:


camera1394
Author(s): Jack O'Quin, Ken Tossell, Patrick Beeson, Nate Koenig, Andrew Howard, Damien Douxchamps, Dan Dennedy
autogenerated on Thu Jun 6 2019 19:34:17