pub struct Config { /* private fields */ }
unstable
only.Expand description
Configuration settings for the I8080 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_setup_cycles(self, setup_cycles: usize) -> Self
pub fn with_setup_cycles(self, setup_cycles: usize) -> Self
Assign the given value to the setup_cycles
field.
Sourcepub fn setup_cycles(&self) -> usize
pub fn setup_cycles(&self) -> usize
Setup cycles expected, must be at least 1. (6 bits)
Sourcepub fn with_hold_cycles(self, hold_cycles: usize) -> Self
pub fn with_hold_cycles(self, hold_cycles: usize) -> Self
Assign the given value to the hold_cycles
field.
Sourcepub fn hold_cycles(&self) -> usize
pub fn hold_cycles(&self) -> usize
Hold cycles expected, must be at least 1. (13 bits)
Sourcepub fn with_cd_idle_edge(self, cd_idle_edge: bool) -> Self
pub fn with_cd_idle_edge(self, cd_idle_edge: bool) -> Self
Assign the given value to the cd_idle_edge
field.
Sourcepub fn cd_idle_edge(&self) -> bool
pub fn cd_idle_edge(&self) -> bool
The default value of LCD_CD.
Sourcepub fn with_cd_cmd_edge(self, cd_cmd_edge: bool) -> Self
pub fn with_cd_cmd_edge(self, cd_cmd_edge: bool) -> Self
Assign the given value to the cd_cmd_edge
field.
Sourcepub fn cd_cmd_edge(&self) -> bool
pub fn cd_cmd_edge(&self) -> bool
The value of LCD_CD during CMD phase.
Sourcepub fn with_cd_dummy_edge(self, cd_dummy_edge: bool) -> Self
pub fn with_cd_dummy_edge(self, cd_dummy_edge: bool) -> Self
Assign the given value to the cd_dummy_edge
field.
Sourcepub fn cd_dummy_edge(&self) -> bool
pub fn cd_dummy_edge(&self) -> bool
The value of LCD_CD during dummy phase.
Sourcepub fn with_cd_data_edge(self, cd_data_edge: bool) -> Self
pub fn with_cd_data_edge(self, cd_data_edge: bool) -> Self
Assign the given value to the cd_data_edge
field.
Sourcepub fn cd_data_edge(&self) -> bool
pub fn cd_data_edge(&self) -> bool
The value of LCD_CD during data phase.
Sourcepub fn with_cd_mode(self, cd_mode: DelayMode) -> Self
pub fn with_cd_mode(self, cd_mode: DelayMode) -> Self
Assign the given value to the cd_mode
field.
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
)