22 lines
696 B
C
22 lines
696 B
C
|
#ifndef __USER_ST7789_IMPL_H
|
||
|
#define __USER_ST7789_IMPL_H
|
||
|
|
||
|
#include "drivers/user_gpio_driver.h"
|
||
|
#include "drivers/user_spi_driver.h"
|
||
|
#include "st7789_lcd.h"
|
||
|
|
||
|
typedef struct {
|
||
|
user_spi_driver_t *spi_driver;
|
||
|
user_gpio_t cs_gpio;
|
||
|
user_gpio_t dc_gpio;
|
||
|
user_gpio_t reset_gpio;
|
||
|
} user_st7789_impl_t;
|
||
|
|
||
|
int user_st7789_impl_init(void *handle, user_spi_driver_t *spi_driver);
|
||
|
st7789_ret_t user_st7789_impl_write_cmd(void *handle, uint8_t *cmd,
|
||
|
uint8_t len);
|
||
|
st7789_ret_t user_st7789_impl_write_data(void *handle,
|
||
|
uint8_t *data, uint32_t len);
|
||
|
st7789_ret_t user_st7789_impl_reset(void *handle);
|
||
|
|
||
|
#endif
|