Device initialization parameters.
More...
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>
|
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
|
|
◆ cntrl
uint8_t lcd_params_t::cntrl |
controller variant used, if the controller- specific driver supports multiple controller variants
Definition at line 160 of file lcd.h.
◆ cs_pin
gpio_t lcd_params_t::cs_pin |
pin connected to the CHIP SELECT line
Definition at line 146 of file lcd.h.
◆ d0_pin
gpio_t lcd_params_t::d0_pin |
pin connected to the D0 line
Definition at line 125 of file lcd.h.
◆ d10_pin
gpio_t lcd_params_t::d10_pin |
pin connected to the D10 line
Definition at line 137 of file lcd.h.
◆ d11_pin
gpio_t lcd_params_t::d11_pin |
pin connected to the D11 line
Definition at line 138 of file lcd.h.
◆ d12_pin
gpio_t lcd_params_t::d12_pin |
pin connected to the D12 line
Definition at line 139 of file lcd.h.
◆ d13_pin
gpio_t lcd_params_t::d13_pin |
pin connected to the D13 line
Definition at line 140 of file lcd.h.
◆ d14_pin
gpio_t lcd_params_t::d14_pin |
pin connected to the D14 line
Definition at line 141 of file lcd.h.
◆ d15_pin
gpio_t lcd_params_t::d15_pin |
pin connected to the D15 line
Definition at line 142 of file lcd.h.
◆ d1_pin
gpio_t lcd_params_t::d1_pin |
pin connected to the D1 line
Definition at line 126 of file lcd.h.
◆ d2_pin
gpio_t lcd_params_t::d2_pin |
pin connected to the D2 line
Definition at line 127 of file lcd.h.
◆ d3_pin
gpio_t lcd_params_t::d3_pin |
pin connected to the D3 line
Definition at line 128 of file lcd.h.
◆ d4_pin
gpio_t lcd_params_t::d4_pin |
pin connected to the D4 line
Definition at line 129 of file lcd.h.
◆ d5_pin
gpio_t lcd_params_t::d5_pin |
pin connected to the D5 line
Definition at line 130 of file lcd.h.
◆ d6_pin
gpio_t lcd_params_t::d6_pin |
pin connected to the D6 line
Definition at line 131 of file lcd.h.
◆ d7_pin
gpio_t lcd_params_t::d7_pin |
pin connected to the D7 line
Definition at line 132 of file lcd.h.
◆ d8_pin
gpio_t lcd_params_t::d8_pin |
pin connected to the D8 line
Definition at line 135 of file lcd.h.
◆ d9_pin
gpio_t lcd_params_t::d9_pin |
pin connected to the D9 line
Definition at line 136 of file lcd.h.
◆ dcx_pin
gpio_t lcd_params_t::dcx_pin |
pin connected to the DC line
Definition at line 147 of file lcd.h.
◆ inverted
bool lcd_params_t::inverted |
Display works in inverted color mode.
Definition at line 151 of file lcd.h.
◆ lines
uint16_t lcd_params_t::lines |
Number of lines, from 16 to the number of lines supported by the driver IC in 8 line steps.
Definition at line 152 of file lcd.h.
◆ mode
LCD driver interface mode.
Definition at line 121 of file lcd.h.
◆ offset_x
uint8_t lcd_params_t::offset_x |
LCD offset to apply on x axis.
Definition at line 157 of file lcd.h.
◆ offset_y
uint8_t lcd_params_t::offset_y |
LCD offset to apply on y axis.
Definition at line 158 of file lcd.h.
◆ rdx_pin
gpio_t lcd_params_t::rdx_pin |
pin connected to the READ ENABLE line
Definition at line 124 of file lcd.h.
◆ rgb
True when display is connected in RGB mode
False when display is connected in BGR mode.
Definition at line 149 of file lcd.h.
◆ rgb_channels
uint16_t lcd_params_t::rgb_channels |
Display rgb channels.
Definition at line 155 of file lcd.h.
◆ rotation
uint8_t lcd_params_t::rotation |
Display rotation mode.
Definition at line 156 of file lcd.h.
◆ rst_pin
gpio_t lcd_params_t::rst_pin |
pin connected to the RESET line
Definition at line 148 of file lcd.h.
◆ spi
SPI device that the display is connected to.
Definition at line 116 of file lcd.h.
◆ spi_clk
SPI clock speed to use.
Definition at line 117 of file lcd.h.
◆ spi_mode
SPI mode.
Definition at line 118 of file lcd.h.
◆ wrx_pin
gpio_t lcd_params_t::wrx_pin |
pin connected to the WRITE ENABLE line
Definition at line 123 of file lcd.h.
The documentation for this struct was generated from the following file: