embassy-usb

Crates

git

Versions

default

Flavors

Skip to main content

ControlValues

Struct ControlValues 

Source
pub struct ControlValues {
Show 17 fields pub backlight_compensation: u16, pub brightness: i16, pub contrast: u16, pub gain: u16, pub power_line_frequency: u8, pub hue: i16, pub saturation: u16, pub sharpness: u16, pub gamma: u16, pub white_balance_temp: u16, pub white_balance_auto: bool, pub hue_auto: bool, pub ae_mode: u8, pub exposure_time_abs: u32, pub focus_abs: u16, pub focus_auto: bool, pub zoom_abs: u16,
}
Expand description

Current values of all VideoControl Processing Unit and Camera Terminal controls.

Fields§

§backlight_compensation: u16

Backlight compensation.

§brightness: i16

Brightness.

§contrast: u16

Contrast.

§gain: u16

Gain.

§power_line_frequency: u8

Power line frequency (0..=3).

§hue: i16

Hue.

§saturation: u16

Saturation.

§sharpness: u16

Sharpness.

§gamma: u16

Gamma.

§white_balance_temp: u16

White balance temperature in Kelvin.

§white_balance_auto: bool

Auto white balance enabled.

§hue_auto: bool

Auto hue enabled.

§ae_mode: u8

Auto-exposure mode bitmap.

§exposure_time_abs: u32

Absolute exposure time in 100 µs units.

§focus_abs: u16

Absolute focus position.

§focus_auto: bool

Auto-focus enabled.

§zoom_abs: u16

Absolute zoom position.

Trait Implementations§

Source§

impl Clone for ControlValues

Source§

fn clone(&self) -> Self

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 ControlValues

Source§

impl Debug for ControlValues

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Default for ControlValues

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for ControlValues

Source§

impl Format for ControlValues

Source§

fn format(&self, f: Formatter<'_>)

Writes the defmt representation of self to fmt.
Source§

impl PartialEq for ControlValues

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ControlValues

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.