embassy-stm32

Crates

git

Versions

stm32h757xi-cm7

Flavors

DsiColor

Enum DsiColor 

Source
#[repr(u8)]
pub enum DsiColor { Rgb565Config1 = 0, Rgb565Config2 = 1, Rgb565Config3 = 2, Rgb666Config1 = 3, Rgb666Config2 = 4, Rgb888 = 5, }
Expand description

DSI Color Mode.

The DSI wrapper LTDC interface supports different color encodings for RGB565 and RGB666.

See RM0339 Table 281

Variants§

§

Rgb565Config1 = 0

RGB565 Config 1

D[0..5] = B[0..5] D[5..11] = G[0..6] D[11..16] = B[0..5]

§

Rgb565Config2 = 1

RGB565 Config 2

D[0..5] = B[0..5] D[8..14] = G[0..6] D[16..21] = B[0..5]

§

Rgb565Config3 = 2

RGB565 Config 2

D[1..6] = B[0..5] D[8..14] = G[0..6] D[17..22] = B[0..5]

§

Rgb666Config1 = 3

RGB666 Config 1

D[0..6] = B[0..6] D[6..12] = G[0..6] D[12..18] = B[0..6]

§

Rgb666Config2 = 4

RGB666 Config 2

D[0..6] = B[0..6] D[8..14] = G[0..6] D[16..22] = B[0..6]

§

Rgb888 = 5

RGB888

D[0..9] = B[0..8] D[9..16] = G[0..8] D[16..24] = B[0..8]

Trait Implementations§

Source§

impl Clone for DsiColor

Source§

fn clone(&self) -> DsiColor

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 Copy for DsiColor

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 = 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.