pub trait DeviceExt: 'static {
Show 30 methods
// Required methods
fn create_chunk_parser(&self) -> Option<ChunkParser>;
fn dup_available_enumeration_feature_values(
&self,
feature: &str
) -> Result<Vec<i64>, Error>;
fn dup_available_enumeration_feature_values_as_display_names(
&self,
feature: &str
) -> Result<Vec<GString>, Error>;
fn dup_available_enumeration_feature_values_as_strings(
&self,
feature: &str
) -> Result<Vec<GString>, Error>;
fn execute_command(&self, feature: &str) -> Result<(), Error>;
fn boolean_feature_value(&self, feature: &str) -> Result<bool, Error>;
fn feature(&self, feature: &str) -> Option<GcNode>;
fn feature_access_mode(&self, feature: &str) -> GcAccessMode;
fn float_feature_bounds(&self, feature: &str) -> Result<(f64, f64), Error>;
fn float_feature_increment(&self, feature: &str) -> Result<f64, Error>;
fn float_feature_value(&self, feature: &str) -> Result<f64, Error>;
fn genicam(&self) -> Option<Gc>;
fn genicam_xml(&self) -> (GString, usize);
fn integer_feature_bounds(&self, feature: &str) -> Result<(i64, i64), Error>;
fn integer_feature_increment(&self, feature: &str) -> Result<i64, Error>;
fn integer_feature_value(&self, feature: &str) -> Result<i64, Error>;
fn string_feature_value(&self, feature: &str) -> Result<GString, Error>;
fn is_enumeration_entry_available(
&self,
feature: &str,
entry: &str
) -> Result<(), Error>;
fn is_feature_available(&self, feature: &str) -> Result<bool, Error>;
fn read_register(&self, address: u64) -> Result<(bool, u32), Error>;
fn set_access_check_policy(&self, policy: AccessCheckPolicy);
fn set_boolean_feature_value(
&self,
feature: &str,
value: bool
) -> Result<(), Error>;
fn set_features_from_string(&self, string: &str) -> Result<(), Error>;
fn set_float_feature_value(
&self,
feature: &str,
value: f64
) -> Result<(), Error>;
fn set_integer_feature_value(
&self,
feature: &str,
value: i64
) -> Result<(), Error>;
fn set_range_check_policy(&self, policy: RangeCheckPolicy);
fn set_register_cache_policy(&self, policy: RegisterCachePolicy);
fn set_string_feature_value(
&self,
feature: &str,
value: &str
) -> Result<(), Error>;
fn write_register(&self, address: u64, value: u32) -> Result<bool, Error>;
fn connect_control_lost<F: Fn(&Self) + Send + 'static>(
&self,
f: F
) -> SignalHandlerId;
}
Expand description
Required Methods§
sourcefn create_chunk_parser(&self) -> Option<ChunkParser>
fn create_chunk_parser(&self) -> Option<ChunkParser>
Create a ChunkParser
object, to be used for chunk data extraction from Buffer
.
Returns
a new ChunkParser
object, NULL on error.
sourcefn dup_available_enumeration_feature_values(
&self,
feature: &str
) -> Result<Vec<i64>, Error>
fn dup_available_enumeration_feature_values( &self, feature: &str ) -> Result<Vec<i64>, Error>
sourcefn dup_available_enumeration_feature_values_as_display_names(
&self,
feature: &str
) -> Result<Vec<GString>, Error>
fn dup_available_enumeration_feature_values_as_display_names( &self, feature: &str ) -> Result<Vec<GString>, Error>
sourcefn dup_available_enumeration_feature_values_as_strings(
&self,
feature: &str
) -> Result<Vec<GString>, Error>
fn dup_available_enumeration_feature_values_as_strings( &self, feature: &str ) -> Result<Vec<GString>, Error>
sourcefn feature_access_mode(&self, feature: &str) -> GcAccessMode
fn feature_access_mode(&self, feature: &str) -> GcAccessMode
v0_8_22
only.sourcefn float_feature_increment(&self, feature: &str) -> Result<f64, Error>
fn float_feature_increment(&self, feature: &str) -> Result<f64, Error>
v0_8_16
only.sourcefn genicam_xml(&self) -> (GString, usize)
fn genicam_xml(&self) -> (GString, usize)
sourcefn is_enumeration_entry_available(
&self,
feature: &str,
entry: &str
) -> Result<(), Error>
fn is_enumeration_entry_available( &self, feature: &str, entry: &str ) -> Result<(), Error>
v0_8_17
only.sourcefn set_access_check_policy(&self, policy: AccessCheckPolicy)
fn set_access_check_policy(&self, policy: AccessCheckPolicy)
v0_8_22
only.sourcefn set_features_from_string(&self, string: &str) -> Result<(), Error>
fn set_features_from_string(&self, string: &str) -> Result<(), Error>
Set features from a string containing a list of space separated feature assignments or command names. For example:
⚠️ The following code is in C ⚠️
arv_device_set_features_from_string (device, "Width=256 Height=256 PixelFormat='Mono8' TriggerStart", &error);
string
a space separated list of features assignments
sourcefn set_range_check_policy(&self, policy: RangeCheckPolicy)
fn set_range_check_policy(&self, policy: RangeCheckPolicy)
v0_8_6
only.sourcefn set_register_cache_policy(&self, policy: RegisterCachePolicy)
fn set_register_cache_policy(&self, policy: RegisterCachePolicy)
Sets the register cache policy.
<warning>``<para>
Be aware that some camera may have wrong Cachable properties defined in their Genicam metadata, which may
lead to incorrect readouts. Using the debug cache policy, and activating genicam debug output (export ARV_DEBUG=genicam), can help you to
check the cache validity. In this mode, every time the cache content is not in sync with the actual register value, a debug message is
printed on the console.</para>``</warning>
policy
cache policy
sourcefn connect_control_lost<F: Fn(&Self) + Send + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_control_lost<F: Fn(&Self) + Send + 'static>( &self, f: F ) -> SignalHandlerId
Signal that the control of the device is lost.
This signal may be emited from a thread different than the main one, so please take care to shared data access from the callback.