lcd_params_t Struct Reference

Device initialization parameters. More...

Detailed Description

Device initialization parameters.

Note
The device driver can be used simultaneously for displays with SPI serial interface and parallel MCU 8080 8-/16-bit interfaces if the modules lcd_spi and lcd_parallel or lcd_parallel_16bit are enabled at the same time. In this case the interface parameters for the SPI serial interface and the MCU 8080 parallel 8-/16-bit interfaces are defined. lcd_params_t::spi must then be set to SPI_UNDEF for displays that use the MCU-8080-parallel-8-/16-bit interface, i.e. lcd_params_t::spi is then used to detect the interface mode.

Definition at line 113 of file lcd.h.

#include <lcd.h>

Data Fields

spi_t spi
 SPI device that the display is connected to.
 
spi_clk_t spi_clk
 SPI clock speed to use.
 
spi_mode_t spi_mode
 SPI mode.
 
lcd_if_mode_t mode
 LCD driver interface mode.
 
gpio_t wrx_pin
 pin connected to the WRITE ENABLE line
 
gpio_t rdx_pin
 pin connected to the READ ENABLE line
 
gpio_t d0_pin
 pin connected to the D0 line
 
gpio_t d1_pin
 pin connected to the D1 line
 
gpio_t d2_pin
 pin connected to the D2 line
 
gpio_t d3_pin
 pin connected to the D3 line
 
gpio_t d4_pin
 pin connected to the D4 line
 
gpio_t d5_pin
 pin connected to the D5 line
 
gpio_t d6_pin
 pin connected to the D6 line
 
gpio_t d7_pin
 pin connected to the D7 line
 
gpio_t d8_pin
 pin connected to the D8 line
 
gpio_t d9_pin
 pin connected to the D9 line
 
gpio_t d10_pin
 pin connected to the D10 line
 
gpio_t d11_pin
 pin connected to the D11 line
 
gpio_t d12_pin
 pin connected to the D12 line
 
gpio_t d13_pin
 pin connected to the D13 line
 
gpio_t d14_pin
 pin connected to the D14 line
 
gpio_t d15_pin
 pin connected to the D15 line
 
gpio_t cs_pin
 pin connected to the CHIP SELECT line
 
gpio_t dcx_pin
 pin connected to the DC line
 
gpio_t rst_pin
 pin connected to the RESET line
 
bool rgb
 True when display is connected in RGB mode
False when display is connected in BGR mode.
 
bool inverted
 Display works in inverted color mode.
 
uint16_t lines
 Number of lines, from 16 to the number of lines supported by the driver IC in 8 line steps.
 
uint16_t rgb_channels
 Display rgb channels.
 
uint8_t rotation
 Display rotation mode.
 
uint8_t offset_x
 LCD offset to apply on x axis.
 
uint8_t offset_y
 LCD offset to apply on y axis.
 
uint8_t cntrl
 controller variant used, if the controller- specific driver supports multiple controller variants
 

The documentation for this struct was generated from the following file: