|
Zephyr API Documentation 4.3.0-rc1
A Scalable Open Source RTOS
|
Main header file for FPGA driver API. More...
#include <errno.h>#include <zephyr/types.h>#include <zephyr/sys/util.h>#include <zephyr/device.h>Go to the source code of this file.
Data Structures | |
| struct | fpga_driver_api |
Macros | |
| #define | FPGA_GET_INFO_DEFAULT "n/a" |
Typedefs | |
| typedef enum FPGA_status(* | fpga_api_get_status) (const struct device *dev) |
| typedef int(* | fpga_api_load) (const struct device *dev, uint32_t *image_ptr, uint32_t img_size) |
| typedef int(* | fpga_api_reset) (const struct device *dev) |
| typedef int(* | fpga_api_on) (const struct device *dev) |
| typedef int(* | fpga_api_off) (const struct device *dev) |
| typedef const char *(* | fpga_api_get_info) (const struct device *dev) |
Enumerations | |
| enum | FPGA_status { FPGA_STATUS_INACTIVE , FPGA_STATUS_ACTIVE } |
Functions | |
| static enum FPGA_status | fpga_get_status (const struct device *dev) |
| Read the status of FPGA. | |
| static int | fpga_reset (const struct device *dev) |
| Reset the FPGA. | |
| static int | fpga_load (const struct device *dev, uint32_t *image_ptr, uint32_t img_size) |
| Load the bitstream and program the FPGA. | |
| static int | fpga_on (const struct device *dev) |
| Turns on the FPGA. | |
| static const char * | fpga_get_info (const struct device *dev) |
| Returns information about the FPGA. | |
| static int | fpga_off (const struct device *dev) |
| Turns off the FPGA. | |
Main header file for FPGA driver API.