|
Zephyr API Documentation 4.4.0-rc1
A Scalable Open Source RTOS
|
Interfaces for Field-Programmable Gate Arrays (FPGA). More...
Topics | |
| FPGA Driver Backend API | |
Files | |
| file | fpga.h |
| Main header file for FPGA driver API. | |
Macros | |
| #define | FPGA_GET_INFO_DEFAULT "n/a" |
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. | |
Interfaces for Field-Programmable Gate Arrays (FPGA).
| #define FPGA_GET_INFO_DEFAULT "n/a" |
#include <zephyr/drivers/fpga.h>
| enum FPGA_status |
#include <zephyr/drivers/fpga.h>
| Enumerator | |
|---|---|
| FPGA_STATUS_INACTIVE | |
| FPGA_STATUS_ACTIVE | |
|
inlinestatic |
#include <zephyr/drivers/fpga.h>
Returns information about the FPGA.
| dev | FPGA device structure. |
|
inlinestatic |
#include <zephyr/drivers/fpga.h>
Read the status of FPGA.
| dev | FPGA device structure. |
| 0 | if the FPGA is in INACTIVE state. |
| 1 | if the FPGA is in ACTIVE state. |
#include <zephyr/drivers/fpga.h>
Load the bitstream and program the FPGA.
| dev | FPGA device structure. |
| image_ptr | Pointer to bitstream. |
| img_size | Bitstream size in bytes. |
| 0 | if successful. |
|
inlinestatic |
#include <zephyr/drivers/fpga.h>
Turns off the FPGA.
| dev | FPGA device structure. |
| 0 | if successful. |
| <0 | negative errno code on failure. |
|
inlinestatic |
#include <zephyr/drivers/fpga.h>
Turns on the FPGA.
| dev | FPGA device structure. |
| 0 | if successful. |
| <0 | negative errno code on failure. |
|
inlinestatic |
#include <zephyr/drivers/fpga.h>
Reset the FPGA.
| dev | FPGA device structure. |
| 0 | if successful. |