embassy-usb

Crates

git

Versions

default

Flavors

Skip to main content

ProcessingControls

Struct ProcessingControls 

Source
pub struct ProcessingControls {
    pub backlight_compensation: Option<ControlRange<u16>>,
    pub brightness: Option<ControlRange<i16>>,
    pub contrast: Option<ControlRange<u16>>,
    pub gain: Option<ControlRange<u16>>,
    pub power_line_frequency: Option<u8>,
    pub hue: Option<ControlRange<i16>>,
    pub saturation: Option<ControlRange<u16>>,
    pub sharpness: Option<ControlRange<u16>>,
    pub gamma: Option<ControlRange<u16>>,
    pub white_balance_temp: Option<ControlRange<u16>>,
    pub white_balance_auto: Option<bool>,
    pub hue_auto: Option<bool>,
}
Expand description

Supported Processing Unit (VC_PROCESSING_UNIT) controls.

Fields§

§backlight_compensation: Option<ControlRange<u16>>

Backlight compensation (PU_BACKLIGHT_COMPENSATION_CONTROL).

§brightness: Option<ControlRange<i16>>

Brightness (PU_BRIGHTNESS_CONTROL).

§contrast: Option<ControlRange<u16>>

Contrast (PU_CONTRAST_CONTROL).

§gain: Option<ControlRange<u16>>

Gain (PU_GAIN_CONTROL).

§power_line_frequency: Option<u8>

Power line frequency anti-flicker default (0 = disabled, 1 = 50 Hz, 2 = 60 Hz, 3 = Auto).

§hue: Option<ControlRange<i16>>

Hue (PU_HUE_CONTROL).

§saturation: Option<ControlRange<u16>>

Saturation (PU_SATURATION_CONTROL).

§sharpness: Option<ControlRange<u16>>

Sharpness (PU_SHARPNESS_CONTROL).

§gamma: Option<ControlRange<u16>>

Gamma (PU_GAMMA_CONTROL).

§white_balance_temp: Option<ControlRange<u16>>

White balance color temperature in Kelvin (PU_WHITE_BALANCE_TEMPERATURE_CONTROL).

§white_balance_auto: Option<bool>

Auto white balance temperature default (PU_WHITE_BALANCE_TEMPERATURE_AUTO_CONTROL).

§hue_auto: Option<bool>

Auto hue default (PU_HUE_AUTO_CONTROL).

Implementations§

Source§

impl ProcessingControls

Source

pub const fn none() -> Self

No Processing Unit controls (omits the VC_PROCESSING_UNIT descriptor).

Trait Implementations§

Source§

impl Clone for ProcessingControls

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 ProcessingControls

Source§

impl Debug for ProcessingControls

Source§

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

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

impl Default for ProcessingControls

Source§

fn default() -> Self

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

impl Format for ProcessingControls

Source§

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

Writes the defmt representation of self to fmt.

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.