#[non_exhaustive]pub struct Config { /* private fields */ }unstable only.Expand description
Configuration settings for the RGB/DPI interface.
Implementations§
Source§impl Config
impl Config
Sourcepub fn with_clock_mode(self, clock_mode: ClockMode) -> Self
pub fn with_clock_mode(self, clock_mode: ClockMode) -> Self
Assign the given value to the clock_mode field.
Sourcepub fn clock_mode(&self) -> ClockMode
pub fn clock_mode(&self) -> ClockMode
Specifies the clock mode, including polarity and phase settings.
Sourcepub fn with_frequency(self, frequency: Rate) -> Self
pub fn with_frequency(self, frequency: Rate) -> Self
Assign the given value to the frequency field.
Sourcepub fn with_format(self, format: Format) -> Self
pub fn with_format(self, format: Format) -> Self
Assign the given value to the format field.
Sourcepub fn with_timing(self, timing: FrameTiming) -> Self
pub fn with_timing(self, timing: FrameTiming) -> Self
Assign the given value to the timing field.
Sourcepub fn timing(&self) -> FrameTiming
pub fn timing(&self) -> FrameTiming
Timing settings for the peripheral.
Sourcepub fn with_vsync_idle_level(self, vsync_idle_level: Level) -> Self
pub fn with_vsync_idle_level(self, vsync_idle_level: Level) -> Self
Assign the given value to the vsync_idle_level field.
Sourcepub fn vsync_idle_level(&self) -> Level
pub fn vsync_idle_level(&self) -> Level
The vsync signal level in IDLE state.
Sourcepub fn with_hsync_idle_level(self, hsync_idle_level: Level) -> Self
pub fn with_hsync_idle_level(self, hsync_idle_level: Level) -> Self
Assign the given value to the hsync_idle_level field.
Sourcepub fn hsync_idle_level(&self) -> Level
pub fn hsync_idle_level(&self) -> Level
The hsync signal level in IDLE state.
Sourcepub fn with_de_idle_level(self, de_idle_level: Level) -> Self
pub fn with_de_idle_level(self, de_idle_level: Level) -> Self
Assign the given value to the de_idle_level field.
Sourcepub fn de_idle_level(&self) -> Level
pub fn de_idle_level(&self) -> Level
The de signal level in IDLE state.
Sourcepub fn with_hs_blank_en(self, hs_blank_en: bool) -> Self
pub fn with_hs_blank_en(self, hs_blank_en: bool) -> Self
Assign the given value to the hs_blank_en field.
Sourcepub fn hs_blank_en(&self) -> bool
pub fn hs_blank_en(&self) -> bool
If enabled, the hsync pulse will be sent out in vertical blanking lines. i.e. When no valid data is actually sent out. Otherwise, hysnc pulses will only be sent out in active region lines.
Sourcepub fn with_disable_black_region(self, disable_black_region: bool) -> Self
pub fn with_disable_black_region(self, disable_black_region: bool) -> Self
Assign the given value to the disable_black_region field.
Sourcepub fn disable_black_region(&self) -> bool
pub fn disable_black_region(&self) -> bool
Disables blank region when LCD sends data out.
Sourcepub fn with_de_mode(self, de_mode: DelayMode) -> Self
pub fn with_de_mode(self, de_mode: DelayMode) -> Self
Assign the given value to the de_mode field.
Sourcepub fn with_hsync_mode(self, hsync_mode: DelayMode) -> Self
pub fn with_hsync_mode(self, hsync_mode: DelayMode) -> Self
Assign the given value to the hsync_mode field.
Sourcepub fn hsync_mode(&self) -> DelayMode
pub fn hsync_mode(&self) -> DelayMode
The output LCD_HSYNC is delayed by module clock LCD_CLK.
Sourcepub fn with_vsync_mode(self, vsync_mode: DelayMode) -> Self
pub fn with_vsync_mode(self, vsync_mode: DelayMode) -> Self
Assign the given value to the vsync_mode field.
Sourcepub fn vsync_mode(&self) -> DelayMode
pub fn vsync_mode(&self) -> DelayMode
The output LCD_VSYNC is delayed by module clock LCD_CLK.
Sourcepub fn with_output_bit_mode(self, output_bit_mode: DelayMode) -> Self
pub fn with_output_bit_mode(self, output_bit_mode: DelayMode) -> Self
Assign the given value to the output_bit_mode field.
Sourcepub fn output_bit_mode(&self) -> DelayMode
pub fn output_bit_mode(&self) -> DelayMode
The output data bits are delayed by module clock LCD_CLK.
Trait Implementations§
impl Copy for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)