Example Application flow

Linux Drivers

Release Date
2023-07-22
#include "libfpga.h" int main() { package_id, ret; /* package initialization */ package_id = dfx_cfg_init(pck1/, /dev/fpga0, 0); if (package_id < 0) return -1; /* Package load */ ret = dfx_cfg_load(package_id); if (ret) return -1; /* Remove package */ ret = dfx_cfg_remove(package_id); if (ret) return -1; /* Destroy package */ ret = dfx_cfg_destroy(package_id); return ret; }