pub struct FpgaCInterface { /* private fields */ }Expand description
Defines the generated C interface for the FPGA project.
Implementations§
Source§impl FpgaCInterface
impl FpgaCInterface
Sourcepub fn from_custom_header(fpga_header: impl AsRef<Path>) -> Self
pub fn from_custom_header(fpga_header: impl AsRef<Path>) -> Self
Constructs a new interface from the given custom header.
This is the header file which includes the project specific prefix. e.g. NiFpga_prefix.h not NiFpga.h.
This finds the other files assuming they are in the same folder.
Sourcepub fn sysroot(&mut self, sysroot: impl Into<String>) -> &mut Self
pub fn sysroot(&mut self, sysroot: impl Into<String>) -> &mut Self
Sets the sysroot for the C compiler. This is useful for cross compiling.
use ni_fpga_interface_build::FpgaCInterface;
FpgaCInterface::from_custom_header("NiFpga_prefix.h")
.sysroot("C:\\build\\2023\\x64\\sysroots\\core2-64-nilrt-linux")
.build();Auto Trait Implementations§
impl Freeze for FpgaCInterface
impl RefUnwindSafe for FpgaCInterface
impl Send for FpgaCInterface
impl Sync for FpgaCInterface
impl Unpin for FpgaCInterface
impl UnwindSafe for FpgaCInterface
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more