SystemAgent/include/impl/user_st7789_impl.h

25 lines
753 B
C
Raw Normal View History

2021-03-20 17:23:19 +00:00
#ifndef __USER_ST7789_IMPL_H
#define __USER_ST7789_IMPL_H
#include "drivers/user_gpio_driver.h"
#include "drivers/user_spi_driver.h"
2021-03-21 16:01:12 +00:00
#include "drivers/user_config_driver.h"
2021-03-20 17:23:19 +00:00
#include "st7789_lcd.h"
typedef struct {
user_spi_driver_t *spi_driver;
2021-03-20 17:30:05 +00:00
user_gpio_t *cs_gpio;
user_gpio_t *dc_gpio;
user_gpio_t *reset_gpio;
2021-03-20 17:23:19 +00:00
} user_st7789_impl_t;
2021-03-21 16:01:12 +00:00
int user_st7789_impl_init(void *handle);
void user_st7789_impl_deinit(void *handle);
2021-03-20 17:23:19 +00:00
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