![]() |
DvsenseDriver
1.3.0
The SDK for dvsense products.
|
Linux DVSyncPro control interface for V4L2 streams, I2C registers, and PWM synchronization. More...
#include <DVSyncProInterface.hpp>
Classes | |
| struct | I2cTarget |
| struct | Config |
| Reference-board stream, I2C, and PWM configuration; PWM times are in nanoseconds. More... | |
Public Member Functions | |
| DVSyncProInterface (Config config) | |
| const bool | isConnected () override |
| uint32_t | readRegister (uint32_t address) override |
| std::vector< uint32_t > | readRegister (uint32_t address, int nval) override |
| void | writeRegister (uint32_t address, uint32_t value) override |
| uint32_t | readRegisterWithControlTransfer (uint32_t address, uint32_t &value) override |
| uint32_t | writeRegisterWithControlTransfer (uint32_t address, uint32_t value) override |
| uint32_t | readRegisterWithControlTransfer (uint32_t address, uint8_t *data, uint16_t length) override |
| uint32_t | writeRegisterWithControlTransfer (uint32_t address, uint8_t *data, uint16_t length) override |
| const V4l2StreamConfig & | dvsStreamConfig () const |
| const V4l2StreamConfig & | apsStreamConfig () const |
| bool | enableAll () |
| Enable configured synchronization PWM outputs; return true on success. | |
| bool | disableAll () |
| Disable synchronization PWM outputs; return true on success. | |
| bool | prepareAll () |
| Configure disabled PWM outputs before streams start; return true on success. | |
Static Public Member Functions | |
| static std::shared_ptr< DVSyncProInterface > | create () |
| static std::shared_ptr< DVSyncProInterface > | create (Config config) |
Linux DVSyncPro control interface for V4L2 streams, I2C registers, and PWM synchronization.
Defaults target the reference board. Device-node and pwmchip numbering are not portable. Control-transfer methods return 0 on success and UINT32_MAX on failure. Forced I2C access does not synchronize with kernel or AIQ register access. Not a host USB interface.
| struct dvsense::DVSyncProInterface::I2cTarget |
| struct dvsense::DVSyncProInterface::Config |
Reference-board stream, I2C, and PWM configuration; PWM times are in nanoseconds.
| Class Members | ||
|---|---|---|
| V4l2StreamConfig | dvs_stream {"/dev/video0", 1024, 512, 0, 8, 1024 * 512} | |
| V4l2StreamConfig | aps_stream {"/dev/video22", 3840, 2160, 0, 6, 3840 * 2160 * 3 / 2} | |
| I2cTarget | dvs_i2c {"/dev/i2c-2", 0x3c, 4, 4} | |
| I2cTarget | aps_i2c {"/dev/i2c-3", 0x36, 2, 1} | |
| string | aps_subdevice = "/dev/v4l-subdev5" | |
| PwmConfig | xvs {"/sys/class/pwm/pwmchip0", 67000000, 200000, "inversed"} | |
| PwmConfig | xhs {"/sys/class/pwm/pwmchip2", 12000, 200, "normal"} | |
|
explicit |
|
static |
|
static |
|
override |
|
override |
|
override |
|
override |
|
override |
|
override |
|
override |
|
override |
|
inline |
|
inline |
| bool dvsense::DVSyncProInterface::enableAll | ( | ) |
Enable configured synchronization PWM outputs; return true on success.
| bool dvsense::DVSyncProInterface::disableAll | ( | ) |
Disable synchronization PWM outputs; return true on success.
| bool dvsense::DVSyncProInterface::prepareAll | ( | ) |
Configure disabled PWM outputs before streams start; return true on success.