LCD-ESP32-Driver 1.0
Project includes component for controlling LCD displays. Currently supports only one LCD controller - SSD1283A but it may change in the future.
Loading...
Searching...
No Matches
lcd_spi.h
Go to the documentation of this file.
1/*
2 * MIT License
3 *
4 * Copyright (c) 2022 Damian Úlusarczyk
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
7 * and associated documentation files (the "Software"), to deal in the Software without restriction,
8 * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
9 * and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
10 * subject to the following conditions:
11 *
12 * The above copyright notice and this permission notice shall be included in all copies or substantial
13 * portions of the Software.
14 *
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
16 * TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
18 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19 *
20 */
27#ifndef LCD_SPI_H
28#define LCD_SPI_H
29
30#include "driver/spi_master.h"
31
32#include "lcd_low.h"
33
34typedef struct LCD_spi_t LCD_spi_t;
36typedef struct LCD_spi_t * LCD_spi_handle_t;
37
43{
45 spi_device_handle_t spi;
46 int dcGpio;
48};
49
56
57#endif /* LCD_SPI_H */
Contains all structures required for proper communication with LCD display that uses different contro...
LCD_com_handle_t lcd_spi__GetCom(void)
Returns handle for interface implementation of SPI communication with LCD display.
Definition: lcd_spi.c:64
struct LCD_spi_t * LCD_spi_handle_t
Definition: lcd_spi.h:36
Structure containing function interface for low-level communication with specific LCD controller (som...
Definition: lcd_low.h:55
Derived structure describing characteristics of LCD display that uses SPI protocol for communication.
Definition: lcd_spi.h:43
LCD_t base
Definition: lcd_spi.h:44
int dcGpio
Definition: lcd_spi.h:46
int resetGpio
Definition: lcd_spi.h:47
spi_device_handle_t spi
Definition: lcd_spi.h:45
Base structure describing characteristics of LCD display and its driver.
Definition: lcd_low.h:100