pub struct Timing { /* private fields */ }
Expand description

Timing configuration for reading or writing

A Timing object can be created using Timing::default() or Default::default().

The default timing uses access mode C and the slowest possible timings, for maximum compatibility.

If the LCD controller and wiring allow, you can reduce the times to make transactions faster.

All time fields are in units of HCLK cycles.

Implementations

Maximum allowed value of the bus turnaround time

Minimum allowed value of the data phase time

Maximum allowed value of the address hold time

Maximum allowed value of the address hold time

Maximum allowed value of the address setup time

Sets the access mode

Sets the bus turnaround time, in units of HCLK cycles

This corresponds to the BUSTURN field of FSMC_BTR or FSMC_BWTR.

Panics

This function panics if bus_turnaround is greater than Timing::BUS_TURNAROUND_MAX.

Sets the data phase time, in units of HCLK cycles

This corresponds to the DATAST field of FSMC_BTR or FSMC_BWTR.

Panics

This function panics if data is less than Timing::DATA_MIN.

Sets the address hold phase time, in units of HCLK cycles

This corresponds to the ADDHLD field of FSMC_BTR or FSMC_BWTR.

Panics

This function panics if address_hold is less than Timing::ADDRESS_HOLD_MIN or greater than Timing::ADDRESS_HOLD_MAX.

Sets the address setup phase time, in units of HCLK cycles

This corresponds to the ADDSET field of FSMC_BTR or FSMC_BWTR.

Panics

This function panics if address_setup is greater than Timing::ADDRESS_SETUP_MAX.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns a conservative (slow) timing configuration with access mode C

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.