1 /* 2 * Copyright (c) 2020 Hubert Miś 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 /** 8 * @file 9 * @brief FT8XX serial driver API 10 */ 11 12 #ifndef ZEPHYR_DRIVERS_DISPLAY_FT8XX_FT8XX_DRV_H_ 13 #define ZEPHYR_DRIVERS_DISPLAY_FT8XX_FT8XX_DRV_H_ 14 15 #include <stdint.h> 16 17 #include <zephyr/drivers/gpio.h> 18 #include <zephyr/device.h> 19 20 #ifdef __cplusplus 21 extern "C" { 22 #endif 23 24 int ft8xx_drv_init(const struct device *dev); 25 int ft8xx_drv_read(const struct device *dev, uint32_t address, uint8_t *data, unsigned int length); 26 int ft8xx_drv_write(const struct device *dev, uint32_t address, const uint8_t *data, 27 unsigned int length); 28 int ft8xx_drv_command(const struct device *dev, uint8_t command); 29 30 extern void ft8xx_drv_irq_triggered(const struct device *dev, 31 struct gpio_callback *cb, uint32_t pins); 32 33 #ifdef __cplusplus 34 } 35 #endif 36 37 #endif /* ZEPHYR_DRIVERS_DISPLAY_FT8XX_FT8XX_DRV_H_ */ 38