Loading...
Searching...
No Matches
gc9a01_params.h File Reference

Default configuration. More...

Detailed Description

Default configuration.

Author
Koen Zandberg koen@.nosp@m.berg.nosp@m.zand..nosp@m.net
Yahia Abdella yahia.nosp@m..abd.nosp@m.ella@.nosp@m.tuhh.nosp@m..de

Definition in file gc9a01_params.h.

#include "board.h"
#include "lcd.h"
+ Include dependency graph for gc9a01_params.h:

Go to the source code of this file.

Macros

#define GC9A01_PARAM_SCREEN_IDS   0
 Default screen identifiers.
 
#define GC9A01_NUMOF   ARRAY_SIZE(gc9a01_params)
 Define the number of configured displays.
 
#define GC9A01_SCREEN_NUMOF   ARRAY_SIZE(gc9a01_screen_ids)
 Define the number screens this display driver is attached to.
 

Variables

static const lcd_params_t gc9a01_params []
 Configure GC9A01.
 
static const uint8_t gc9a01_screen_ids []
 Configure screen identifiers.
 

Set default configuration parameters for the GC9A01

#define GC9A01_PARAM_SPI   SPI_DEV(0)
 SPI device.
 
#define GC9A01_PARAM_SPI_CLK   SPI_CLK_5MHZ
 SPI clock frequency.
 
#define GC9A01_PARAM_CS   GPIO_PIN(2, 2)
 Chip select pin.
 
#define GC9A01_PARAM_DCX   GPIO_PIN(3, 13)
 DCX pin.
 
#define GC9A01_PARAM_RST   GPIO_UNDEF
 Reset pin.
 
#define GC9A01_PARAM_SPI_MODE   SPI_MODE_0
 SPI mode.
 
#define GC9A01_PARAM_RGB   0
 RGB mode enable.
 
#define GC9A01_PARAM_INVERTED   0
 Inverted mode enable.
 
#define GC9A01_PARAM_NUM_LINES   240U
 Number of lines.
 
#define GC9A01_PARAM_RGB_CHANNELS   240U
 Number of RGB channels.
 
#define GC9A01_PARAM_ROTATION   GC9A01_ROTATION_VERT
 Rotation mode.
 
#define GC9A01_PARAM_OFFSET_X   0
 Horizontal offset.
 
#define GC9A01_PARAM_OFFSET_Y   0
 Vertical offset.
 
#define GC9A01_PARAM_IF_SPI
 Default interface params if SPI serial interface is enabled.
 
#define GC9A01_PARAM_IF_PAR
 Default interface params if MCU 8080 8-bit parallel interface is enabled.
 
#define GC9A01_PARAM_IF_PAR_16BIT
 Additional default interface params if MCU 8080 16-bit parallel interface is enabled.
 
#define GC9A01_PARAM_IF_MODE   .mode = LCD_IF_PARALLEL_16BIT,
 Interface mode is MCU 8080 16-bit parallel.
 
#define GC9A01_PARAMS
 Default params.
 

Macro Definition Documentation

◆ GC9A01_NUMOF

#define GC9A01_NUMOF   ARRAY_SIZE(gc9a01_params)

Define the number of configured displays.

Definition at line 191 of file gc9a01_params.h.

◆ GC9A01_PARAM_CS

#define GC9A01_PARAM_CS   GPIO_PIN(2, 2)

Chip select pin.

Definition at line 42 of file gc9a01_params.h.

◆ GC9A01_PARAM_DCX

#define GC9A01_PARAM_DCX   GPIO_PIN(3, 13)

DCX pin.

Definition at line 46 of file gc9a01_params.h.

◆ GC9A01_PARAM_IF_MODE

#define GC9A01_PARAM_IF_MODE   .mode = LCD_IF_PARALLEL_16BIT,

Interface mode is MCU 8080 16-bit parallel.

Definition at line 126 of file gc9a01_params.h.

◆ GC9A01_PARAM_IF_PAR

#define GC9A01_PARAM_IF_PAR
Value:
.d0_pin = GC9A01_PARAM_D0, \
.d1_pin = GC9A01_PARAM_D1, \
.d2_pin = GC9A01_PARAM_D2, \
.d3_pin = GC9A01_PARAM_D3, \
.d4_pin = GC9A01_PARAM_D4, \
.d5_pin = GC9A01_PARAM_D5, \
.d6_pin = GC9A01_PARAM_D6, \
.d7_pin = GC9A01_PARAM_D7, \
.wrx_pin = GC9A01_PARAM_WRX, \
.rdx_pin = GC9A01_PARAM_RDX,

Default interface params if MCU 8080 8-bit parallel interface is enabled.

Definition at line 96 of file gc9a01_params.h.

◆ GC9A01_PARAM_IF_PAR_16BIT

#define GC9A01_PARAM_IF_PAR_16BIT
Value:
.d8_pin = GC9A01_PARAM_D8, \
.d9_pin = GC9A01_PARAM_D9, \
.d10_pin = GC9A01_PARAM_D10, \
.d11_pin = GC9A01_PARAM_D11, \
.d12_pin = GC9A01_PARAM_D12, \
.d13_pin = GC9A01_PARAM_D13, \
.d14_pin = GC9A01_PARAM_D14, \
.d15_pin = GC9A01_PARAM_D15,

Additional default interface params if MCU 8080 16-bit parallel interface is enabled.

Definition at line 112 of file gc9a01_params.h.

◆ GC9A01_PARAM_IF_SPI

#define GC9A01_PARAM_IF_SPI
Value:
.spi = GC9A01_PARAM_SPI, \
.spi_clk = GC9A01_PARAM_SPI_CLK, \
.spi_mode = GC9A01_PARAM_SPI_MODE,
#define GC9A01_PARAM_SPI_CLK
SPI clock frequency.
#define GC9A01_PARAM_SPI
SPI device.
#define GC9A01_PARAM_SPI_MODE
SPI mode.

Default interface params if SPI serial interface is enabled.

Definition at line 87 of file gc9a01_params.h.

◆ GC9A01_PARAM_INVERTED

#define GC9A01_PARAM_INVERTED   0

Inverted mode enable.

Definition at line 62 of file gc9a01_params.h.

◆ GC9A01_PARAM_NUM_LINES

#define GC9A01_PARAM_NUM_LINES   240U

Number of lines.

Definition at line 66 of file gc9a01_params.h.

◆ GC9A01_PARAM_OFFSET_X

#define GC9A01_PARAM_OFFSET_X   0

Horizontal offset.

Definition at line 78 of file gc9a01_params.h.

◆ GC9A01_PARAM_OFFSET_Y

#define GC9A01_PARAM_OFFSET_Y   0

Vertical offset.

Definition at line 82 of file gc9a01_params.h.

◆ GC9A01_PARAM_RGB

#define GC9A01_PARAM_RGB   0

RGB mode enable.

Definition at line 58 of file gc9a01_params.h.

◆ GC9A01_PARAM_RGB_CHANNELS

#define GC9A01_PARAM_RGB_CHANNELS   240U

Number of RGB channels.

Definition at line 70 of file gc9a01_params.h.

◆ GC9A01_PARAM_ROTATION

#define GC9A01_PARAM_ROTATION   GC9A01_ROTATION_VERT

Rotation mode.

Definition at line 74 of file gc9a01_params.h.

◆ GC9A01_PARAM_RST

#define GC9A01_PARAM_RST   GPIO_UNDEF

Reset pin.

Definition at line 50 of file gc9a01_params.h.

◆ GC9A01_PARAM_SCREEN_IDS

#define GC9A01_PARAM_SCREEN_IDS   0

Default screen identifiers.

Definition at line 177 of file gc9a01_params.h.

◆ GC9A01_PARAM_SPI

#define GC9A01_PARAM_SPI   SPI_DEV(0)

SPI device.

Definition at line 34 of file gc9a01_params.h.

◆ GC9A01_PARAM_SPI_CLK

#define GC9A01_PARAM_SPI_CLK   SPI_CLK_5MHZ

SPI clock frequency.

Definition at line 38 of file gc9a01_params.h.

◆ GC9A01_PARAM_SPI_MODE

#define GC9A01_PARAM_SPI_MODE   SPI_MODE_0

SPI mode.

Definition at line 54 of file gc9a01_params.h.

◆ GC9A01_PARAMS

#define GC9A01_PARAMS
Value:
{ GC9A01_PARAM_IF_MODE \
GC9A01_PARAM_IF_SPI \
GC9A01_PARAM_IF_PAR \
GC9A01_PARAM_IF_PAR_16BIT \
.cs_pin = GC9A01_PARAM_CS, \
.dcx_pin = GC9A01_PARAM_DCX, \
.rst_pin = GC9A01_PARAM_RST, \
.rgb = GC9A01_PARAM_RGB, \
.inverted = GC9A01_PARAM_INVERTED, \
.rgb_channels = GC9A01_PARAM_RGB_CHANNELS, \
.rotation = GC9A01_PARAM_ROTATION, \
.offset_x = GC9A01_PARAM_OFFSET_X, \
.offset_y = GC9A01_PARAM_OFFSET_Y }
#define GC9A01_PARAM_OFFSET_Y
Vertical offset.
#define GC9A01_PARAM_INVERTED
Inverted mode enable.
#define GC9A01_PARAM_NUM_LINES
Number of lines.
#define GC9A01_PARAM_CS
Chip select pin.
#define GC9A01_PARAM_RGB
RGB mode enable.
#define GC9A01_PARAM_ROTATION
Rotation mode.
#define GC9A01_PARAM_RGB_CHANNELS
Number of RGB channels.
#define GC9A01_PARAM_OFFSET_X
Horizontal offset.
#define GC9A01_PARAM_RST
Reset pin.
#define GC9A01_PARAM_DCX
DCX pin.

Default params.

Note
The default parameter set defined here can only be used if a single GC9A01 display and only one interface mode is used. If multiple GC9A01 displays are used or if multiple interface modes are enabled by the modules lcd_spi, lcd_parallel and lcd_parallel_16bit, a user defined parameter set GC9A01_PARAMS has to be defined. In the latter case lcd_params_t::spi must then be set to SPI_UNDEF for displays with MCU 8080 8-/16-bit parallel interfaces. Configuration parameter set

Definition at line 148 of file gc9a01_params.h.

◆ GC9A01_SCREEN_NUMOF

#define GC9A01_SCREEN_NUMOF   ARRAY_SIZE(gc9a01_screen_ids)

Define the number screens this display driver is attached to.

Definition at line 195 of file gc9a01_params.h.

Variable Documentation

◆ gc9a01_params

const lcd_params_t gc9a01_params[]
static
Initial value:
=
{
}
#define GC9A01_PARAMS
Default params.

Configure GC9A01.

Definition at line 168 of file gc9a01_params.h.

◆ gc9a01_screen_ids

const uint8_t gc9a01_screen_ids[]
static
Initial value:
=
{
}
#define GC9A01_PARAM_SCREEN_IDS
Default screen identifiers.

Configure screen identifiers.

Definition at line 183 of file gc9a01_params.h.