Skip to main content

ConfigKind

Enum ConfigKind 

Source
pub enum ConfigKind {
Show 31 variants Exposure, Gain, HardwareBin, Temperature, WbR, WbG, WbB, Offset, AutoexpoMaxGain, AutoexpoMaxExposure, AutoexpoBrightness, GuideNorth, GuideSouth, GuideEast, GuideWest, Egain, CoolerPower, TargetTemp, Cooler, Heater, HeaterPower, FanPower, FlipNone, FlipHori, FlipVert, FlipBoth, FrameLimit, Hqi, UsbBandwidthLimit, PixelBinSum, MonoBin,
}

Variants§

§

Exposure

exposure time(unit: us), read-write

§

Gain

gain, read-write

§

HardwareBin

hardware bin, read-write

§

Temperature

camera temperature(uint: C), read-only

§

WbR

red pixels coefficient of white balance, read-write

§

WbG

green pixels coefficient of white balance, read-write

§

WbB

blue pixels coefficient of white balance, read-write

§

Offset

camera offset, read-write

§

AutoexpoMaxGain

maximum gain when auto-adjust, read-write

§

AutoexpoMaxExposure

maximum exposure when auto-adjust(uint: ms), read-write

§

AutoexpoBrightness

target brightness when auto-adjust, read-write

§

GuideNorth

ST4 guide north, generally,it’s DEC+ on the mount, read-write

§

GuideSouth

ST4 guide south, generally,it’s DEC- on the mount, read-write

§

GuideEast

ST4 guide east, generally,it’s RA+ on the mount, read-write

§

GuideWest

ST4 guide west, generally,it’s RA- on the mount, read-write

§

Egain

e/ADU, This value will change with gain, read-only

§

CoolerPower

cooler power percentage[0-100%](only cool camera), read-only

§

TargetTemp

camera target temperature(uint: C), read-write

§

Cooler

turn cooler(and fan) on or off, read-write

§

Heater

(deprecated)get state of lens heater(on or off), read-only

§

HeaterPower

lens heater power percentage[0-100%], read-write

§

FanPower

radiator fan power percentage[0-100%], read-write

§

FlipNone

no flip, Note: set this config(POASetConfig), the ‘confValue’ will be ignored, read-write

§

FlipHori

flip the image horizontally, Note: set this config(POASetConfig), the ‘confValue’ will be ignored, read-write

§

FlipVert

flip the image vertically, Note: set this config(POASetConfig), the ‘confValue’ will be ignored, read-write

§

FlipBoth

flip the image horizontally and vertically, Note: set this config(POASetConfig), the ‘confValue’ will be ignored, read-write

§

FrameLimit

Frame rate limit, the range:[0, 2000], 0 means no limit, read-write

§

Hqi

High Quality Image, for those without DDR camera(guide camera), if set POA_TRUE, this will reduce the waviness and stripe of the image,\n< but frame rate may go down, note: this config has no effect on those cameras that with DDR. read-write

§

UsbBandwidthLimit

USB bandwidth limit, read-write

§

PixelBinSum

take the sum of pixels after binning, POA_TRUE is sum and POA_FLASE is average, default is POA_FLASE, read-write

§

MonoBin

only for color camera, when set to POA_TRUE, pixel binning will use neighbour pixels and image after binning will lose the bayer pattern, read-write

Trait Implementations§

Source§

impl Clone for ConfigKind

Source§

fn clone(&self) -> ConfigKind

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for ConfigKind

Source§

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

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

impl From<_POAConfig> for ConfigKind

Source§

fn from(value: POAConfig) -> Self

Converts to this type from the input type.
Source§

impl Hash for ConfigKind

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for ConfigKind

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for ConfigKind

Source§

impl Eq for ConfigKind

Source§

impl StructuralPartialEq for ConfigKind

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.