标签:generate log generator fpga 枚举 文件 line pga 控制台应用程序
安装了NI LabVIEW 2015 32bit版本,安装了NI FPGA Interface C API Generator,安装了硬件PCIe-7842R
其中NiFpga_a.h包含了应用程序中函数调用需要的常量,都是一些宏定义或枚举类型常量,如:
1 typedef enum 2 { 3 NiFpga_StepMode_ControlI16_FramAmp = 0x811E, 4 NiFpga_StepMode_ControlI16_FramOffs = 0x8122, 5 NiFpga_StepMode_ControlI16_FramStep = 0x811A, 6 NiFpga_StepMode_ControlI16_LineAmpl = 0x8132, 7 NiFpga_StepMode_ControlI16_LineOffs = 0x8136, 8 NiFpga_StepMode_ControlI16_LineStep = 0x812E, 9 } NiFpga_StepMode_ControlI16;
这些常量包括了bitfile名字,数字签名和FPGA中寄存器的偏移地址;
NiFpga.c和NiFpga.h对所有工程都是一样的,包含了调用NI FPGA的各种系统函数。
在电脑上有关于FPGA Interface C API Generator的example
参考文献:
使用Visual Studio deploy NI FPGA板卡(采用FPGA Interface C API Generator)
标签:generate log generator fpga 枚举 文件 line pga 控制台应用程序
原文地址:http://www.cnblogs.com/yuesheng/p/7189496.html