Zephyr API Documentation 4.2.99
A Scalable Open Source RTOS
|
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. |
#define FPGA_GET_INFO_DEFAULT "n/a" |
#include <zephyr/drivers/fpga.h>
typedef const char *(* fpga_api_get_info) (const struct device *dev) |
#include <zephyr/drivers/fpga.h>
typedef enum FPGA_status(* fpga_api_get_status) (const struct device *dev) |
#include <zephyr/drivers/fpga.h>
#include <zephyr/drivers/fpga.h>
typedef int(* fpga_api_off) (const struct device *dev) |
#include <zephyr/drivers/fpga.h>
typedef int(* fpga_api_on) (const struct device *dev) |
#include <zephyr/drivers/fpga.h>
typedef int(* fpga_api_reset) (const struct device *dev) |
#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. |
Failed | Otherwise. |
|
inlinestatic |
#include <zephyr/drivers/fpga.h>
Turns off the FPGA.
dev | FPGA device structure. |
0 | if successful. |
negative | errno code on failure. |
|
inlinestatic |
#include <zephyr/drivers/fpga.h>
Turns on the FPGA.
dev | FPGA device structure. |
0 | if successful. |
negative | errno code on failure. |
|
inlinestatic |
#include <zephyr/drivers/fpga.h>
Reset the FPGA.
dev | FPGA device structure. |
0 | if successful. |
Failed | Otherwise. |