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(void); 25 int ft8xx_drv_read(uint32_t address, uint8_t *data, unsigned int length); 26 int ft8xx_drv_write(uint32_t address, const uint8_t *data, unsigned int length); 27 int ft8xx_drv_command(uint8_t command); 28 29 extern void ft8xx_drv_irq_triggered(const struct device *dev, 30 struct gpio_callback *cb, uint32_t pins); 31 32 #ifdef __cplusplus 33 } 34 #endif 35 36 #endif /* ZEPHYR_DRIVERS_DISPLAY_FT8XX_FT8XX_DRV_H_ */ 37