|
Zephyr Project API 4.3.0
A Scalable Open Source RTOS
|
Interfaces for Field-Programmable Gate Arrays (FPGA). More...
Files | |
| file | fpga.h |
| Main header file for FPGA driver API. | |
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. | |
Interfaces for Field-Programmable Gate Arrays (FPGA).
| #define FPGA_GET_INFO_DEFAULT "n/a" |
| typedef const char *(* fpga_api_get_info) (const struct device *dev) |
| typedef enum FPGA_status(* fpga_api_get_status) (const struct device *dev) |
| typedef int(* fpga_api_off) (const struct device *dev) |
| typedef int(* fpga_api_on) (const struct device *dev) |
| typedef int(* fpga_api_reset) (const struct device *dev) |
| enum FPGA_status |
#include </__w/bridle/bridle/workspace/zephyr/include/zephyr/drivers/fpga.h>
| Enumerator | |
|---|---|
| FPGA_STATUS_INACTIVE | |
| FPGA_STATUS_ACTIVE | |
|
inlinestatic |
#include </__w/bridle/bridle/workspace/zephyr/include/zephyr/drivers/fpga.h>
Returns information about the FPGA.
| dev | FPGA device structure. |
|
inlinestatic |
#include </__w/bridle/bridle/workspace/zephyr/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 </__w/bridle/bridle/workspace/zephyr/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. |
| Failed | Otherwise. |
|
inlinestatic |
#include </__w/bridle/bridle/workspace/zephyr/include/zephyr/drivers/fpga.h>
Turns off the FPGA.
| dev | FPGA device structure. |
| 0 | if successful. |
| negative | errno code on failure. |
|
inlinestatic |
#include </__w/bridle/bridle/workspace/zephyr/include/zephyr/drivers/fpga.h>
Turns on the FPGA.
| dev | FPGA device structure. |
| 0 | if successful. |
| negative | errno code on failure. |
|
inlinestatic |
#include </__w/bridle/bridle/workspace/zephyr/include/zephyr/drivers/fpga.h>
Reset the FPGA.
| dev | FPGA device structure. |
| 0 | if successful. |
| Failed | Otherwise. |