Skip to main content

OBDeviceSyncConfig

Struct OBDeviceSyncConfig 

Source
#[repr(C, packed(1))]
pub struct OBDeviceSyncConfig { pub syncMode: OBSyncMode, pub irTriggerSignalInDelay: u16, pub rgbTriggerSignalInDelay: u16, pub deviceTriggerSignalOutDelay: u16, pub deviceTriggerSignalOutPolarity: u16, pub mcuTriggerFrequency: u16, pub deviceId: u16, }
Expand description

@brief Device synchronization configuration @deprecated This structure is deprecated, please use @ref ob_multi_device_sync_config instead

Fields§

§syncMode: OBSyncMode

@brief Device synchronize mode

§irTriggerSignalInDelay: u16

@brief IR Trigger signal input delay: Used to configure the delay between the IR/Depth/TOF Sensor receiving the trigger signal and starting exposure, Unit: microsecond

@attention This parameter is invalid when the synchronization MODE is set to @ref OB_SYNC_MODE_PRIMARY_IR_TRIGGER

§rgbTriggerSignalInDelay: u16

@brief RGB trigger signal input delay is used to configure the delay from the time when an RGB Sensor receives the trigger signal to the time when the exposure starts. Unit: microsecond

@attention This parameter is invalid when the synchronization MODE is set to @ref OB_SYNC_MODE_PRIMARY

§deviceTriggerSignalOutDelay: u16

@brief Device trigger signal output delay, used to control the delay configuration of the host device to output trigger signals or the slave device to output trigger signals. Unit: microsecond

@attention This parameter is invalid when the synchronization MODE is set to @ref OB_SYNC_MODE_CLOSE or @ref OB_SYNC_MODE_STANDALONE

§deviceTriggerSignalOutPolarity: u16

@brief The device trigger signal output polarity is used to control the polarity configuration of the trigger signal output from the host device or the trigger signal output from the slave device @brief 0: forward pulse; 1: negative pulse

@attention This parameter is invalid when the synchronization MODE is set to @ref OB_SYNC_MODE_CLOSE or @ref OB_SYNC_MODE_STANDALONE

§mcuTriggerFrequency: u16

@brief MCU trigger frequency, used to configure the output frequency of MCU trigger signal in MCU master mode, unit: Hz @brief This configuration will directly affect the image output frame rate of the Sensor. Unit: FPS (frames per second)

@attention This parameter is invalid only when the synchronization MODE is set to @ref OB_SYNC_MODE_PRIMARY_MCU_TRIGGER

§deviceId: u16

@brief Device number. Users can mark the device with this number

Trait Implementations§

Source§

impl Clone for OBDeviceSyncConfig

Source§

fn clone(&self) -> OBDeviceSyncConfig

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for OBDeviceSyncConfig

Source§

impl Debug for OBDeviceSyncConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.