#[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§
Auto Trait Implementations§
impl Freeze for DsiColor
impl RefUnwindSafe for DsiColor
impl Send for DsiColor
impl Sync for DsiColor
impl Unpin for DsiColor
impl UnwindSafe for DsiColor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more