Go to the source code of this file.
◆ 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
Enumerator |
---|
FPGA_STATUS_INACTIVE | |
FPGA_STATUS_ACTIVE | |
◆ fpga_get_info()
static const char * fpga_get_info |
( |
const struct device * | dev | ) |
|
|
inlinestatic |
Returns information about the FPGA.
- Parameters
-
dev | FPGA device structure. |
- Returns
- String containing information.
◆ fpga_get_status()
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()
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 |
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 |
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 |
Reset the FPGA.
- Parameters
-
dev | FPGA device structure. |
- Return values
-
0 | if successful. |
Failed | Otherwise. |