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

ADDRESS_SETUP_TIME: u16 = 60

The time (ns) between register select (RS) and read/write (R/W) to enable signal (E).

ENABLE_PULSE_WIDTH: u16 = 450

The duration (ns) the enable signal is set to High.

DATA_HOLD_TIME: u16 = 20

The duration (ns) the data pins will be set after the enable signal was dropped.

COMMAND_EXECUTION_TIME: u16 = 37

The maximum execution time of instruction commands.

Required Methods

Wait for the given amount of nanoseconds.

Provided Methods

Wait for the given amount of microseconds.

Implementors