Register

Enum Register 

Source
#[repr(u8)]
pub enum Register {
Show 14 variants PowerControl = 0, Reset = 1, FrameRate = 2, InterruptControl = 3, Status = 4, StatusClear = 5, Average = 7, AverageData = 31, InterruptLevelHighLower = 8, InterruptLevelLowLower = 10, InterruptHysteresisLower = 12, ThermistorLower = 14, InterruptTableStart = 16, PixelTemperatureStart = 128,
}
Expand description

The registers used to access the Grid-EYE.

Variants§

§

PowerControl = 0

See PowerControlValue for details on values Read/write.

§

Reset = 1

See ResetValue for details on values. Write-only.

§

FrameRate = 2

See FrameRateValue for details on values. Read/write.

§

InterruptControl = 3

See InterruptControlValue for details on values. Read/write.

§

Status = 4

The status flags for the device. The flags will remain set until cleared by writing to [StatusClear]. Read-only.

§

StatusClear = 5

Clear one or both of the status flags for the device. Write-only.

§

Average = 7

Whether or not the pixel values should be overaged or not. Read/write.

§

AverageData = 31

A semi-documented register that is written to when changing the moving average mode. Write-only.

§

InterruptLevelHighLower = 8

The upper temperature limit for triggering an interrupt. This is in the pixel temperature format. Read/write.

§

InterruptLevelLowLower = 10

The lower temperature limit for triggering an interrupt. This is in the pixel temperature format. Read/write.

§

InterruptHysteresisLower = 12

The hysteresis limit for triggering an interrupt. The datasheet isn’t very clear as to how this value is used. This is in the pixel temperature format. Read/write.

§

ThermistorLower = 14

The sensor has an on-board thermistor useful for for calibrating the output of the camera. This is in the thermistor temperature format. Read-only.

§

InterruptTableStart = 16

The first register of the interrupt table. It continues up through 0x17 with each register representing a bitfield of whether or not that pixel in the image has triggered an interrupt. The first bit of the first register is pixel 1, with the rest of the pixels following in order from there (see identifying pixels). Read-only.

§

PixelTemperatureStart = 128

The lower bits of the temperature of pixel 1. The upper bits are in the register following this one, with the lower bits for pixel 2 after that and so on up through 0xFF. This is in the pixel temperature format.

Trait Implementations§

Source§

impl Clone for Register

Source§

fn clone(&self) -> Register

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 Register

Source§

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

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

impl From<Register> for u8

Source§

fn from(enum_value: Register) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for Register

Source§

fn eq(&self, other: &Register) -> 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 TryFrom<u8> for Register

Source§

type Error = TryFromPrimitiveError<Register>

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

fn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>

Performs the conversion.
Source§

impl TryFromPrimitive for Register

Source§

const NAME: &'static str = "Register"

Source§

type Primitive = u8

Source§

fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>

Source§

impl Copy for Register

Source§

impl StructuralPartialEq for Register

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.