zephyr/drivers/misc/ft8xx/ft8xx_drv.h
Gerard Marull-Paretas fb60aab245 drivers: migrate includes to <zephyr/...>
In order to bring consistency in-tree, migrate all drivers to the new
prefix <zephyr/...>. Note that the conversion has been scripted, refer
to #45388 for more details.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-05-06 19:58:21 +02:00

37 lines
772 B
C

/*
* Copyright (c) 2020 Hubert Miś
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @file
* @brief FT8XX serial driver API
*/
#ifndef ZEPHYR_DRIVERS_DISPLAY_FT8XX_FT8XX_DRV_H_
#define ZEPHYR_DRIVERS_DISPLAY_FT8XX_FT8XX_DRV_H_
#include <stdint.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/device.h>
#ifdef __cplusplus
extern "C" {
#endif
int ft8xx_drv_init(void);
int ft8xx_drv_read(uint32_t address, uint8_t *data, unsigned int length);
int ft8xx_drv_write(uint32_t address, const uint8_t *data, unsigned int length);
int ft8xx_drv_command(uint8_t command);
extern void ft8xx_drv_irq_triggered(const struct device *dev,
struct gpio_callback *cb, uint32_t pins);
#ifdef __cplusplus
}
#endif
#endif /* ZEPHYR_DRIVERS_DISPLAY_FT8XX_FT8XX_DRV_H_ */