Skip to main content

DacPoint

Struct DacPoint 

Source
#[repr(C)]
pub struct DacPoint { pub control: u16, pub x: i16, pub y: i16, pub r: u16, pub g: u16, pub b: u16, pub i: u16, pub u1: u16, pub u2: u16, }
Expand description

Values are full-scale.

E.g. for all color channels, 65535 is full output while 0 is no output.

Fields§

§control: u16

A set of bit fields. The following fields are defined:

  • 15: Change point rate. If this bit is set and there are any values in the point rate change buffer a new rate is read out of the buffer and set as the current playback rate. If the buffer is empty, the point rate is not changed.

All other bits are reserved for future expansion to support extra TTL outputs, etc.

§x: i16

-32768 is the start along the x axis (left-most point). 32767 is the end along the x axis (right-most point).

§y: i16

-32768 is the start along the y axis (bottom-most point). 32767 is the end along the y axis (top-most point).

§r: u16

0 is no red. 65535 is full red.

§g: u16

0 is no green. 65535 is full green.

§b: u16

0 is no blue. 65535 is full blue.

§i: u16§u1: u16§u2: u16

Trait Implementations§

Source§

impl Clone for DacPoint

Source§

fn clone(&self) -> DacPoint

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 DacPoint

Source§

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

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

impl Hash for DacPoint

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 DacPoint

Source§

fn eq(&self, other: &DacPoint) -> 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 ReadFromBytes for DacPoint

Source§

fn read_from_bytes<R: ReadBytesExt>(reader: R) -> Result<Self>

Read the command from bytes.
Source§

impl SizeBytes for DacPoint

Source§

impl WriteToBytes for DacPoint

Source§

fn write_to_bytes<W: WriteBytesExt>(&self, writer: W) -> Result<()>

Write the command to bytes.
Source§

impl Copy for DacPoint

Source§

impl Eq for DacPoint

Source§

impl StructuralPartialEq for DacPoint

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.