Trait clerk::Delay
[−]
[src]
pub trait Delay { const ADDRESS_SETUP_TIME: u16; const ENABLE_PULSE_WIDTH: u16; const DATA_HOLD_TIME: u16; const COMMAND_EXECUTION_TIME: u16; fn delay_ns(ns: u16); fn delay_us(us: u16) { ... } }
The Delay
trait is used to adapt the timing to the specific hardware and must be implemented
by the libary user.
Associated Constants
const ADDRESS_SETUP_TIME: u16
ADDRESS_SETUP_TIME: u16 = 60
The time (ns) between register select (RS) and read/write (R/W) to enable signal (E).
const ENABLE_PULSE_WIDTH: u16
ENABLE_PULSE_WIDTH: u16 = 450
The duration (ns) the enable signal is set to High
.
const DATA_HOLD_TIME: u16
DATA_HOLD_TIME: u16 = 20
The duration (ns) the data pins will be set after the enable signal was dropped.
const COMMAND_EXECUTION_TIME: u16
COMMAND_EXECUTION_TIME: u16 = 37
The maximum execution time of instruction commands.
Required Methods
fn delay_ns(ns: u16)
Wait for the given amount of nanoseconds.
Provided Methods
fn delay_us(us: u16)
Wait for the given amount of microseconds.