#include <registers.h>
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_ |
Registers class.
Allows to to get/set control and status registers (CSR).
Definition at line 55 of file registers.h.
camera1394::Registers::Registers | ( | dc1394camera_t * | camera | ) |
Definition at line 47 of file registers.cpp.
camera1394::Registers::Registers | ( | ) |
Definition at line 50 of file registers.cpp.
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.
offset | register offset |
num_regs | number of registers to read |
val | buffer to fill in (must be preallocated) |
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.
offset | register offset |
val | values to set |
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.
|
private |
Definition at line 92 of file registers.h.