Interfaces for Field-Programmable Gate Arrays (FPGA).
More...
|
file | fpga.h |
| Main header file for FPGA driver API.
|
|
Interfaces for Field-Programmable Gate Arrays (FPGA).
- Since
- 2.7
- Version
- 0.1.0
◆ FPGA_GET_INFO_DEFAULT
#define FPGA_GET_INFO_DEFAULT "n/a" |
◆ fpga_api_get_info
typedef const char *(* fpga_api_get_info) (const struct device *dev) |
◆ fpga_api_get_status
◆ fpga_api_load
◆ fpga_api_off
typedef int(* fpga_api_off) (const struct device *dev) |
◆ fpga_api_on
typedef int(* fpga_api_on) (const struct device *dev) |
◆ fpga_api_reset
typedef int(* fpga_api_reset) (const struct device *dev) |
◆ FPGA_status
◆ fpga_get_info()
static const char * fpga_get_info |
( |
const struct device * |
dev | ) |
|
|
inlinestatic |
#include <include/zephyr/drivers/fpga.h>
Returns information about the FPGA.
- Parameters
-
dev | FPGA device structure. |
- Returns
- String containing information.
◆ fpga_get_status()
#include <include/zephyr/drivers/fpga.h>
Read the status of FPGA.
- Parameters
-
dev | FPGA device structure. |
- Return values
-
0 | if the FPGA is in INACTIVE state. |
1 | if the FPGA is in ACTIVE state. |
◆ fpga_load()
#include <include/zephyr/drivers/fpga.h>
Load the bitstream and program the FPGA.
- Parameters
-
dev | FPGA device structure. |
image_ptr | Pointer to bitstream. |
img_size | Bitstream size in bytes. |
- Return values
-
0 | if successful. |
Failed | Otherwise. |
◆ fpga_off()
static int fpga_off |
( |
const struct device * |
dev | ) |
|
|
inlinestatic |
#include <include/zephyr/drivers/fpga.h>
Turns off the FPGA.
- Parameters
-
dev | FPGA device structure. |
- Return values
-
0 | if successful. |
negative | errno code on failure. |
◆ fpga_on()
static int fpga_on |
( |
const struct device * |
dev | ) |
|
|
inlinestatic |
#include <include/zephyr/drivers/fpga.h>
Turns on the FPGA.
- Parameters
-
dev | FPGA device structure. |
- Return values
-
0 | if successful. |
negative | errno code on failure. |
◆ fpga_reset()
static int fpga_reset |
( |
const struct device * |
dev | ) |
|
|
inlinestatic |