From b715b32a8c1269941b0ff84ca7a11918567f6023 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Kub=C3=A1nek?= Date: Fri, 24 Nov 2023 16:45:37 -0300 Subject: [PATCH 1/2] Fixed Makefiles --- .gitignore | 1 + Jenkinsfile | 2 +- Makefile | 4 +- Makefile.inc | 69 ++++++++++++++----------------- doc/version-history.rst | 9 ++-- src/LSST/VMS/Commands/Update.cpp | 5 ++- src/LSST/VMS/Events/FPGAState.cpp | 2 +- src/LSST/VMS/Events/Heartbeat.cpp | 53 ++++++++++++++++++++++++ src/LSST/VMS/Events/Heartbeat.h | 58 ++++++++++++++++++++++++++ src/LSST/VMS/VMSPublisher.h | 1 + 10 files changed, 157 insertions(+), 47 deletions(-) create mode 100644 src/LSST/VMS/Events/Heartbeat.cpp create mode 100644 src/LSST/VMS/Events/Heartbeat.h diff --git a/.gitignore b/.gitignore index 7d95355..368af57 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ ts-VMSd .isort.cfg .mypy.ini .ruff.toml +src/version.c diff --git a/Jenkinsfile b/Jenkinsfile index 76b5a7a..b25ac20 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -60,7 +60,7 @@ node { make cd $WORKSPACE/ts_vms - make simulator + make SIMULATOR=1 LSST_DDS_PARTITION_PREFIX=test make junit || true """ } diff --git a/Makefile b/Makefile index 727193b..c5d8e81 100644 --- a/Makefile +++ b/Makefile @@ -26,13 +26,13 @@ src/%.cpp.o: src/%.cpp $(MAKE) -C src $(patsubst src/%,%,$@) tests: tests/Makefile tests/*.cpp - @${MAKE} -C tests + @${MAKE} -C SIMULATOR=1 tests run_tests: tests @${MAKE} -C tests run junit: tests - @${MAKE} -C tests junit + @${MAKE} -C SIMULATOR=1 tests junit doc: ${co}doxygen Doxyfile diff --git a/Makefile.inc b/Makefile.inc index a9ed131..677120c 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -8,54 +8,47 @@ c_opts := -DSPDLOG_ACTIVE_LEVEL=SPDLOG_LEVEL_TRACE ifdef DEBUG c_opts += -g + silence := --silence-errors else c_opts += -O3 endif CRIOCPP := ../ts_cRIOcpp/ -BOOST_CPPFLAGS := -I/usr/include/boost169 -SAL_CPPFLAGS := $(shell pkg-config yaml-cpp --cflags $(silence)) \ - $(shell pkg-config fmt --cflags $(silence)) \ - $(shell pkg-config spdlog --cflags $(silence)) \ - $(shell pkg-config fftw3 --cflags $(silence)) \ - -I${OSPL_HOME}/include -I${OSPL_HOME}/include/sys \ - -I${OSPL_HOME}/include/dcps/C++/SACPP \ - -I${SAL_WORK_DIR}/MTVMS/cpp/src \ - -I${SAL_WORK_DIR}/include \ - -I${SAL_HOME}/include \ - -I${LSST_SDK_INSTALL}/include - -LIBS := $(shell pkg-config yaml-cpp --libs $(silence)) \ - $(shell pkg-config fmt --libs $(silence)) \ - $(shell pkg-config fftw3 --libs $(silence)) \ - -ldl -ldcpssacpp -ldcpsgapi -lddsuser -lddskernel \ - -lpthread -lddsserialization -lddsconfparser -lddsconf \ - -lddsdatabase -lddsutil -lddsos \ - ${SAL_WORK_DIR}/lib/libSAL_MTVMS.a \ - -lreadline - -C := gcc -Wall ${c_opts} -CPP := g++ --std=c++17 -Wall -fPIE ${c_opts} - -# Simulator is dynamicaly linked, distribution uses static linking +PKG_CPPFLAGS := \ + $(shell pkg-config yaml-cpp --cflags $(silence)) \ + $(shell pkg-config spdlog --cflags $(silence)) \ + $(shell pkg-config fmt --cflags $(silence)) \ + $(shell pkg-config fftw3 --cflags $(silence)) + +SAL_CPPFLAGS += $(PKG_CPPFLAGS) \ + -I${OSPL_HOME}/include -I${OSPL_HOME}/include/sys -I${OSPL_HOME}/include/dcps/C++/SACPP \ + -I${SAL_WORK_DIR}/MTM1M3/cpp/src -I${SAL_WORK_DIR}/MTMount/cpp/src -I${SAL_WORK_DIR}/include \ + -I${SAL_HOME}/include -I${LSST_SDK_INSTALL}/include + +PKG_LIBS := \ + $(shell pkg-config yaml-cpp --libs $(silence)) \ + $(shell pkg-config fftw3 --libs $(silence)) \ + +CPP := g++ -std=c++17 -Wall -fPIE ${c_opts} + ifdef SIMULATOR + C := gcc -Wall ${c_opts} CPP += -pedantic -DSIMULATOR - LIBS += $(shell pkg-config spdlog --libs $(silence)) + PKG_LIBS += $(shell pkg-config spdlog --libs $(silence)) else - C += -fmessage-length=0 - CPP += -fmessage-length=0 -ldl - LIBS += $(shell pkg-config spdlog --libs $(silence) | sed -E 's/-l([a-z0-9]*)/-l:lib\1.a/g') + C := gcc -Wall -fmessage-length=0 ${c_opts} + CPP += -fmessage-length=0 + # static linkage for cRIO binary + PKG_LIBS += $(shell pkg-config spdlog --libs $(silence) | sed -E 's/-l([a-z0-9]*)/-l:lib\1.a/g') endif -LIBS_FLAGS += -L"${OSPL_HOME}/lib" -L"${LSST_SDK_INSTALL}/lib" +LIBS += $(PKG_LIBS) -ldl -ldcpssacpp -ldcpsgapi -lddsuser -lddskernel \ + -lpthread -lddsserialization -lddsconfparser -lddsconf \ + -lddsdatabase -lddsutil -lddsos \ + ${SAL_WORK_DIR}/lib/libSAL_MTVMS.a -GIT := $(shell command -v git 2> /dev/null) +LIBS_FLAGS += -L${OSPL_HOME}/lib -L${LSST_SDK_INSTALL}/lib -ifndef GIT - VERSION := "v0.0.0-None" - GIT_HASH := "xxxx-NONE" -else - VERSION := $(shell git describe --tags --dirty) - GIT_HASH := $(shell git rev-parse HEAD) -endif +VERSION := $(shell git describe --tags --dirty 2>/dev/null || echo "unknown:non-git") +GIT_HASH := $(shell git rev-parse HEAD 2>/dev/null || echo "unknown-non-git") diff --git a/doc/version-history.rst b/doc/version-history.rst index d69947b..16eb061 100644 --- a/doc/version-history.rst +++ b/doc/version-history.rst @@ -4,17 +4,18 @@ Version History =============== -v1.1.1 -====== +v1.2.0 +------ +* sends Heartbeat signals * updated build system v1.1.0 -====== +------ * improved data readout - in-CSC PSD calculations v1.0.0 -======= +------ * First release of the Vibration Monitoring System CSC diff --git a/src/LSST/VMS/Commands/Update.cpp b/src/LSST/VMS/Commands/Update.cpp index 659c713..2561c9b 100644 --- a/src/LSST/VMS/Commands/Update.cpp +++ b/src/LSST/VMS/Commands/Update.cpp @@ -21,13 +21,16 @@ * along with this program. If not, see . */ +#include +#include #include #include -#include +using namespace LSST::VMS; using namespace LSST::VMS::Commands; void Update::execute() { VMSPublisher::instance().putMiscellaneous(FPGA::instance().chassisTemperature(), FPGA::instance().chassisTicks()); + Events::Heartbeat::instance().tryToggle(); } diff --git a/src/LSST/VMS/Events/FPGAState.cpp b/src/LSST/VMS/Events/FPGAState.cpp index 597f7b5..c586b03 100644 --- a/src/LSST/VMS/Events/FPGAState.cpp +++ b/src/LSST/VMS/Events/FPGAState.cpp @@ -23,7 +23,7 @@ #include #include -#include +#include using namespace LSST::VMS; using namespace LSST::VMS::Events; diff --git a/src/LSST/VMS/Events/Heartbeat.cpp b/src/LSST/VMS/Events/Heartbeat.cpp new file mode 100644 index 0000000..7b70cfc --- /dev/null +++ b/src/LSST/VMS/Events/Heartbeat.cpp @@ -0,0 +1,53 @@ +/* + * This file is part of the LSST M1M3 thermal system package. + * + * Developed for the Vera C. Rubin Telescope and Site System. + * This product includes software developed by the LSST Project + * (https://www.lsst.org). + * See the COPYRIGHT file at the top-level directory of this distribution + * for details of code ownership. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#include + +#include + +#include + +using namespace LSST::VMS::Events; + +const float HEARTBEAT_PERIOD = 1.0; //* Heartbeat period in seconds + +Heartbeat::Heartbeat(token) { _lastToggleTimestamp = 0; } + +void Heartbeat::tryToggle() { + SPDLOG_TRACE("Trying to toggle heartbeat"); + double timestamp = VMSPublisher::instance().getTimestamp(); + if (timestamp >= (_lastToggleTimestamp + HEARTBEAT_PERIOD)) { + SPDLOG_DEBUG("Toggling heartbeat"); + auto lag = timestamp - _lastToggleTimestamp; + if (_lastToggleTimestamp != 0 && lag > HEARTBEAT_PERIOD * 1.1) { + SPDLOG_WARN("Toggling heartbeat after {:0.03f} seconds!", lag); + } + + heartbeat = !heartbeat; + + // sends software heartbeat + VMSPublisher::instance().logHeartbeat(this); + + _lastToggleTimestamp = timestamp; + } +} diff --git a/src/LSST/VMS/Events/Heartbeat.h b/src/LSST/VMS/Events/Heartbeat.h new file mode 100644 index 0000000..531508b --- /dev/null +++ b/src/LSST/VMS/Events/Heartbeat.h @@ -0,0 +1,58 @@ +/* + * This file is part of the LSST M1M3 thermal system package. + * + * Developed for the Vera C. Rubin Telescope and Site System. + * This product includes software developed by the LSST Project + * (https://www.lsst.org). + * See the COPYRIGHT file at the top-level directory of this distribution + * for details of code ownership. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#ifndef LSST_HEARTBEAT_H +#define LSST_HEARTBEAT_H + +#include + +#include + +#include + +namespace LSST { +namespace VMS { +namespace Events { + +/** + * Wrapper object for MTM1M3_logevent_heartbeatStatusC. + */ +class Heartbeat : public MTVMS_logevent_heartbeatC, public cRIO::Singleton { +public: + /** + * Construct new InterlockStatus + */ + Heartbeat(token); + + /** + * Sets heartbeat, publish data if the last heartbeat was send more than 500ms in past. + */ + void tryToggle(); + +private: + double _lastToggleTimestamp; +}; + +}}} + +#endif // LSST_INTERLOCKSTATUS_H diff --git a/src/LSST/VMS/VMSPublisher.h b/src/LSST/VMS/VMSPublisher.h index 63b3fed..0530339 100644 --- a/src/LSST/VMS/VMSPublisher.h +++ b/src/LSST/VMS/VMSPublisher.h @@ -30,6 +30,7 @@ class VMSPublisher : public cRIO::Singleton { void setLogLevel(int newLevel); + void logHeartbeat(MTVMS_logevent_heartbeatC *data) { _vmsSAL->logEvent_heartbeat(data, 0); } void logSoftwareVersions(); void logSimulationMode(); From 82c866ef4e9f253419655c82527f3a2a9c39758f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Kub=C3=A1nek?= Date: Fri, 24 Nov 2023 18:32:04 -0300 Subject: [PATCH 2/2] clang-formatted --- .gitignore | 1 + Bitfiles/NiFpga.c | 1056 +++++++++++------------ src/LSST/VMS/Accelerometer.h | 12 +- src/LSST/VMS/Commands/EnterControl.h | 10 +- src/LSST/VMS/Commands/SAL.cpp | 8 +- src/LSST/VMS/Commands/SAL.h | 8 +- src/LSST/VMS/Commands/Update.cpp | 3 - src/LSST/VMS/Events/FPGAState.cpp | 10 +- src/LSST/VMS/Events/FPGAState.h | 10 +- src/LSST/VMS/Events/Heartbeat.h | 7 +- src/LSST/VMS/Events/SummaryState.cpp | 8 +- src/LSST/VMS/Events/SummaryState.h | 13 +- src/LSST/VMS/FPGA.cpp | 8 +- src/LSST/VMS/Telemetry/PSD.cpp | 10 +- src/LSST/VMS/Telemetry/PSD.h | 12 +- src/LSST/VMS/VMSApplicationSettings.cpp | 2 +- src/LSST/VMS/VMSPublisher.cpp | 2 +- src/LSST/VMS/VMSSubscriber.cpp | 12 +- src/LSST/VMS/VMSSubscriber.h | 12 +- src/NiFpga/NiFpga.c | 1056 +++++++++++------------ src/NiFpga/NiFpga.h | 286 +++--- src/NiFpga/NiFpga_VMS_3_Controller.h | 2 +- src/NiFpga/NiFpga_VMS_3_Responder.h | 2 +- src/NiFpga/NiFpga_VMS_6_Controller.h | 2 +- src/NiFpga/NiFpga_VMS_6_Responder.h | 2 +- src/NiFpga/NiFpga_VMS_CameraRotator.h | 5 +- src/ts-VMSd.cpp | 44 +- tests/test_PSD.cpp | 2 +- 28 files changed, 1307 insertions(+), 1298 deletions(-) diff --git a/.gitignore b/.gitignore index 368af57..141a08a 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ ts-VMSd .mypy.ini .ruff.toml src/version.c +towncrier.toml diff --git a/Bitfiles/NiFpga.c b/Bitfiles/NiFpga.c index d0cdb4d..74ef11f 100644 --- a/Bitfiles/NiFpga.c +++ b/Bitfiles/NiFpga.c @@ -14,16 +14,16 @@ #if NiFpga_Windows #include #elif NiFpga_VxWorks -#include -#include #include +#include #include -MODULE_ID VxLoadLibraryFromPath(const char* path, int flags); +#include +MODULE_ID VxLoadLibraryFromPath(const char *path, int flags); STATUS VxFreeLibrary(MODULE_ID library, int flags); #elif NiFpga_Linux || NiFpga_MacOsX -#include -#include #include +#include +#include #else #error #endif @@ -47,7 +47,7 @@ static HMODULE NiFpga_library = NULL; #elif NiFpga_VxWorks static MODULE_ID NiFpga_library = NULL; #elif NiFpga_Linux || NiFpga_MacOsX -static void* NiFpga_library = NULL; +static void *NiFpga_library = NULL; #else #error #endif @@ -58,13 +58,13 @@ static void* NiFpga_library = NULL; #if NiFpga_Cvi && NiFpga_Windows #define NiFpga_CviResourceTracking 1 -static char* const NiFpga_cviResourceType = "FPGA Interface C API"; +static char *const NiFpga_cviResourceType = "FPGA Interface C API"; -typedef void*(NiFpga_CCall* NiFpga_AcquireCviResource)(void* resource, char* type, char* description, ...); +typedef void *(NiFpga_CCall *NiFpga_AcquireCviResource)(void *resource, char *type, char *description, ...); static NiFpga_AcquireCviResource NiFpga_acquireCviResource = NULL; -typedef void*(NiFpga_StdCall* NiFpga_ReleaseCviResource)(void* resource); +typedef void *(NiFpga_StdCall *NiFpga_ReleaseCviResource)(void *resource); static NiFpga_ReleaseCviResource NiFpga_releaseCviResource = NULL; #endif @@ -72,26 +72,26 @@ static NiFpga_ReleaseCviResource NiFpga_releaseCviResource = NULL; /* * Session management functions. */ -static NiFpga_Status(NiFpga_CCall* NiFpga_open)(const char* path, const char* signature, const char* resource, - uint32_t attribute, NiFpga_Session* session) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_open)(const char *path, const char *signature, const char *resource, + uint32_t attribute, NiFpga_Session *session) = NULL; -NiFpga_Status NiFpga_Open(const char* path, const char* signature, const char* resource, uint32_t attribute, - NiFpga_Session* session) { +NiFpga_Status NiFpga_Open(const char *path, const char *signature, const char *resource, uint32_t attribute, + NiFpga_Session *session) { const NiFpga_Status result = NiFpga_open ? NiFpga_open(path, signature, resource, attribute, session) : NiFpga_Status_ResourceNotInitialized; #if NiFpga_CviResourceTracking if (NiFpga_acquireCviResource && NiFpga_IsNotError(result)) - NiFpga_acquireCviResource((void*)*session, NiFpga_cviResourceType, "NiFpga_Session %#08x", *session); + NiFpga_acquireCviResource((void *)*session, NiFpga_cviResourceType, "NiFpga_Session %#08x", *session); #endif return result; } -static NiFpga_Status(NiFpga_CCall* NiFpga_close)(NiFpga_Session session, uint32_t attribute) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_close)(NiFpga_Session session, uint32_t attribute) = NULL; NiFpga_Status NiFpga_Close(NiFpga_Session session, uint32_t attribute) { if (!NiFpga_close) return NiFpga_Status_ResourceNotInitialized; #if NiFpga_CviResourceTracking - if (NiFpga_releaseCviResource) NiFpga_releaseCviResource((void*)session); + if (NiFpga_releaseCviResource) NiFpga_releaseCviResource((void *)session); #endif return NiFpga_close(session, attribute); } @@ -99,25 +99,25 @@ NiFpga_Status NiFpga_Close(NiFpga_Session session, uint32_t attribute) { /* * FPGA state functions. */ -static NiFpga_Status(NiFpga_CCall* NiFpga_run)(NiFpga_Session session, uint32_t attribute) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_run)(NiFpga_Session session, uint32_t attribute) = NULL; NiFpga_Status NiFpga_Run(NiFpga_Session session, uint32_t attribute) { return NiFpga_run ? NiFpga_run(session, attribute) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_abort)(NiFpga_Session session) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_abort)(NiFpga_Session session) = NULL; NiFpga_Status NiFpga_Abort(NiFpga_Session session) { return NiFpga_abort ? NiFpga_abort(session) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_reset)(NiFpga_Session session) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_reset)(NiFpga_Session session) = NULL; NiFpga_Status NiFpga_Reset(NiFpga_Session session) { return NiFpga_reset ? NiFpga_reset(session) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_download)(NiFpga_Session session) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_download)(NiFpga_Session session) = NULL; NiFpga_Status NiFpga_Download(NiFpga_Session session) { return NiFpga_download ? NiFpga_download(session) : NiFpga_Status_ResourceNotInitialized; @@ -126,88 +126,88 @@ NiFpga_Status NiFpga_Download(NiFpga_Session session) { /* * Functions to read from scalar indicators and controls. */ -static NiFpga_Status(NiFpga_CCall* NiFpga_readBool)(NiFpga_Session session, uint32_t indicator, - NiFpga_Bool* value) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_readBool)(NiFpga_Session session, uint32_t indicator, + NiFpga_Bool *value) = NULL; -NiFpga_Status NiFpga_ReadBool(NiFpga_Session session, uint32_t indicator, NiFpga_Bool* value) { +NiFpga_Status NiFpga_ReadBool(NiFpga_Session session, uint32_t indicator, NiFpga_Bool *value) { return NiFpga_readBool ? NiFpga_readBool(session, indicator, value) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readI8)(NiFpga_Session session, uint32_t indicator, - int8_t* value) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_readI8)(NiFpga_Session session, uint32_t indicator, + int8_t *value) = NULL; -NiFpga_Status NiFpga_ReadI8(NiFpga_Session session, uint32_t indicator, int8_t* value) { +NiFpga_Status NiFpga_ReadI8(NiFpga_Session session, uint32_t indicator, int8_t *value) { return NiFpga_readI8 ? NiFpga_readI8(session, indicator, value) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readU8)(NiFpga_Session session, uint32_t indicator, - uint8_t* value) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_readU8)(NiFpga_Session session, uint32_t indicator, + uint8_t *value) = NULL; -NiFpga_Status NiFpga_ReadU8(NiFpga_Session session, uint32_t indicator, uint8_t* value) { +NiFpga_Status NiFpga_ReadU8(NiFpga_Session session, uint32_t indicator, uint8_t *value) { return NiFpga_readU8 ? NiFpga_readU8(session, indicator, value) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readI16)(NiFpga_Session session, uint32_t indicator, - int16_t* value) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_readI16)(NiFpga_Session session, uint32_t indicator, + int16_t *value) = NULL; -NiFpga_Status NiFpga_ReadI16(NiFpga_Session session, uint32_t indicator, int16_t* value) { +NiFpga_Status NiFpga_ReadI16(NiFpga_Session session, uint32_t indicator, int16_t *value) { return NiFpga_readI16 ? NiFpga_readI16(session, indicator, value) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readU16)(NiFpga_Session session, uint32_t indicator, - uint16_t* value) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_readU16)(NiFpga_Session session, uint32_t indicator, + uint16_t *value) = NULL; -NiFpga_Status NiFpga_ReadU16(NiFpga_Session session, uint32_t indicator, uint16_t* value) { +NiFpga_Status NiFpga_ReadU16(NiFpga_Session session, uint32_t indicator, uint16_t *value) { return NiFpga_readU16 ? NiFpga_readU16(session, indicator, value) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readI32)(NiFpga_Session session, uint32_t indicator, - int32_t* value) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_readI32)(NiFpga_Session session, uint32_t indicator, + int32_t *value) = NULL; -NiFpga_Status NiFpga_ReadI32(NiFpga_Session session, uint32_t indicator, int32_t* value) { +NiFpga_Status NiFpga_ReadI32(NiFpga_Session session, uint32_t indicator, int32_t *value) { return NiFpga_readI32 ? NiFpga_readI32(session, indicator, value) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readU32)(NiFpga_Session session, uint32_t indicator, - uint32_t* value) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_readU32)(NiFpga_Session session, uint32_t indicator, + uint32_t *value) = NULL; -NiFpga_Status NiFpga_ReadU32(NiFpga_Session session, uint32_t indicator, uint32_t* value) { +NiFpga_Status NiFpga_ReadU32(NiFpga_Session session, uint32_t indicator, uint32_t *value) { return NiFpga_readU32 ? NiFpga_readU32(session, indicator, value) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readI64)(NiFpga_Session session, uint32_t indicator, - int64_t* value) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_readI64)(NiFpga_Session session, uint32_t indicator, + int64_t *value) = NULL; -NiFpga_Status NiFpga_ReadI64(NiFpga_Session session, uint32_t indicator, int64_t* value) { +NiFpga_Status NiFpga_ReadI64(NiFpga_Session session, uint32_t indicator, int64_t *value) { return NiFpga_readI64 ? NiFpga_readI64(session, indicator, value) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readU64)(NiFpga_Session session, uint32_t indicator, - uint64_t* value) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_readU64)(NiFpga_Session session, uint32_t indicator, + uint64_t *value) = NULL; -NiFpga_Status NiFpga_ReadU64(NiFpga_Session session, uint32_t indicator, uint64_t* value) { +NiFpga_Status NiFpga_ReadU64(NiFpga_Session session, uint32_t indicator, uint64_t *value) { return NiFpga_readU64 ? NiFpga_readU64(session, indicator, value) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readSgl)(NiFpga_Session session, uint32_t indicator, - float* value) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_readSgl)(NiFpga_Session session, uint32_t indicator, + float *value) = NULL; -NiFpga_Status NiFpga_ReadSgl(NiFpga_Session session, uint32_t indicator, float* value) { +NiFpga_Status NiFpga_ReadSgl(NiFpga_Session session, uint32_t indicator, float *value) { return NiFpga_readSgl ? NiFpga_readSgl(session, indicator, value) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readDbl)(NiFpga_Session session, uint32_t indicator, - double* value) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_readDbl)(NiFpga_Session session, uint32_t indicator, + double *value) = NULL; -NiFpga_Status NiFpga_ReadDbl(NiFpga_Session session, uint32_t indicator, double* value) { +NiFpga_Status NiFpga_ReadDbl(NiFpga_Session session, uint32_t indicator, double *value) { return NiFpga_readDbl ? NiFpga_readDbl(session, indicator, value) : NiFpga_Status_ResourceNotInitialized; } /* * Functions to write to scalar controls and indicators. */ -static NiFpga_Status(NiFpga_CCall* NiFpga_writeBool)(NiFpga_Session session, uint32_t control, +static NiFpga_Status(NiFpga_CCall *NiFpga_writeBool)(NiFpga_Session session, uint32_t control, NiFpga_Bool value) = NULL; NiFpga_Status NiFpga_WriteBool(NiFpga_Session session, uint32_t control, NiFpga_Bool value) { @@ -215,70 +215,70 @@ NiFpga_Status NiFpga_WriteBool(NiFpga_Session session, uint32_t control, NiFpga_ : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeI8)(NiFpga_Session session, uint32_t control, +static NiFpga_Status(NiFpga_CCall *NiFpga_writeI8)(NiFpga_Session session, uint32_t control, int8_t value) = NULL; NiFpga_Status NiFpga_WriteI8(NiFpga_Session session, uint32_t control, int8_t value) { return NiFpga_writeI8 ? NiFpga_writeI8(session, control, value) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeU8)(NiFpga_Session session, uint32_t control, +static NiFpga_Status(NiFpga_CCall *NiFpga_writeU8)(NiFpga_Session session, uint32_t control, uint8_t value) = NULL; NiFpga_Status NiFpga_WriteU8(NiFpga_Session session, uint32_t control, uint8_t value) { return NiFpga_writeU8 ? NiFpga_writeU8(session, control, value) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeI16)(NiFpga_Session session, uint32_t control, +static NiFpga_Status(NiFpga_CCall *NiFpga_writeI16)(NiFpga_Session session, uint32_t control, int16_t value) = NULL; NiFpga_Status NiFpga_WriteI16(NiFpga_Session session, uint32_t control, int16_t value) { return NiFpga_writeI16 ? NiFpga_writeI16(session, control, value) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeU16)(NiFpga_Session session, uint32_t control, +static NiFpga_Status(NiFpga_CCall *NiFpga_writeU16)(NiFpga_Session session, uint32_t control, uint16_t value) = NULL; NiFpga_Status NiFpga_WriteU16(NiFpga_Session session, uint32_t control, uint16_t value) { return NiFpga_writeU16 ? NiFpga_writeU16(session, control, value) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeI32)(NiFpga_Session session, uint32_t control, +static NiFpga_Status(NiFpga_CCall *NiFpga_writeI32)(NiFpga_Session session, uint32_t control, int32_t value) = NULL; NiFpga_Status NiFpga_WriteI32(NiFpga_Session session, uint32_t control, int32_t value) { return NiFpga_writeI32 ? NiFpga_writeI32(session, control, value) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeU32)(NiFpga_Session session, uint32_t control, +static NiFpga_Status(NiFpga_CCall *NiFpga_writeU32)(NiFpga_Session session, uint32_t control, uint32_t value) = NULL; NiFpga_Status NiFpga_WriteU32(NiFpga_Session session, uint32_t control, uint32_t value) { return NiFpga_writeU32 ? NiFpga_writeU32(session, control, value) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeI64)(NiFpga_Session session, uint32_t control, +static NiFpga_Status(NiFpga_CCall *NiFpga_writeI64)(NiFpga_Session session, uint32_t control, int64_t value) = NULL; NiFpga_Status NiFpga_WriteI64(NiFpga_Session session, uint32_t control, int64_t value) { return NiFpga_writeI64 ? NiFpga_writeI64(session, control, value) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeU64)(NiFpga_Session session, uint32_t control, +static NiFpga_Status(NiFpga_CCall *NiFpga_writeU64)(NiFpga_Session session, uint32_t control, uint64_t value) = NULL; NiFpga_Status NiFpga_WriteU64(NiFpga_Session session, uint32_t control, uint64_t value) { return NiFpga_writeU64 ? NiFpga_writeU64(session, control, value) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeSgl)(NiFpga_Session session, uint32_t control, +static NiFpga_Status(NiFpga_CCall *NiFpga_writeSgl)(NiFpga_Session session, uint32_t control, float value) = NULL; NiFpga_Status NiFpga_WriteSgl(NiFpga_Session session, uint32_t control, float value) { return NiFpga_writeSgl ? NiFpga_writeSgl(session, control, value) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeDbl)(NiFpga_Session session, uint32_t control, +static NiFpga_Status(NiFpga_CCall *NiFpga_writeDbl)(NiFpga_Session session, uint32_t control, double value) = NULL; NiFpga_Status NiFpga_WriteDbl(NiFpga_Session session, uint32_t control, double value) { @@ -288,91 +288,91 @@ NiFpga_Status NiFpga_WriteDbl(NiFpga_Session session, uint32_t control, double v /* * Functions to read from array indicators and controls. */ -static NiFpga_Status(NiFpga_CCall* NiFpga_readArrayBool)(NiFpga_Session session, uint32_t indicator, - NiFpga_Bool* array, size_t size) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_readArrayBool)(NiFpga_Session session, uint32_t indicator, + NiFpga_Bool *array, size_t size) = NULL; -NiFpga_Status NiFpga_ReadArrayBool(NiFpga_Session session, uint32_t indicator, NiFpga_Bool* array, +NiFpga_Status NiFpga_ReadArrayBool(NiFpga_Session session, uint32_t indicator, NiFpga_Bool *array, size_t size) { return NiFpga_readArrayBool ? NiFpga_readArrayBool(session, indicator, array, size) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readArrayI8)(NiFpga_Session session, uint32_t indicator, - int8_t* array, size_t size) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_readArrayI8)(NiFpga_Session session, uint32_t indicator, + int8_t *array, size_t size) = NULL; -NiFpga_Status NiFpga_ReadArrayI8(NiFpga_Session session, uint32_t indicator, int8_t* array, size_t size) { +NiFpga_Status NiFpga_ReadArrayI8(NiFpga_Session session, uint32_t indicator, int8_t *array, size_t size) { return NiFpga_readArrayI8 ? NiFpga_readArrayI8(session, indicator, array, size) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readArrayU8)(NiFpga_Session session, uint32_t indicator, - uint8_t* array, size_t size) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_readArrayU8)(NiFpga_Session session, uint32_t indicator, + uint8_t *array, size_t size) = NULL; -NiFpga_Status NiFpga_ReadArrayU8(NiFpga_Session session, uint32_t indicator, uint8_t* array, size_t size) { +NiFpga_Status NiFpga_ReadArrayU8(NiFpga_Session session, uint32_t indicator, uint8_t *array, size_t size) { return NiFpga_readArrayU8 ? NiFpga_readArrayU8(session, indicator, array, size) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readArrayI16)(NiFpga_Session session, uint32_t indicator, - int16_t* array, size_t size) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_readArrayI16)(NiFpga_Session session, uint32_t indicator, + int16_t *array, size_t size) = NULL; -NiFpga_Status NiFpga_ReadArrayI16(NiFpga_Session session, uint32_t indicator, int16_t* array, size_t size) { +NiFpga_Status NiFpga_ReadArrayI16(NiFpga_Session session, uint32_t indicator, int16_t *array, size_t size) { return NiFpga_readArrayI16 ? NiFpga_readArrayI16(session, indicator, array, size) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readArrayU16)(NiFpga_Session session, uint32_t indicator, - uint16_t* array, size_t size) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_readArrayU16)(NiFpga_Session session, uint32_t indicator, + uint16_t *array, size_t size) = NULL; -NiFpga_Status NiFpga_ReadArrayU16(NiFpga_Session session, uint32_t indicator, uint16_t* array, size_t size) { +NiFpga_Status NiFpga_ReadArrayU16(NiFpga_Session session, uint32_t indicator, uint16_t *array, size_t size) { return NiFpga_readArrayU16 ? NiFpga_readArrayU16(session, indicator, array, size) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readArrayI32)(NiFpga_Session session, uint32_t indicator, - int32_t* array, size_t size) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_readArrayI32)(NiFpga_Session session, uint32_t indicator, + int32_t *array, size_t size) = NULL; -NiFpga_Status NiFpga_ReadArrayI32(NiFpga_Session session, uint32_t indicator, int32_t* array, size_t size) { +NiFpga_Status NiFpga_ReadArrayI32(NiFpga_Session session, uint32_t indicator, int32_t *array, size_t size) { return NiFpga_readArrayI32 ? NiFpga_readArrayI32(session, indicator, array, size) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readArrayU32)(NiFpga_Session session, uint32_t indicator, - uint32_t* array, size_t size) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_readArrayU32)(NiFpga_Session session, uint32_t indicator, + uint32_t *array, size_t size) = NULL; -NiFpga_Status NiFpga_ReadArrayU32(NiFpga_Session session, uint32_t indicator, uint32_t* array, size_t size) { +NiFpga_Status NiFpga_ReadArrayU32(NiFpga_Session session, uint32_t indicator, uint32_t *array, size_t size) { return NiFpga_readArrayU32 ? NiFpga_readArrayU32(session, indicator, array, size) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readArrayI64)(NiFpga_Session session, uint32_t indicator, - int64_t* array, size_t size) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_readArrayI64)(NiFpga_Session session, uint32_t indicator, + int64_t *array, size_t size) = NULL; -NiFpga_Status NiFpga_ReadArrayI64(NiFpga_Session session, uint32_t indicator, int64_t* array, size_t size) { +NiFpga_Status NiFpga_ReadArrayI64(NiFpga_Session session, uint32_t indicator, int64_t *array, size_t size) { return NiFpga_readArrayI64 ? NiFpga_readArrayI64(session, indicator, array, size) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readArrayU64)(NiFpga_Session session, uint32_t indicator, - uint64_t* array, size_t size) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_readArrayU64)(NiFpga_Session session, uint32_t indicator, + uint64_t *array, size_t size) = NULL; -NiFpga_Status NiFpga_ReadArrayU64(NiFpga_Session session, uint32_t indicator, uint64_t* array, size_t size) { +NiFpga_Status NiFpga_ReadArrayU64(NiFpga_Session session, uint32_t indicator, uint64_t *array, size_t size) { return NiFpga_readArrayU64 ? NiFpga_readArrayU64(session, indicator, array, size) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readArraySgl)(NiFpga_Session session, uint32_t indicator, - float* array, size_t size) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_readArraySgl)(NiFpga_Session session, uint32_t indicator, + float *array, size_t size) = NULL; -NiFpga_Status NiFpga_ReadArraySgl(NiFpga_Session session, uint32_t indicator, float* array, size_t size) { +NiFpga_Status NiFpga_ReadArraySgl(NiFpga_Session session, uint32_t indicator, float *array, size_t size) { return NiFpga_readArraySgl ? NiFpga_readArraySgl(session, indicator, array, size) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readArrayDbl)(NiFpga_Session session, uint32_t indicator, - double* array, size_t size) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_readArrayDbl)(NiFpga_Session session, uint32_t indicator, + double *array, size_t size) = NULL; -NiFpga_Status NiFpga_ReadArrayDbl(NiFpga_Session session, uint32_t indicator, double* array, size_t size) { +NiFpga_Status NiFpga_ReadArrayDbl(NiFpga_Session session, uint32_t indicator, double *array, size_t size) { return NiFpga_readArrayDbl ? NiFpga_readArrayDbl(session, indicator, array, size) : NiFpga_Status_ResourceNotInitialized; } @@ -380,100 +380,100 @@ NiFpga_Status NiFpga_ReadArrayDbl(NiFpga_Session session, uint32_t indicator, do /* * Functions to write to array controls and indicators. */ -static NiFpga_Status(NiFpga_CCall* NiFpga_writeArrayBool)(NiFpga_Session session, uint32_t control, - const NiFpga_Bool* array, size_t size) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_writeArrayBool)(NiFpga_Session session, uint32_t control, + const NiFpga_Bool *array, size_t size) = NULL; -NiFpga_Status NiFpga_WriteArrayBool(NiFpga_Session session, uint32_t control, const NiFpga_Bool* array, +NiFpga_Status NiFpga_WriteArrayBool(NiFpga_Session session, uint32_t control, const NiFpga_Bool *array, size_t size) { return NiFpga_writeArrayBool ? NiFpga_writeArrayBool(session, control, array, size) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeArrayI8)(NiFpga_Session session, uint32_t control, - const int8_t* array, size_t size) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_writeArrayI8)(NiFpga_Session session, uint32_t control, + const int8_t *array, size_t size) = NULL; -NiFpga_Status NiFpga_WriteArrayI8(NiFpga_Session session, uint32_t control, const int8_t* array, +NiFpga_Status NiFpga_WriteArrayI8(NiFpga_Session session, uint32_t control, const int8_t *array, size_t size) { return NiFpga_writeArrayI8 ? NiFpga_writeArrayI8(session, control, array, size) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeArrayU8)(NiFpga_Session session, uint32_t control, - const uint8_t* array, size_t size) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_writeArrayU8)(NiFpga_Session session, uint32_t control, + const uint8_t *array, size_t size) = NULL; -NiFpga_Status NiFpga_WriteArrayU8(NiFpga_Session session, uint32_t control, const uint8_t* array, +NiFpga_Status NiFpga_WriteArrayU8(NiFpga_Session session, uint32_t control, const uint8_t *array, size_t size) { return NiFpga_writeArrayU8 ? NiFpga_writeArrayU8(session, control, array, size) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeArrayI16)(NiFpga_Session session, uint32_t control, - const int16_t* array, size_t size) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_writeArrayI16)(NiFpga_Session session, uint32_t control, + const int16_t *array, size_t size) = NULL; -NiFpga_Status NiFpga_WriteArrayI16(NiFpga_Session session, uint32_t control, const int16_t* array, +NiFpga_Status NiFpga_WriteArrayI16(NiFpga_Session session, uint32_t control, const int16_t *array, size_t size) { return NiFpga_writeArrayI16 ? NiFpga_writeArrayI16(session, control, array, size) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeArrayU16)(NiFpga_Session session, uint32_t control, - const uint16_t* array, size_t size) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_writeArrayU16)(NiFpga_Session session, uint32_t control, + const uint16_t *array, size_t size) = NULL; -NiFpga_Status NiFpga_WriteArrayU16(NiFpga_Session session, uint32_t control, const uint16_t* array, +NiFpga_Status NiFpga_WriteArrayU16(NiFpga_Session session, uint32_t control, const uint16_t *array, size_t size) { return NiFpga_writeArrayU16 ? NiFpga_writeArrayU16(session, control, array, size) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeArrayI32)(NiFpga_Session session, uint32_t control, - const int32_t* array, size_t size) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_writeArrayI32)(NiFpga_Session session, uint32_t control, + const int32_t *array, size_t size) = NULL; -NiFpga_Status NiFpga_WriteArrayI32(NiFpga_Session session, uint32_t control, const int32_t* array, +NiFpga_Status NiFpga_WriteArrayI32(NiFpga_Session session, uint32_t control, const int32_t *array, size_t size) { return NiFpga_writeArrayI32 ? NiFpga_writeArrayI32(session, control, array, size) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeArrayU32)(NiFpga_Session session, uint32_t control, - const uint32_t* array, size_t size) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_writeArrayU32)(NiFpga_Session session, uint32_t control, + const uint32_t *array, size_t size) = NULL; -NiFpga_Status NiFpga_WriteArrayU32(NiFpga_Session session, uint32_t control, const uint32_t* array, +NiFpga_Status NiFpga_WriteArrayU32(NiFpga_Session session, uint32_t control, const uint32_t *array, size_t size) { return NiFpga_writeArrayU32 ? NiFpga_writeArrayU32(session, control, array, size) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeArrayI64)(NiFpga_Session session, uint32_t control, - const int64_t* array, size_t size) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_writeArrayI64)(NiFpga_Session session, uint32_t control, + const int64_t *array, size_t size) = NULL; -NiFpga_Status NiFpga_WriteArrayI64(NiFpga_Session session, uint32_t control, const int64_t* array, +NiFpga_Status NiFpga_WriteArrayI64(NiFpga_Session session, uint32_t control, const int64_t *array, size_t size) { return NiFpga_writeArrayI64 ? NiFpga_writeArrayI64(session, control, array, size) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeArrayU64)(NiFpga_Session session, uint32_t control, - const uint64_t* array, size_t size) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_writeArrayU64)(NiFpga_Session session, uint32_t control, + const uint64_t *array, size_t size) = NULL; -NiFpga_Status NiFpga_WriteArrayU64(NiFpga_Session session, uint32_t control, const uint64_t* array, +NiFpga_Status NiFpga_WriteArrayU64(NiFpga_Session session, uint32_t control, const uint64_t *array, size_t size) { return NiFpga_writeArrayU64 ? NiFpga_writeArrayU64(session, control, array, size) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeArraySgl)(NiFpga_Session session, uint32_t control, - const float* array, size_t size) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_writeArraySgl)(NiFpga_Session session, uint32_t control, + const float *array, size_t size) = NULL; -NiFpga_Status NiFpga_WriteArraySgl(NiFpga_Session session, uint32_t control, const float* array, +NiFpga_Status NiFpga_WriteArraySgl(NiFpga_Session session, uint32_t control, const float *array, size_t size) { return NiFpga_writeArraySgl ? NiFpga_writeArraySgl(session, control, array, size) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeArrayDbl)(NiFpga_Session session, uint32_t control, - const double* array, size_t size) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_writeArrayDbl)(NiFpga_Session session, uint32_t control, + const double *array, size_t size) = NULL; -NiFpga_Status NiFpga_WriteArrayDbl(NiFpga_Session session, uint32_t control, const double* array, +NiFpga_Status NiFpga_WriteArrayDbl(NiFpga_Session session, uint32_t control, const double *array, size_t size) { return NiFpga_writeArrayDbl ? NiFpga_writeArrayDbl(session, control, array, size) : NiFpga_Status_ResourceNotInitialized; @@ -482,10 +482,10 @@ NiFpga_Status NiFpga_WriteArrayDbl(NiFpga_Session session, uint32_t control, con /* * Interrupt functions. */ -static NiFpga_Status(NiFpga_CCall* NiFpga_reserveIrqContext)(NiFpga_Session session, - NiFpga_IrqContext* context) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_reserveIrqContext)(NiFpga_Session session, + NiFpga_IrqContext *context) = NULL; -NiFpga_Status NiFpga_ReserveIrqContext(NiFpga_Session session, NiFpga_IrqContext* context) { +NiFpga_Status NiFpga_ReserveIrqContext(NiFpga_Session session, NiFpga_IrqContext *context) { const NiFpga_Status result = NiFpga_reserveIrqContext ? NiFpga_reserveIrqContext(session, context) : NiFpga_Status_ResourceNotInitialized; #if NiFpga_CviResourceTracking @@ -495,7 +495,7 @@ NiFpga_Status NiFpga_ReserveIrqContext(NiFpga_Session session, NiFpga_IrqContext return result; } -static NiFpga_Status(NiFpga_CCall* NiFpga_unreserveIrqContext)(NiFpga_Session session, +static NiFpga_Status(NiFpga_CCall *NiFpga_unreserveIrqContext)(NiFpga_Session session, NiFpga_IrqContext context) = NULL; NiFpga_Status NiFpga_UnreserveIrqContext(NiFpga_Session session, NiFpga_IrqContext context) { @@ -506,17 +506,17 @@ NiFpga_Status NiFpga_UnreserveIrqContext(NiFpga_Session session, NiFpga_IrqConte return NiFpga_unreserveIrqContext(session, context); } -static NiFpga_Status(NiFpga_CCall* NiFpga_waitOnIrqs)(NiFpga_Session session, NiFpga_IrqContext context, - uint32_t irqs, uint32_t timeout, uint32_t* irqsAsserted, - NiFpga_Bool* timedOut) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_waitOnIrqs)(NiFpga_Session session, NiFpga_IrqContext context, + uint32_t irqs, uint32_t timeout, uint32_t *irqsAsserted, + NiFpga_Bool *timedOut) = NULL; NiFpga_Status NiFpga_WaitOnIrqs(NiFpga_Session session, NiFpga_IrqContext context, uint32_t irqs, - uint32_t timeout, uint32_t* irqsAsserted, NiFpga_Bool* timedOut) { + uint32_t timeout, uint32_t *irqsAsserted, NiFpga_Bool *timedOut) { return NiFpga_waitOnIrqs ? NiFpga_waitOnIrqs(session, context, irqs, timeout, irqsAsserted, timedOut) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_acknowledgeIrqs)(NiFpga_Session session, uint32_t irqs) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_acknowledgeIrqs)(NiFpga_Session session, uint32_t irqs) = NULL; NiFpga_Status NiFpga_AcknowledgeIrqs(NiFpga_Session session, uint32_t irqs) { return NiFpga_acknowledgeIrqs ? NiFpga_acknowledgeIrqs(session, irqs) @@ -526,7 +526,7 @@ NiFpga_Status NiFpga_AcknowledgeIrqs(NiFpga_Session session, uint32_t irqs) { /* * DMA FIFO state functions. */ -static NiFpga_Status(NiFpga_CCall* NiFpga_configureFifo)(NiFpga_Session session, uint32_t fifo, +static NiFpga_Status(NiFpga_CCall *NiFpga_configureFifo)(NiFpga_Session session, uint32_t fifo, size_t depth) = NULL; NiFpga_Status NiFpga_ConfigureFifo(NiFpga_Session session, uint32_t fifo, size_t depth) { @@ -534,16 +534,16 @@ NiFpga_Status NiFpga_ConfigureFifo(NiFpga_Session session, uint32_t fifo, size_t : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_configureFifo2)(NiFpga_Session session, uint32_t fifo, - size_t requestedDepth, size_t* actualDepth) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_configureFifo2)(NiFpga_Session session, uint32_t fifo, + size_t requestedDepth, size_t *actualDepth) = NULL; NiFpga_Status NiFpga_ConfigureFifo2(NiFpga_Session session, uint32_t fifo, size_t requestedDepth, - size_t* actualDepth) { + size_t *actualDepth) { return NiFpga_configureFifo2 ? NiFpga_configureFifo2(session, fifo, requestedDepth, actualDepth) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_setFifoPropertyU32)(NiFpga_Session session, uint32_t fifo, +static NiFpga_Status(NiFpga_CCall *NiFpga_setFifoPropertyU32)(NiFpga_Session session, uint32_t fifo, NiFpga_FifoProperty property, uint32_t value) = NULL; @@ -553,7 +553,7 @@ NiFpga_Status NiFpga_SetFifoPropertyU32(NiFpga_Session session, uint32_t fifo, N : NiFpga_Status_VersionMismatch; } -static NiFpga_Status(NiFpga_CCall* NiFpga_setFifoPropertyI32)(NiFpga_Session session, uint32_t fifo, +static NiFpga_Status(NiFpga_CCall *NiFpga_setFifoPropertyI32)(NiFpga_Session session, uint32_t fifo, NiFpga_FifoProperty property, int32_t value) = NULL; @@ -563,7 +563,7 @@ NiFpga_Status NiFpga_SetFifoPropertyI32(NiFpga_Session session, uint32_t fifo, N : NiFpga_Status_VersionMismatch; } -static NiFpga_Status(NiFpga_CCall* NiFpga_setFifoPropertyU64)(NiFpga_Session session, uint32_t fifo, +static NiFpga_Status(NiFpga_CCall *NiFpga_setFifoPropertyU64)(NiFpga_Session session, uint32_t fifo, NiFpga_FifoProperty property, uint64_t value) = NULL; @@ -573,7 +573,7 @@ NiFpga_Status NiFpga_SetFifoPropertyU64(NiFpga_Session session, uint32_t fifo, N : NiFpga_Status_VersionMismatch; } -static NiFpga_Status(NiFpga_CCall* NiFpga_setFifoPropertyI64)(NiFpga_Session session, uint32_t fifo, +static NiFpga_Status(NiFpga_CCall *NiFpga_setFifoPropertyI64)(NiFpga_Session session, uint32_t fifo, NiFpga_FifoProperty property, int64_t value) = NULL; @@ -583,67 +583,67 @@ NiFpga_Status NiFpga_SetFifoPropertyI64(NiFpga_Session session, uint32_t fifo, N : NiFpga_Status_VersionMismatch; } -static NiFpga_Status(NiFpga_CCall* NiFpga_setFifoPropertyPtr)(NiFpga_Session session, uint32_t fifo, +static NiFpga_Status(NiFpga_CCall *NiFpga_setFifoPropertyPtr)(NiFpga_Session session, uint32_t fifo, NiFpga_FifoProperty property, - void* value) = NULL; + void *value) = NULL; NiFpga_Status NiFpga_SetFifoPropertyPtr(NiFpga_Session session, uint32_t fifo, NiFpga_FifoProperty property, - void* value) { + void *value) { return NiFpga_setFifoPropertyPtr ? NiFpga_setFifoPropertyPtr(session, fifo, property, value) : NiFpga_Status_VersionMismatch; } -static NiFpga_Status(NiFpga_CCall* NiFpga_getFifoPropertyU32)(NiFpga_Session session, uint32_t fifo, +static NiFpga_Status(NiFpga_CCall *NiFpga_getFifoPropertyU32)(NiFpga_Session session, uint32_t fifo, NiFpga_FifoProperty property, - uint32_t* value) = NULL; + uint32_t *value) = NULL; NiFpga_Status NiFpga_GetFifoPropertyU32(NiFpga_Session session, uint32_t fifo, NiFpga_FifoProperty property, - uint32_t* value) { + uint32_t *value) { return NiFpga_getFifoPropertyU32 ? NiFpga_getFifoPropertyU32(session, fifo, property, value) : NiFpga_Status_VersionMismatch; } -static NiFpga_Status(NiFpga_CCall* NiFpga_getFifoPropertyI32)(NiFpga_Session session, uint32_t fifo, +static NiFpga_Status(NiFpga_CCall *NiFpga_getFifoPropertyI32)(NiFpga_Session session, uint32_t fifo, NiFpga_FifoProperty property, - int32_t* value) = NULL; + int32_t *value) = NULL; NiFpga_Status NiFpga_GetFifoPropertyI32(NiFpga_Session session, uint32_t fifo, NiFpga_FifoProperty property, - int32_t* value) { + int32_t *value) { return NiFpga_getFifoPropertyI32 ? NiFpga_getFifoPropertyI32(session, fifo, property, value) : NiFpga_Status_VersionMismatch; } -static NiFpga_Status(NiFpga_CCall* NiFpga_getFifoPropertyU64)(NiFpga_Session session, uint32_t fifo, +static NiFpga_Status(NiFpga_CCall *NiFpga_getFifoPropertyU64)(NiFpga_Session session, uint32_t fifo, NiFpga_FifoProperty property, - uint64_t* value) = NULL; + uint64_t *value) = NULL; NiFpga_Status NiFpga_GetFifoPropertyU64(NiFpga_Session session, uint32_t fifo, NiFpga_FifoProperty property, - uint64_t* value) { + uint64_t *value) { return NiFpga_getFifoPropertyU64 ? NiFpga_getFifoPropertyU64(session, fifo, property, value) : NiFpga_Status_VersionMismatch; } -static NiFpga_Status(NiFpga_CCall* NiFpga_getFifoPropertyI64)(NiFpga_Session session, uint32_t fifo, +static NiFpga_Status(NiFpga_CCall *NiFpga_getFifoPropertyI64)(NiFpga_Session session, uint32_t fifo, NiFpga_FifoProperty property, - int64_t* value) = NULL; + int64_t *value) = NULL; NiFpga_Status NiFpga_GetFifoPropertyI64(NiFpga_Session session, uint32_t fifo, NiFpga_FifoProperty property, - int64_t* value) { + int64_t *value) { return NiFpga_getFifoPropertyI64 ? NiFpga_getFifoPropertyI64(session, fifo, property, value) : NiFpga_Status_VersionMismatch; } -static NiFpga_Status(NiFpga_CCall* NiFpga_getFifoPropertyPtr)(NiFpga_Session session, uint32_t fifo, +static NiFpga_Status(NiFpga_CCall *NiFpga_getFifoPropertyPtr)(NiFpga_Session session, uint32_t fifo, NiFpga_FifoProperty property, - void** value) = NULL; + void **value) = NULL; NiFpga_Status NiFpga_GetFifoPropertyPtr(NiFpga_Session session, uint32_t fifo, NiFpga_FifoProperty property, - void** value) { + void **value) { return NiFpga_getFifoPropertyPtr ? NiFpga_getFifoPropertyPtr(session, fifo, property, value) : NiFpga_Status_VersionMismatch; } -static NiFpga_Status(NiFpga_CCall* NiFpga_commitFifoConfiguration)(NiFpga_Session session, +static NiFpga_Status(NiFpga_CCall *NiFpga_commitFifoConfiguration)(NiFpga_Session session, uint32_t fifo) = NULL; NiFpga_Status NiFpga_CommitFifoConfiguration(NiFpga_Session session, uint32_t fifo) { @@ -651,13 +651,13 @@ NiFpga_Status NiFpga_CommitFifoConfiguration(NiFpga_Session session, uint32_t fi : NiFpga_Status_VersionMismatch; } -static NiFpga_Status(NiFpga_CCall* NiFpga_startFifo)(NiFpga_Session session, uint32_t fifo) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_startFifo)(NiFpga_Session session, uint32_t fifo) = NULL; NiFpga_Status NiFpga_StartFifo(NiFpga_Session session, uint32_t fifo) { return NiFpga_startFifo ? NiFpga_startFifo(session, fifo) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_stopFifo)(NiFpga_Session session, uint32_t fifo) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_stopFifo)(NiFpga_Session session, uint32_t fifo) = NULL; NiFpga_Status NiFpga_StopFifo(NiFpga_Session session, uint32_t fifo) { return NiFpga_stopFifo ? NiFpga_stopFifo(session, fifo) : NiFpga_Status_ResourceNotInitialized; @@ -666,135 +666,135 @@ NiFpga_Status NiFpga_StopFifo(NiFpga_Session session, uint32_t fifo) { /* * Functions to read from target-to-host DMA FIFOs. */ -static NiFpga_Status(NiFpga_CCall* NiFpga_readFifoBool)(NiFpga_Session session, uint32_t fifo, - NiFpga_Bool* data, size_t numberOfElements, - uint32_t timeout, size_t* elementsRemaining) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_readFifoBool)(NiFpga_Session session, uint32_t fifo, + NiFpga_Bool *data, size_t numberOfElements, + uint32_t timeout, size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_ReadFifoBool(NiFpga_Session session, uint32_t fifo, NiFpga_Bool* data, - size_t numberOfElements, uint32_t timeout, size_t* elementsRemaining) { +NiFpga_Status NiFpga_ReadFifoBool(NiFpga_Session session, uint32_t fifo, NiFpga_Bool *data, + size_t numberOfElements, uint32_t timeout, size_t *elementsRemaining) { return NiFpga_readFifoBool ? NiFpga_readFifoBool(session, fifo, data, numberOfElements, timeout, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readFifoI8)(NiFpga_Session session, uint32_t fifo, int8_t* data, +static NiFpga_Status(NiFpga_CCall *NiFpga_readFifoI8)(NiFpga_Session session, uint32_t fifo, int8_t *data, size_t numberOfElements, uint32_t timeout, - size_t* elementsRemaining) = NULL; + size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_ReadFifoI8(NiFpga_Session session, uint32_t fifo, int8_t* data, size_t numberOfElements, - uint32_t timeout, size_t* elementsRemaining) { +NiFpga_Status NiFpga_ReadFifoI8(NiFpga_Session session, uint32_t fifo, int8_t *data, size_t numberOfElements, + uint32_t timeout, size_t *elementsRemaining) { return NiFpga_readFifoI8 ? NiFpga_readFifoI8(session, fifo, data, numberOfElements, timeout, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readFifoU8)(NiFpga_Session session, uint32_t fifo, uint8_t* data, +static NiFpga_Status(NiFpga_CCall *NiFpga_readFifoU8)(NiFpga_Session session, uint32_t fifo, uint8_t *data, size_t numberOfElements, uint32_t timeout, - size_t* elementsRemaining) = NULL; + size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_ReadFifoU8(NiFpga_Session session, uint32_t fifo, uint8_t* data, size_t numberOfElements, - uint32_t timeout, size_t* elementsRemaining) { +NiFpga_Status NiFpga_ReadFifoU8(NiFpga_Session session, uint32_t fifo, uint8_t *data, size_t numberOfElements, + uint32_t timeout, size_t *elementsRemaining) { return NiFpga_readFifoU8 ? NiFpga_readFifoU8(session, fifo, data, numberOfElements, timeout, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readFifoI16)(NiFpga_Session session, uint32_t fifo, int16_t* data, +static NiFpga_Status(NiFpga_CCall *NiFpga_readFifoI16)(NiFpga_Session session, uint32_t fifo, int16_t *data, size_t numberOfElements, uint32_t timeout, - size_t* elementsRemaining) = NULL; + size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_ReadFifoI16(NiFpga_Session session, uint32_t fifo, int16_t* data, - size_t numberOfElements, uint32_t timeout, size_t* elementsRemaining) { +NiFpga_Status NiFpga_ReadFifoI16(NiFpga_Session session, uint32_t fifo, int16_t *data, + size_t numberOfElements, uint32_t timeout, size_t *elementsRemaining) { return NiFpga_readFifoI16 ? NiFpga_readFifoI16(session, fifo, data, numberOfElements, timeout, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readFifoU16)(NiFpga_Session session, uint32_t fifo, uint16_t* data, +static NiFpga_Status(NiFpga_CCall *NiFpga_readFifoU16)(NiFpga_Session session, uint32_t fifo, uint16_t *data, size_t numberOfElements, uint32_t timeout, - size_t* elementsRemaining) = NULL; + size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_ReadFifoU16(NiFpga_Session session, uint32_t fifo, uint16_t* data, - size_t numberOfElements, uint32_t timeout, size_t* elementsRemaining) { +NiFpga_Status NiFpga_ReadFifoU16(NiFpga_Session session, uint32_t fifo, uint16_t *data, + size_t numberOfElements, uint32_t timeout, size_t *elementsRemaining) { return NiFpga_readFifoU16 ? NiFpga_readFifoU16(session, fifo, data, numberOfElements, timeout, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readFifoI32)(NiFpga_Session session, uint32_t fifo, int32_t* data, +static NiFpga_Status(NiFpga_CCall *NiFpga_readFifoI32)(NiFpga_Session session, uint32_t fifo, int32_t *data, size_t numberOfElements, uint32_t timeout, - size_t* elementsRemaining) = NULL; + size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_ReadFifoI32(NiFpga_Session session, uint32_t fifo, int32_t* data, - size_t numberOfElements, uint32_t timeout, size_t* elementsRemaining) { +NiFpga_Status NiFpga_ReadFifoI32(NiFpga_Session session, uint32_t fifo, int32_t *data, + size_t numberOfElements, uint32_t timeout, size_t *elementsRemaining) { return NiFpga_readFifoI32 ? NiFpga_readFifoI32(session, fifo, data, numberOfElements, timeout, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readFifoU32)(NiFpga_Session session, uint32_t fifo, uint32_t* data, +static NiFpga_Status(NiFpga_CCall *NiFpga_readFifoU32)(NiFpga_Session session, uint32_t fifo, uint32_t *data, size_t numberOfElements, uint32_t timeout, - size_t* elementsRemaining) = NULL; + size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_ReadFifoU32(NiFpga_Session session, uint32_t fifo, uint32_t* data, - size_t numberOfElements, uint32_t timeout, size_t* elementsRemaining) { +NiFpga_Status NiFpga_ReadFifoU32(NiFpga_Session session, uint32_t fifo, uint32_t *data, + size_t numberOfElements, uint32_t timeout, size_t *elementsRemaining) { return NiFpga_readFifoU32 ? NiFpga_readFifoU32(session, fifo, data, numberOfElements, timeout, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readFifoI64)(NiFpga_Session session, uint32_t fifo, int64_t* data, +static NiFpga_Status(NiFpga_CCall *NiFpga_readFifoI64)(NiFpga_Session session, uint32_t fifo, int64_t *data, size_t numberOfElements, uint32_t timeout, - size_t* elementsRemaining) = NULL; + size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_ReadFifoI64(NiFpga_Session session, uint32_t fifo, int64_t* data, - size_t numberOfElements, uint32_t timeout, size_t* elementsRemaining) { +NiFpga_Status NiFpga_ReadFifoI64(NiFpga_Session session, uint32_t fifo, int64_t *data, + size_t numberOfElements, uint32_t timeout, size_t *elementsRemaining) { return NiFpga_readFifoI64 ? NiFpga_readFifoI64(session, fifo, data, numberOfElements, timeout, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readFifoU64)(NiFpga_Session session, uint32_t fifo, uint64_t* data, +static NiFpga_Status(NiFpga_CCall *NiFpga_readFifoU64)(NiFpga_Session session, uint32_t fifo, uint64_t *data, size_t numberOfElements, uint32_t timeout, - size_t* elementsRemaining) = NULL; + size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_ReadFifoU64(NiFpga_Session session, uint32_t fifo, uint64_t* data, - size_t numberOfElements, uint32_t timeout, size_t* elementsRemaining) { +NiFpga_Status NiFpga_ReadFifoU64(NiFpga_Session session, uint32_t fifo, uint64_t *data, + size_t numberOfElements, uint32_t timeout, size_t *elementsRemaining) { return NiFpga_readFifoU64 ? NiFpga_readFifoU64(session, fifo, data, numberOfElements, timeout, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readFifoSgl)(NiFpga_Session session, uint32_t fifo, float* data, +static NiFpga_Status(NiFpga_CCall *NiFpga_readFifoSgl)(NiFpga_Session session, uint32_t fifo, float *data, size_t numberOfElements, uint32_t timeout, - size_t* elementsRemaining) = NULL; + size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_ReadFifoSgl(NiFpga_Session session, uint32_t fifo, float* data, size_t numberOfElements, - uint32_t timeout, size_t* elementsRemaining) { +NiFpga_Status NiFpga_ReadFifoSgl(NiFpga_Session session, uint32_t fifo, float *data, size_t numberOfElements, + uint32_t timeout, size_t *elementsRemaining) { return NiFpga_readFifoSgl ? NiFpga_readFifoSgl(session, fifo, data, numberOfElements, timeout, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readFifoDbl)(NiFpga_Session session, uint32_t fifo, double* data, +static NiFpga_Status(NiFpga_CCall *NiFpga_readFifoDbl)(NiFpga_Session session, uint32_t fifo, double *data, size_t numberOfElements, uint32_t timeout, - size_t* elementsRemaining) = NULL; + size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_ReadFifoDbl(NiFpga_Session session, uint32_t fifo, double* data, size_t numberOfElements, - uint32_t timeout, size_t* elementsRemaining) { +NiFpga_Status NiFpga_ReadFifoDbl(NiFpga_Session session, uint32_t fifo, double *data, size_t numberOfElements, + uint32_t timeout, size_t *elementsRemaining) { return NiFpga_readFifoDbl ? NiFpga_readFifoDbl(session, fifo, data, numberOfElements, timeout, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readFifoComposite)(NiFpga_Session session, uint32_t fifo, - void* data, uint32_t bytesPerElement, +static NiFpga_Status(NiFpga_CCall *NiFpga_readFifoComposite)(NiFpga_Session session, uint32_t fifo, + void *data, uint32_t bytesPerElement, size_t numberOfElements, uint32_t timeout, - size_t* elementsRemaining) = NULL; + size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_ReadFifoComposite(NiFpga_Session session, uint32_t fifo, void* data, +NiFpga_Status NiFpga_ReadFifoComposite(NiFpga_Session session, uint32_t fifo, void *data, uint32_t bytesPerElement, size_t numberOfElements, uint32_t timeout, - size_t* elementsRemaining) { + size_t *elementsRemaining) { return NiFpga_readFifoComposite ? NiFpga_readFifoComposite(session, fifo, data, bytesPerElement, numberOfElements, timeout, elementsRemaining) : NiFpga_Status_VersionMismatch; @@ -803,442 +803,442 @@ NiFpga_Status NiFpga_ReadFifoComposite(NiFpga_Session session, uint32_t fifo, vo /* * Functions to write to host-to-target DMA FIFOs. */ -static NiFpga_Status(NiFpga_CCall* NiFpga_writeFifoBool)(NiFpga_Session session, uint32_t fifo, - const NiFpga_Bool* data, size_t numberOfElements, +static NiFpga_Status(NiFpga_CCall *NiFpga_writeFifoBool)(NiFpga_Session session, uint32_t fifo, + const NiFpga_Bool *data, size_t numberOfElements, uint32_t timeout, - size_t* emptyElementsRemaining) = NULL; + size_t *emptyElementsRemaining) = NULL; -NiFpga_Status NiFpga_WriteFifoBool(NiFpga_Session session, uint32_t fifo, const NiFpga_Bool* data, +NiFpga_Status NiFpga_WriteFifoBool(NiFpga_Session session, uint32_t fifo, const NiFpga_Bool *data, size_t numberOfElements, uint32_t timeout, - size_t* emptyElementsRemaining) { + size_t *emptyElementsRemaining) { return NiFpga_writeFifoBool ? NiFpga_writeFifoBool(session, fifo, data, numberOfElements, timeout, emptyElementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeFifoI8)(NiFpga_Session session, uint32_t fifo, - const int8_t* data, size_t numberOfElements, +static NiFpga_Status(NiFpga_CCall *NiFpga_writeFifoI8)(NiFpga_Session session, uint32_t fifo, + const int8_t *data, size_t numberOfElements, uint32_t timeout, - size_t* emptyElementsRemaining) = NULL; + size_t *emptyElementsRemaining) = NULL; -NiFpga_Status NiFpga_WriteFifoI8(NiFpga_Session session, uint32_t fifo, const int8_t* data, - size_t numberOfElements, uint32_t timeout, size_t* emptyElementsRemaining) { +NiFpga_Status NiFpga_WriteFifoI8(NiFpga_Session session, uint32_t fifo, const int8_t *data, + size_t numberOfElements, uint32_t timeout, size_t *emptyElementsRemaining) { return NiFpga_writeFifoI8 ? NiFpga_writeFifoI8(session, fifo, data, numberOfElements, timeout, emptyElementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeFifoU8)(NiFpga_Session session, uint32_t fifo, - const uint8_t* data, size_t numberOfElements, +static NiFpga_Status(NiFpga_CCall *NiFpga_writeFifoU8)(NiFpga_Session session, uint32_t fifo, + const uint8_t *data, size_t numberOfElements, uint32_t timeout, - size_t* emptyElementsRemaining) = NULL; + size_t *emptyElementsRemaining) = NULL; -NiFpga_Status NiFpga_WriteFifoU8(NiFpga_Session session, uint32_t fifo, const uint8_t* data, - size_t numberOfElements, uint32_t timeout, size_t* emptyElementsRemaining) { +NiFpga_Status NiFpga_WriteFifoU8(NiFpga_Session session, uint32_t fifo, const uint8_t *data, + size_t numberOfElements, uint32_t timeout, size_t *emptyElementsRemaining) { return NiFpga_writeFifoU8 ? NiFpga_writeFifoU8(session, fifo, data, numberOfElements, timeout, emptyElementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeFifoI16)(NiFpga_Session session, uint32_t fifo, - const int16_t* data, size_t numberOfElements, +static NiFpga_Status(NiFpga_CCall *NiFpga_writeFifoI16)(NiFpga_Session session, uint32_t fifo, + const int16_t *data, size_t numberOfElements, uint32_t timeout, - size_t* emptyElementsRemaining) = NULL; + size_t *emptyElementsRemaining) = NULL; -NiFpga_Status NiFpga_WriteFifoI16(NiFpga_Session session, uint32_t fifo, const int16_t* data, - size_t numberOfElements, uint32_t timeout, size_t* emptyElementsRemaining) { +NiFpga_Status NiFpga_WriteFifoI16(NiFpga_Session session, uint32_t fifo, const int16_t *data, + size_t numberOfElements, uint32_t timeout, size_t *emptyElementsRemaining) { return NiFpga_writeFifoI16 ? NiFpga_writeFifoI16(session, fifo, data, numberOfElements, timeout, emptyElementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeFifoU16)(NiFpga_Session session, uint32_t fifo, - const uint16_t* data, size_t numberOfElements, +static NiFpga_Status(NiFpga_CCall *NiFpga_writeFifoU16)(NiFpga_Session session, uint32_t fifo, + const uint16_t *data, size_t numberOfElements, uint32_t timeout, - size_t* emptyElementsRemaining) = NULL; + size_t *emptyElementsRemaining) = NULL; -NiFpga_Status NiFpga_WriteFifoU16(NiFpga_Session session, uint32_t fifo, const uint16_t* data, - size_t numberOfElements, uint32_t timeout, size_t* emptyElementsRemaining) { +NiFpga_Status NiFpga_WriteFifoU16(NiFpga_Session session, uint32_t fifo, const uint16_t *data, + size_t numberOfElements, uint32_t timeout, size_t *emptyElementsRemaining) { return NiFpga_writeFifoU16 ? NiFpga_writeFifoU16(session, fifo, data, numberOfElements, timeout, emptyElementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeFifoI32)(NiFpga_Session session, uint32_t fifo, - const int32_t* data, size_t numberOfElements, +static NiFpga_Status(NiFpga_CCall *NiFpga_writeFifoI32)(NiFpga_Session session, uint32_t fifo, + const int32_t *data, size_t numberOfElements, uint32_t timeout, - size_t* emptyElementsRemaining) = NULL; + size_t *emptyElementsRemaining) = NULL; -NiFpga_Status NiFpga_WriteFifoI32(NiFpga_Session session, uint32_t fifo, const int32_t* data, - size_t numberOfElements, uint32_t timeout, size_t* emptyElementsRemaining) { +NiFpga_Status NiFpga_WriteFifoI32(NiFpga_Session session, uint32_t fifo, const int32_t *data, + size_t numberOfElements, uint32_t timeout, size_t *emptyElementsRemaining) { return NiFpga_writeFifoI32 ? NiFpga_writeFifoI32(session, fifo, data, numberOfElements, timeout, emptyElementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeFifoU32)(NiFpga_Session session, uint32_t fifo, - const uint32_t* data, size_t numberOfElements, +static NiFpga_Status(NiFpga_CCall *NiFpga_writeFifoU32)(NiFpga_Session session, uint32_t fifo, + const uint32_t *data, size_t numberOfElements, uint32_t timeout, - size_t* emptyElementsRemaining) = NULL; + size_t *emptyElementsRemaining) = NULL; -NiFpga_Status NiFpga_WriteFifoU32(NiFpga_Session session, uint32_t fifo, const uint32_t* data, - size_t numberOfElements, uint32_t timeout, size_t* emptyElementsRemaining) { +NiFpga_Status NiFpga_WriteFifoU32(NiFpga_Session session, uint32_t fifo, const uint32_t *data, + size_t numberOfElements, uint32_t timeout, size_t *emptyElementsRemaining) { return NiFpga_writeFifoU32 ? NiFpga_writeFifoU32(session, fifo, data, numberOfElements, timeout, emptyElementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeFifoI64)(NiFpga_Session session, uint32_t fifo, - const int64_t* data, size_t numberOfElements, +static NiFpga_Status(NiFpga_CCall *NiFpga_writeFifoI64)(NiFpga_Session session, uint32_t fifo, + const int64_t *data, size_t numberOfElements, uint32_t timeout, - size_t* emptyElementsRemaining) = NULL; + size_t *emptyElementsRemaining) = NULL; -NiFpga_Status NiFpga_WriteFifoI64(NiFpga_Session session, uint32_t fifo, const int64_t* data, - size_t numberOfElements, uint32_t timeout, size_t* emptyElementsRemaining) { +NiFpga_Status NiFpga_WriteFifoI64(NiFpga_Session session, uint32_t fifo, const int64_t *data, + size_t numberOfElements, uint32_t timeout, size_t *emptyElementsRemaining) { return NiFpga_writeFifoI64 ? NiFpga_writeFifoI64(session, fifo, data, numberOfElements, timeout, emptyElementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeFifoU64)(NiFpga_Session session, uint32_t fifo, - const uint64_t* data, size_t numberOfElements, +static NiFpga_Status(NiFpga_CCall *NiFpga_writeFifoU64)(NiFpga_Session session, uint32_t fifo, + const uint64_t *data, size_t numberOfElements, uint32_t timeout, - size_t* emptyElementsRemaining) = NULL; + size_t *emptyElementsRemaining) = NULL; -NiFpga_Status NiFpga_WriteFifoU64(NiFpga_Session session, uint32_t fifo, const uint64_t* data, - size_t numberOfElements, uint32_t timeout, size_t* emptyElementsRemaining) { +NiFpga_Status NiFpga_WriteFifoU64(NiFpga_Session session, uint32_t fifo, const uint64_t *data, + size_t numberOfElements, uint32_t timeout, size_t *emptyElementsRemaining) { return NiFpga_writeFifoU64 ? NiFpga_writeFifoU64(session, fifo, data, numberOfElements, timeout, emptyElementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeFifoSgl)(NiFpga_Session session, uint32_t fifo, - const float* data, size_t numberOfElements, +static NiFpga_Status(NiFpga_CCall *NiFpga_writeFifoSgl)(NiFpga_Session session, uint32_t fifo, + const float *data, size_t numberOfElements, uint32_t timeout, - size_t* emptyElementsRemaining) = NULL; + size_t *emptyElementsRemaining) = NULL; -NiFpga_Status NiFpga_WriteFifoSgl(NiFpga_Session session, uint32_t fifo, const float* data, - size_t numberOfElements, uint32_t timeout, size_t* emptyElementsRemaining) { +NiFpga_Status NiFpga_WriteFifoSgl(NiFpga_Session session, uint32_t fifo, const float *data, + size_t numberOfElements, uint32_t timeout, size_t *emptyElementsRemaining) { return NiFpga_writeFifoSgl ? NiFpga_writeFifoSgl(session, fifo, data, numberOfElements, timeout, emptyElementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeFifoDbl)(NiFpga_Session session, uint32_t fifo, - const double* data, size_t numberOfElements, +static NiFpga_Status(NiFpga_CCall *NiFpga_writeFifoDbl)(NiFpga_Session session, uint32_t fifo, + const double *data, size_t numberOfElements, uint32_t timeout, - size_t* emptyElementsRemaining) = NULL; + size_t *emptyElementsRemaining) = NULL; -NiFpga_Status NiFpga_WriteFifoDbl(NiFpga_Session session, uint32_t fifo, const double* data, - size_t numberOfElements, uint32_t timeout, size_t* emptyElementsRemaining) { +NiFpga_Status NiFpga_WriteFifoDbl(NiFpga_Session session, uint32_t fifo, const double *data, + size_t numberOfElements, uint32_t timeout, size_t *emptyElementsRemaining) { return NiFpga_writeFifoDbl ? NiFpga_writeFifoDbl(session, fifo, data, numberOfElements, timeout, emptyElementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeFifoComposite)(NiFpga_Session session, uint32_t fifo, - const void* data, uint32_t bytesPerElement, +static NiFpga_Status(NiFpga_CCall *NiFpga_writeFifoComposite)(NiFpga_Session session, uint32_t fifo, + const void *data, uint32_t bytesPerElement, size_t numberOfElements, uint32_t timeout, - size_t* emptyElementsRemaining) = NULL; + size_t *emptyElementsRemaining) = NULL; -NiFpga_Status NiFpga_WriteFifoComposite(NiFpga_Session session, uint32_t fifo, const void* data, +NiFpga_Status NiFpga_WriteFifoComposite(NiFpga_Session session, uint32_t fifo, const void *data, uint32_t bytesPerElement, size_t numberOfElements, uint32_t timeout, - size_t* emptyElementsRemaining) { + size_t *emptyElementsRemaining) { return NiFpga_writeFifoComposite ? NiFpga_writeFifoComposite(session, fifo, data, bytesPerElement, numberOfElements, timeout, emptyElementsRemaining) : NiFpga_Status_VersionMismatch; } -static NiFpga_Status(NiFpga_CCall* NiFpga_acquireFifoReadElementsBool)( - NiFpga_Session session, uint32_t fifo, NiFpga_Bool** elements, size_t elementsRequested, - uint32_t timeout, size_t* elementsAcquired, size_t* elementsRemaining) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_acquireFifoReadElementsBool)( + NiFpga_Session session, uint32_t fifo, NiFpga_Bool **elements, size_t elementsRequested, + uint32_t timeout, size_t *elementsAcquired, size_t *elementsRemaining) = NULL; NiFpga_Status NiFpga_AcquireFifoReadElementsBool(NiFpga_Session session, uint32_t fifo, - NiFpga_Bool** elements, size_t elementsRequested, - uint32_t timeout, size_t* elementsAcquired, - size_t* elementsRemaining) { + NiFpga_Bool **elements, size_t elementsRequested, + uint32_t timeout, size_t *elementsAcquired, + size_t *elementsRemaining) { return NiFpga_acquireFifoReadElementsBool ? NiFpga_acquireFifoReadElementsBool(session, fifo, elements, elementsRequested, timeout, elementsAcquired, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_acquireFifoReadElementsI8)( - NiFpga_Session session, uint32_t fifo, int8_t** elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_acquireFifoReadElementsI8)( + NiFpga_Session session, uint32_t fifo, int8_t **elements, size_t elementsRequested, uint32_t timeout, + size_t *elementsAcquired, size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_AcquireFifoReadElementsI8(NiFpga_Session session, uint32_t fifo, int8_t** elements, +NiFpga_Status NiFpga_AcquireFifoReadElementsI8(NiFpga_Session session, uint32_t fifo, int8_t **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) { + size_t *elementsAcquired, size_t *elementsRemaining) { return NiFpga_acquireFifoReadElementsI8 ? NiFpga_acquireFifoReadElementsI8(session, fifo, elements, elementsRequested, timeout, elementsAcquired, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_acquireFifoReadElementsU8)( - NiFpga_Session session, uint32_t fifo, uint8_t** elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_acquireFifoReadElementsU8)( + NiFpga_Session session, uint32_t fifo, uint8_t **elements, size_t elementsRequested, uint32_t timeout, + size_t *elementsAcquired, size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_AcquireFifoReadElementsU8(NiFpga_Session session, uint32_t fifo, uint8_t** elements, +NiFpga_Status NiFpga_AcquireFifoReadElementsU8(NiFpga_Session session, uint32_t fifo, uint8_t **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) { + size_t *elementsAcquired, size_t *elementsRemaining) { return NiFpga_acquireFifoReadElementsU8 ? NiFpga_acquireFifoReadElementsU8(session, fifo, elements, elementsRequested, timeout, elementsAcquired, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_acquireFifoReadElementsI16)( - NiFpga_Session session, uint32_t fifo, int16_t** elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_acquireFifoReadElementsI16)( + NiFpga_Session session, uint32_t fifo, int16_t **elements, size_t elementsRequested, uint32_t timeout, + size_t *elementsAcquired, size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_AcquireFifoReadElementsI16(NiFpga_Session session, uint32_t fifo, int16_t** elements, +NiFpga_Status NiFpga_AcquireFifoReadElementsI16(NiFpga_Session session, uint32_t fifo, int16_t **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) { + size_t *elementsAcquired, size_t *elementsRemaining) { return NiFpga_acquireFifoReadElementsI16 ? NiFpga_acquireFifoReadElementsI16(session, fifo, elements, elementsRequested, timeout, elementsAcquired, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_acquireFifoReadElementsU16)( - NiFpga_Session session, uint32_t fifo, uint16_t** elements, size_t elementsRequested, - uint32_t timeout, size_t* elementsAcquired, size_t* elementsRemaining) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_acquireFifoReadElementsU16)( + NiFpga_Session session, uint32_t fifo, uint16_t **elements, size_t elementsRequested, + uint32_t timeout, size_t *elementsAcquired, size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_AcquireFifoReadElementsU16(NiFpga_Session session, uint32_t fifo, uint16_t** elements, +NiFpga_Status NiFpga_AcquireFifoReadElementsU16(NiFpga_Session session, uint32_t fifo, uint16_t **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) { + size_t *elementsAcquired, size_t *elementsRemaining) { return NiFpga_acquireFifoReadElementsU16 ? NiFpga_acquireFifoReadElementsU16(session, fifo, elements, elementsRequested, timeout, elementsAcquired, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_acquireFifoReadElementsI32)( - NiFpga_Session session, uint32_t fifo, int32_t** elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_acquireFifoReadElementsI32)( + NiFpga_Session session, uint32_t fifo, int32_t **elements, size_t elementsRequested, uint32_t timeout, + size_t *elementsAcquired, size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_AcquireFifoReadElementsI32(NiFpga_Session session, uint32_t fifo, int32_t** elements, +NiFpga_Status NiFpga_AcquireFifoReadElementsI32(NiFpga_Session session, uint32_t fifo, int32_t **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) { + size_t *elementsAcquired, size_t *elementsRemaining) { return NiFpga_acquireFifoReadElementsI32 ? NiFpga_acquireFifoReadElementsI32(session, fifo, elements, elementsRequested, timeout, elementsAcquired, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_acquireFifoReadElementsU32)( - NiFpga_Session session, uint32_t fifo, uint32_t** elements, size_t elementsRequested, - uint32_t timeout, size_t* elementsAcquired, size_t* elementsRemaining) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_acquireFifoReadElementsU32)( + NiFpga_Session session, uint32_t fifo, uint32_t **elements, size_t elementsRequested, + uint32_t timeout, size_t *elementsAcquired, size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_AcquireFifoReadElementsU32(NiFpga_Session session, uint32_t fifo, uint32_t** elements, +NiFpga_Status NiFpga_AcquireFifoReadElementsU32(NiFpga_Session session, uint32_t fifo, uint32_t **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) { + size_t *elementsAcquired, size_t *elementsRemaining) { return NiFpga_acquireFifoReadElementsU32 ? NiFpga_acquireFifoReadElementsU32(session, fifo, elements, elementsRequested, timeout, elementsAcquired, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_acquireFifoReadElementsI64)( - NiFpga_Session session, uint32_t fifo, int64_t** elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_acquireFifoReadElementsI64)( + NiFpga_Session session, uint32_t fifo, int64_t **elements, size_t elementsRequested, uint32_t timeout, + size_t *elementsAcquired, size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_AcquireFifoReadElementsI64(NiFpga_Session session, uint32_t fifo, int64_t** elements, +NiFpga_Status NiFpga_AcquireFifoReadElementsI64(NiFpga_Session session, uint32_t fifo, int64_t **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) { + size_t *elementsAcquired, size_t *elementsRemaining) { return NiFpga_acquireFifoReadElementsI64 ? NiFpga_acquireFifoReadElementsI64(session, fifo, elements, elementsRequested, timeout, elementsAcquired, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_acquireFifoReadElementsU64)( - NiFpga_Session session, uint32_t fifo, uint64_t** elements, size_t elementsRequested, - uint32_t timeout, size_t* elementsAcquired, size_t* elementsRemaining) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_acquireFifoReadElementsU64)( + NiFpga_Session session, uint32_t fifo, uint64_t **elements, size_t elementsRequested, + uint32_t timeout, size_t *elementsAcquired, size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_AcquireFifoReadElementsU64(NiFpga_Session session, uint32_t fifo, uint64_t** elements, +NiFpga_Status NiFpga_AcquireFifoReadElementsU64(NiFpga_Session session, uint32_t fifo, uint64_t **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) { + size_t *elementsAcquired, size_t *elementsRemaining) { return NiFpga_acquireFifoReadElementsU64 ? NiFpga_acquireFifoReadElementsU64(session, fifo, elements, elementsRequested, timeout, elementsAcquired, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_acquireFifoReadElementsSgl)( - NiFpga_Session session, uint32_t fifo, float** elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_acquireFifoReadElementsSgl)( + NiFpga_Session session, uint32_t fifo, float **elements, size_t elementsRequested, uint32_t timeout, + size_t *elementsAcquired, size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_AcquireFifoReadElementsSgl(NiFpga_Session session, uint32_t fifo, float** elements, +NiFpga_Status NiFpga_AcquireFifoReadElementsSgl(NiFpga_Session session, uint32_t fifo, float **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) { + size_t *elementsAcquired, size_t *elementsRemaining) { return NiFpga_acquireFifoReadElementsSgl ? NiFpga_acquireFifoReadElementsSgl(session, fifo, elements, elementsRequested, timeout, elementsAcquired, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_acquireFifoReadElementsDbl)( - NiFpga_Session session, uint32_t fifo, double** elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_acquireFifoReadElementsDbl)( + NiFpga_Session session, uint32_t fifo, double **elements, size_t elementsRequested, uint32_t timeout, + size_t *elementsAcquired, size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_AcquireFifoReadElementsDbl(NiFpga_Session session, uint32_t fifo, double** elements, +NiFpga_Status NiFpga_AcquireFifoReadElementsDbl(NiFpga_Session session, uint32_t fifo, double **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) { + size_t *elementsAcquired, size_t *elementsRemaining) { return NiFpga_acquireFifoReadElementsDbl ? NiFpga_acquireFifoReadElementsDbl(session, fifo, elements, elementsRequested, timeout, elementsAcquired, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_acquireFifoWriteElementsBool)( - NiFpga_Session session, uint32_t fifo, NiFpga_Bool** elements, size_t elementsRequested, - uint32_t timeout, size_t* elementsAcquired, size_t* elementsRemaining) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_acquireFifoWriteElementsBool)( + NiFpga_Session session, uint32_t fifo, NiFpga_Bool **elements, size_t elementsRequested, + uint32_t timeout, size_t *elementsAcquired, size_t *elementsRemaining) = NULL; NiFpga_Status NiFpga_AcquireFifoWriteElementsBool(NiFpga_Session session, uint32_t fifo, - NiFpga_Bool** elements, size_t elementsRequested, - uint32_t timeout, size_t* elementsAcquired, - size_t* elementsRemaining) { + NiFpga_Bool **elements, size_t elementsRequested, + uint32_t timeout, size_t *elementsAcquired, + size_t *elementsRemaining) { return NiFpga_acquireFifoWriteElementsBool ? NiFpga_acquireFifoWriteElementsBool(session, fifo, elements, elementsRequested, timeout, elementsAcquired, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_acquireFifoWriteElementsI8)( - NiFpga_Session session, uint32_t fifo, int8_t** elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_acquireFifoWriteElementsI8)( + NiFpga_Session session, uint32_t fifo, int8_t **elements, size_t elementsRequested, uint32_t timeout, + size_t *elementsAcquired, size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_AcquireFifoWriteElementsI8(NiFpga_Session session, uint32_t fifo, int8_t** elements, +NiFpga_Status NiFpga_AcquireFifoWriteElementsI8(NiFpga_Session session, uint32_t fifo, int8_t **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) { + size_t *elementsAcquired, size_t *elementsRemaining) { return NiFpga_acquireFifoWriteElementsI8 ? NiFpga_acquireFifoWriteElementsI8(session, fifo, elements, elementsRequested, timeout, elementsAcquired, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_acquireFifoWriteElementsU8)( - NiFpga_Session session, uint32_t fifo, uint8_t** elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_acquireFifoWriteElementsU8)( + NiFpga_Session session, uint32_t fifo, uint8_t **elements, size_t elementsRequested, uint32_t timeout, + size_t *elementsAcquired, size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_AcquireFifoWriteElementsU8(NiFpga_Session session, uint32_t fifo, uint8_t** elements, +NiFpga_Status NiFpga_AcquireFifoWriteElementsU8(NiFpga_Session session, uint32_t fifo, uint8_t **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) { + size_t *elementsAcquired, size_t *elementsRemaining) { return NiFpga_acquireFifoWriteElementsU8 ? NiFpga_acquireFifoWriteElementsU8(session, fifo, elements, elementsRequested, timeout, elementsAcquired, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_acquireFifoWriteElementsI16)( - NiFpga_Session session, uint32_t fifo, int16_t** elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_acquireFifoWriteElementsI16)( + NiFpga_Session session, uint32_t fifo, int16_t **elements, size_t elementsRequested, uint32_t timeout, + size_t *elementsAcquired, size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_AcquireFifoWriteElementsI16(NiFpga_Session session, uint32_t fifo, int16_t** elements, +NiFpga_Status NiFpga_AcquireFifoWriteElementsI16(NiFpga_Session session, uint32_t fifo, int16_t **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) { + size_t *elementsAcquired, size_t *elementsRemaining) { return NiFpga_acquireFifoWriteElementsI16 ? NiFpga_acquireFifoWriteElementsI16(session, fifo, elements, elementsRequested, timeout, elementsAcquired, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_acquireFifoWriteElementsU16)( - NiFpga_Session session, uint32_t fifo, uint16_t** elements, size_t elementsRequested, - uint32_t timeout, size_t* elementsAcquired, size_t* elementsRemaining) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_acquireFifoWriteElementsU16)( + NiFpga_Session session, uint32_t fifo, uint16_t **elements, size_t elementsRequested, + uint32_t timeout, size_t *elementsAcquired, size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_AcquireFifoWriteElementsU16(NiFpga_Session session, uint32_t fifo, uint16_t** elements, +NiFpga_Status NiFpga_AcquireFifoWriteElementsU16(NiFpga_Session session, uint32_t fifo, uint16_t **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) { + size_t *elementsAcquired, size_t *elementsRemaining) { return NiFpga_acquireFifoWriteElementsU16 ? NiFpga_acquireFifoWriteElementsU16(session, fifo, elements, elementsRequested, timeout, elementsAcquired, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_acquireFifoWriteElementsI32)( - NiFpga_Session session, uint32_t fifo, int32_t** elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_acquireFifoWriteElementsI32)( + NiFpga_Session session, uint32_t fifo, int32_t **elements, size_t elementsRequested, uint32_t timeout, + size_t *elementsAcquired, size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_AcquireFifoWriteElementsI32(NiFpga_Session session, uint32_t fifo, int32_t** elements, +NiFpga_Status NiFpga_AcquireFifoWriteElementsI32(NiFpga_Session session, uint32_t fifo, int32_t **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) { + size_t *elementsAcquired, size_t *elementsRemaining) { return NiFpga_acquireFifoWriteElementsI32 ? NiFpga_acquireFifoWriteElementsI32(session, fifo, elements, elementsRequested, timeout, elementsAcquired, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_acquireFifoWriteElementsU32)( - NiFpga_Session session, uint32_t fifo, uint32_t** elements, size_t elementsRequested, - uint32_t timeout, size_t* elementsAcquired, size_t* elementsRemaining) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_acquireFifoWriteElementsU32)( + NiFpga_Session session, uint32_t fifo, uint32_t **elements, size_t elementsRequested, + uint32_t timeout, size_t *elementsAcquired, size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_AcquireFifoWriteElementsU32(NiFpga_Session session, uint32_t fifo, uint32_t** elements, +NiFpga_Status NiFpga_AcquireFifoWriteElementsU32(NiFpga_Session session, uint32_t fifo, uint32_t **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) { + size_t *elementsAcquired, size_t *elementsRemaining) { return NiFpga_acquireFifoWriteElementsU32 ? NiFpga_acquireFifoWriteElementsU32(session, fifo, elements, elementsRequested, timeout, elementsAcquired, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_acquireFifoWriteElementsI64)( - NiFpga_Session session, uint32_t fifo, int64_t** elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_acquireFifoWriteElementsI64)( + NiFpga_Session session, uint32_t fifo, int64_t **elements, size_t elementsRequested, uint32_t timeout, + size_t *elementsAcquired, size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_AcquireFifoWriteElementsI64(NiFpga_Session session, uint32_t fifo, int64_t** elements, +NiFpga_Status NiFpga_AcquireFifoWriteElementsI64(NiFpga_Session session, uint32_t fifo, int64_t **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) { + size_t *elementsAcquired, size_t *elementsRemaining) { return NiFpga_acquireFifoWriteElementsI64 ? NiFpga_acquireFifoWriteElementsI64(session, fifo, elements, elementsRequested, timeout, elementsAcquired, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_acquireFifoWriteElementsU64)( - NiFpga_Session session, uint32_t fifo, uint64_t** elements, size_t elementsRequested, - uint32_t timeout, size_t* elementsAcquired, size_t* elementsRemaining) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_acquireFifoWriteElementsU64)( + NiFpga_Session session, uint32_t fifo, uint64_t **elements, size_t elementsRequested, + uint32_t timeout, size_t *elementsAcquired, size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_AcquireFifoWriteElementsU64(NiFpga_Session session, uint32_t fifo, uint64_t** elements, +NiFpga_Status NiFpga_AcquireFifoWriteElementsU64(NiFpga_Session session, uint32_t fifo, uint64_t **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) { + size_t *elementsAcquired, size_t *elementsRemaining) { return NiFpga_acquireFifoWriteElementsU64 ? NiFpga_acquireFifoWriteElementsU64(session, fifo, elements, elementsRequested, timeout, elementsAcquired, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_acquireFifoWriteElementsSgl)( - NiFpga_Session session, uint32_t fifo, float** elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_acquireFifoWriteElementsSgl)( + NiFpga_Session session, uint32_t fifo, float **elements, size_t elementsRequested, uint32_t timeout, + size_t *elementsAcquired, size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_AcquireFifoWriteElementsSgl(NiFpga_Session session, uint32_t fifo, float** elements, +NiFpga_Status NiFpga_AcquireFifoWriteElementsSgl(NiFpga_Session session, uint32_t fifo, float **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) { + size_t *elementsAcquired, size_t *elementsRemaining) { return NiFpga_acquireFifoWriteElementsSgl ? NiFpga_acquireFifoWriteElementsSgl(session, fifo, elements, elementsRequested, timeout, elementsAcquired, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_acquireFifoWriteElementsDbl)( - NiFpga_Session session, uint32_t fifo, double** elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_acquireFifoWriteElementsDbl)( + NiFpga_Session session, uint32_t fifo, double **elements, size_t elementsRequested, uint32_t timeout, + size_t *elementsAcquired, size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_AcquireFifoWriteElementsDbl(NiFpga_Session session, uint32_t fifo, double** elements, +NiFpga_Status NiFpga_AcquireFifoWriteElementsDbl(NiFpga_Session session, uint32_t fifo, double **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) { + size_t *elementsAcquired, size_t *elementsRemaining) { return NiFpga_acquireFifoWriteElementsDbl ? NiFpga_acquireFifoWriteElementsDbl(session, fifo, elements, elementsRequested, timeout, elementsAcquired, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_releaseFifoElements)(NiFpga_Session session, uint32_t fifo, +static NiFpga_Status(NiFpga_CCall *NiFpga_releaseFifoElements)(NiFpga_Session session, uint32_t fifo, size_t elements) = NULL; NiFpga_Status NiFpga_ReleaseFifoElements(NiFpga_Session session, uint32_t fifo, size_t elements) { @@ -1246,29 +1246,29 @@ NiFpga_Status NiFpga_ReleaseFifoElements(NiFpga_Session session, uint32_t fifo, : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_getPeerToPeerFifoEndpoint)(NiFpga_Session session, uint32_t fifo, - uint32_t* endpoint) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_getPeerToPeerFifoEndpoint)(NiFpga_Session session, uint32_t fifo, + uint32_t *endpoint) = NULL; -NiFpga_Status NiFpga_GetPeerToPeerFifoEndpoint(NiFpga_Session session, uint32_t fifo, uint32_t* endpoint) { +NiFpga_Status NiFpga_GetPeerToPeerFifoEndpoint(NiFpga_Session session, uint32_t fifo, uint32_t *endpoint) { return NiFpga_getPeerToPeerFifoEndpoint ? NiFpga_getPeerToPeerFifoEndpoint(session, fifo, endpoint) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_getBitfileContents)(NiFpga_Session session, - const char** contents) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_getBitfileContents)(NiFpga_Session session, + const char **contents) = NULL; -NiFpga_Status NiFpga_GetBitfileContents(NiFpga_Session session, const char** contents) { +NiFpga_Status NiFpga_GetBitfileContents(NiFpga_Session session, const char **contents) { return NiFpga_getBitfileContents ? NiFpga_getBitfileContents(session, contents) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_clientFunctionCall)(NiFpga_Session session, uint32_t group, - uint32_t functionId, const void* inBuffer, - size_t inBufferSize, void* outBuffer, +static NiFpga_Status(NiFpga_CCall *NiFpga_clientFunctionCall)(NiFpga_Session session, uint32_t group, + uint32_t functionId, const void *inBuffer, + size_t inBufferSize, void *outBuffer, size_t outBufferSize) = NULL; NiFpga_Status NiFpga_ClientFunctionCall(NiFpga_Session session, uint32_t group, uint32_t functionId, - const void* inBuffer, size_t inBufferSize, void* outBuffer, + const void *inBuffer, size_t inBufferSize, void *outBuffer, size_t outBufferSize) { return NiFpga_clientFunctionCall ? NiFpga_clientFunctionCall(session, group, functionId, inBuffer, inBufferSize, outBuffer, outBufferSize) @@ -1278,158 +1278,158 @@ NiFpga_Status NiFpga_ClientFunctionCall(NiFpga_Session session, uint32_t group, /** * A type large enough to hold entry point function pointer. */ -typedef NiFpga_Status(NiFpga_CCall* NiFpga_FunctionPointer)(); +typedef NiFpga_Status(NiFpga_CCall *NiFpga_FunctionPointer)(); /** * A NULL-terminated array of all entry point functions. */ static const struct { - const char* const name; - NiFpga_FunctionPointer* const address; + const char *const name; + NiFpga_FunctionPointer *const address; NiFpga_Bool required; } NiFpga_functions[] = { - {"NiFpgaDll_Open", (NiFpga_FunctionPointer*)&NiFpga_open, 1}, - {"NiFpgaDll_Close", (NiFpga_FunctionPointer*)&NiFpga_close, 1}, - {"NiFpgaDll_Run", (NiFpga_FunctionPointer*)&NiFpga_run, 1}, - {"NiFpgaDll_Abort", (NiFpga_FunctionPointer*)&NiFpga_abort, 1}, - {"NiFpgaDll_Reset", (NiFpga_FunctionPointer*)&NiFpga_reset, 1}, - {"NiFpgaDll_Download", (NiFpga_FunctionPointer*)&NiFpga_download, 1}, - {"NiFpgaDll_ReadBool", (NiFpga_FunctionPointer*)&NiFpga_readBool, 1}, - {"NiFpgaDll_ReadI8", (NiFpga_FunctionPointer*)&NiFpga_readI8, 1}, - {"NiFpgaDll_ReadU8", (NiFpga_FunctionPointer*)&NiFpga_readU8, 1}, - {"NiFpgaDll_ReadI16", (NiFpga_FunctionPointer*)&NiFpga_readI16, 1}, - {"NiFpgaDll_ReadU16", (NiFpga_FunctionPointer*)&NiFpga_readU16, 1}, - {"NiFpgaDll_ReadI32", (NiFpga_FunctionPointer*)&NiFpga_readI32, 1}, - {"NiFpgaDll_ReadU32", (NiFpga_FunctionPointer*)&NiFpga_readU32, 1}, - {"NiFpgaDll_ReadI64", (NiFpga_FunctionPointer*)&NiFpga_readI64, 1}, - {"NiFpgaDll_ReadU64", (NiFpga_FunctionPointer*)&NiFpga_readU64, 1}, - {"NiFpgaDll_ReadSgl", (NiFpga_FunctionPointer*)&NiFpga_readSgl, 1}, - {"NiFpgaDll_ReadDbl", (NiFpga_FunctionPointer*)&NiFpga_readDbl, 1}, - {"NiFpgaDll_WriteBool", (NiFpga_FunctionPointer*)&NiFpga_writeBool, 1}, - {"NiFpgaDll_WriteI8", (NiFpga_FunctionPointer*)&NiFpga_writeI8, 1}, - {"NiFpgaDll_WriteU8", (NiFpga_FunctionPointer*)&NiFpga_writeU8, 1}, - {"NiFpgaDll_WriteI16", (NiFpga_FunctionPointer*)&NiFpga_writeI16, 1}, - {"NiFpgaDll_WriteU16", (NiFpga_FunctionPointer*)&NiFpga_writeU16, 1}, - {"NiFpgaDll_WriteI32", (NiFpga_FunctionPointer*)&NiFpga_writeI32, 1}, - {"NiFpgaDll_WriteU32", (NiFpga_FunctionPointer*)&NiFpga_writeU32, 1}, - {"NiFpgaDll_WriteI64", (NiFpga_FunctionPointer*)&NiFpga_writeI64, 1}, - {"NiFpgaDll_WriteU64", (NiFpga_FunctionPointer*)&NiFpga_writeU64, 1}, - {"NiFpgaDll_WriteSgl", (NiFpga_FunctionPointer*)&NiFpga_writeSgl, 1}, - {"NiFpgaDll_WriteDbl", (NiFpga_FunctionPointer*)&NiFpga_writeDbl, 1}, - {"NiFpgaDll_ReadArrayBool", (NiFpga_FunctionPointer*)&NiFpga_readArrayBool, 1}, - {"NiFpgaDll_ReadArrayI8", (NiFpga_FunctionPointer*)&NiFpga_readArrayI8, 1}, - {"NiFpgaDll_ReadArrayU8", (NiFpga_FunctionPointer*)&NiFpga_readArrayU8, 1}, - {"NiFpgaDll_ReadArrayI16", (NiFpga_FunctionPointer*)&NiFpga_readArrayI16, 1}, - {"NiFpgaDll_ReadArrayU16", (NiFpga_FunctionPointer*)&NiFpga_readArrayU16, 1}, - {"NiFpgaDll_ReadArrayI32", (NiFpga_FunctionPointer*)&NiFpga_readArrayI32, 1}, - {"NiFpgaDll_ReadArrayU32", (NiFpga_FunctionPointer*)&NiFpga_readArrayU32, 1}, - {"NiFpgaDll_ReadArrayI64", (NiFpga_FunctionPointer*)&NiFpga_readArrayI64, 1}, - {"NiFpgaDll_ReadArrayU64", (NiFpga_FunctionPointer*)&NiFpga_readArrayU64, 1}, - {"NiFpgaDll_ReadArraySgl", (NiFpga_FunctionPointer*)&NiFpga_readArraySgl, 1}, - {"NiFpgaDll_ReadArrayDbl", (NiFpga_FunctionPointer*)&NiFpga_readArrayDbl, 1}, - {"NiFpgaDll_WriteArrayBool", (NiFpga_FunctionPointer*)&NiFpga_writeArrayBool, 1}, - {"NiFpgaDll_WriteArrayI8", (NiFpga_FunctionPointer*)&NiFpga_writeArrayI8, 1}, - {"NiFpgaDll_WriteArrayU8", (NiFpga_FunctionPointer*)&NiFpga_writeArrayU8, 1}, - {"NiFpgaDll_WriteArrayI16", (NiFpga_FunctionPointer*)&NiFpga_writeArrayI16, 1}, - {"NiFpgaDll_WriteArrayU16", (NiFpga_FunctionPointer*)&NiFpga_writeArrayU16, 1}, - {"NiFpgaDll_WriteArrayI32", (NiFpga_FunctionPointer*)&NiFpga_writeArrayI32, 1}, - {"NiFpgaDll_WriteArrayU32", (NiFpga_FunctionPointer*)&NiFpga_writeArrayU32, 1}, - {"NiFpgaDll_WriteArrayI64", (NiFpga_FunctionPointer*)&NiFpga_writeArrayI64, 1}, - {"NiFpgaDll_WriteArrayU64", (NiFpga_FunctionPointer*)&NiFpga_writeArrayU64, 1}, - {"NiFpgaDll_WriteArraySgl", (NiFpga_FunctionPointer*)&NiFpga_writeArraySgl, 1}, - {"NiFpgaDll_WriteArrayDbl", (NiFpga_FunctionPointer*)&NiFpga_writeArrayDbl, 1}, - {"NiFpgaDll_ReserveIrqContext", (NiFpga_FunctionPointer*)&NiFpga_reserveIrqContext, 1}, - {"NiFpgaDll_UnreserveIrqContext", (NiFpga_FunctionPointer*)&NiFpga_unreserveIrqContext, 1}, - {"NiFpgaDll_WaitOnIrqs", (NiFpga_FunctionPointer*)&NiFpga_waitOnIrqs, 1}, - {"NiFpgaDll_AcknowledgeIrqs", (NiFpga_FunctionPointer*)&NiFpga_acknowledgeIrqs, 1}, - {"NiFpgaDll_ConfigureFifo", (NiFpga_FunctionPointer*)&NiFpga_configureFifo, 1}, - {"NiFpgaDll_ConfigureFifo2", (NiFpga_FunctionPointer*)&NiFpga_configureFifo2, 1}, - {"NiFpgaDll_SetFifoPropertyU32", (NiFpga_FunctionPointer*)&NiFpga_setFifoPropertyU32, 0}, - {"NiFpgaDll_SetFifoPropertyI32", (NiFpga_FunctionPointer*)&NiFpga_setFifoPropertyI32, 0}, - {"NiFpgaDll_SetFifoPropertyU64", (NiFpga_FunctionPointer*)&NiFpga_setFifoPropertyU64, 0}, - {"NiFpgaDll_SetFifoPropertyI64", (NiFpga_FunctionPointer*)&NiFpga_setFifoPropertyI64, 0}, - {"NiFpgaDll_SetFifoPropertyPtr", (NiFpga_FunctionPointer*)&NiFpga_setFifoPropertyPtr, 0}, - {"NiFpgaDll_GetFifoPropertyU32", (NiFpga_FunctionPointer*)&NiFpga_getFifoPropertyU32, 0}, - {"NiFpgaDll_GetFifoPropertyI32", (NiFpga_FunctionPointer*)&NiFpga_getFifoPropertyI32, 0}, - {"NiFpgaDll_GetFifoPropertyU64", (NiFpga_FunctionPointer*)&NiFpga_getFifoPropertyU64, 0}, - {"NiFpgaDll_GetFifoPropertyI64", (NiFpga_FunctionPointer*)&NiFpga_getFifoPropertyI64, 0}, - {"NiFpgaDll_GetFifoPropertyPtr", (NiFpga_FunctionPointer*)&NiFpga_getFifoPropertyPtr, 0}, - {"NiFpgaDll_CommitFifoConfiguration", (NiFpga_FunctionPointer*)&NiFpga_commitFifoConfiguration, 0}, - {"NiFpgaDll_StartFifo", (NiFpga_FunctionPointer*)&NiFpga_startFifo, 1}, - {"NiFpgaDll_StopFifo", (NiFpga_FunctionPointer*)&NiFpga_stopFifo, 1}, - {"NiFpgaDll_ReadFifoBool", (NiFpga_FunctionPointer*)&NiFpga_readFifoBool, 1}, - {"NiFpgaDll_ReadFifoI8", (NiFpga_FunctionPointer*)&NiFpga_readFifoI8, 1}, - {"NiFpgaDll_ReadFifoU8", (NiFpga_FunctionPointer*)&NiFpga_readFifoU8, 1}, - {"NiFpgaDll_ReadFifoI16", (NiFpga_FunctionPointer*)&NiFpga_readFifoI16, 1}, - {"NiFpgaDll_ReadFifoU16", (NiFpga_FunctionPointer*)&NiFpga_readFifoU16, 1}, - {"NiFpgaDll_ReadFifoI32", (NiFpga_FunctionPointer*)&NiFpga_readFifoI32, 1}, - {"NiFpgaDll_ReadFifoU32", (NiFpga_FunctionPointer*)&NiFpga_readFifoU32, 1}, - {"NiFpgaDll_ReadFifoI64", (NiFpga_FunctionPointer*)&NiFpga_readFifoI64, 1}, - {"NiFpgaDll_ReadFifoU64", (NiFpga_FunctionPointer*)&NiFpga_readFifoU64, 1}, - {"NiFpgaDll_ReadFifoSgl", (NiFpga_FunctionPointer*)&NiFpga_readFifoSgl, 1}, - {"NiFpgaDll_ReadFifoDbl", (NiFpga_FunctionPointer*)&NiFpga_readFifoDbl, 1}, - {"NiFpgaDll_ReadFifoComposite", (NiFpga_FunctionPointer*)&NiFpga_readFifoComposite, 0}, - {"NiFpgaDll_WriteFifoBool", (NiFpga_FunctionPointer*)&NiFpga_writeFifoBool, 1}, - {"NiFpgaDll_WriteFifoI8", (NiFpga_FunctionPointer*)&NiFpga_writeFifoI8, 1}, - {"NiFpgaDll_WriteFifoU8", (NiFpga_FunctionPointer*)&NiFpga_writeFifoU8, 1}, - {"NiFpgaDll_WriteFifoI16", (NiFpga_FunctionPointer*)&NiFpga_writeFifoI16, 1}, - {"NiFpgaDll_WriteFifoU16", (NiFpga_FunctionPointer*)&NiFpga_writeFifoU16, 1}, - {"NiFpgaDll_WriteFifoI32", (NiFpga_FunctionPointer*)&NiFpga_writeFifoI32, 1}, - {"NiFpgaDll_WriteFifoU32", (NiFpga_FunctionPointer*)&NiFpga_writeFifoU32, 1}, - {"NiFpgaDll_WriteFifoI64", (NiFpga_FunctionPointer*)&NiFpga_writeFifoI64, 1}, - {"NiFpgaDll_WriteFifoU64", (NiFpga_FunctionPointer*)&NiFpga_writeFifoU64, 1}, - {"NiFpgaDll_WriteFifoSgl", (NiFpga_FunctionPointer*)&NiFpga_writeFifoSgl, 1}, - {"NiFpgaDll_WriteFifoDbl", (NiFpga_FunctionPointer*)&NiFpga_writeFifoDbl, 1}, - {"NiFpgaDll_WriteFifoComposite", (NiFpga_FunctionPointer*)&NiFpga_writeFifoComposite, 0}, + {"NiFpgaDll_Open", (NiFpga_FunctionPointer *)&NiFpga_open, 1}, + {"NiFpgaDll_Close", (NiFpga_FunctionPointer *)&NiFpga_close, 1}, + {"NiFpgaDll_Run", (NiFpga_FunctionPointer *)&NiFpga_run, 1}, + {"NiFpgaDll_Abort", (NiFpga_FunctionPointer *)&NiFpga_abort, 1}, + {"NiFpgaDll_Reset", (NiFpga_FunctionPointer *)&NiFpga_reset, 1}, + {"NiFpgaDll_Download", (NiFpga_FunctionPointer *)&NiFpga_download, 1}, + {"NiFpgaDll_ReadBool", (NiFpga_FunctionPointer *)&NiFpga_readBool, 1}, + {"NiFpgaDll_ReadI8", (NiFpga_FunctionPointer *)&NiFpga_readI8, 1}, + {"NiFpgaDll_ReadU8", (NiFpga_FunctionPointer *)&NiFpga_readU8, 1}, + {"NiFpgaDll_ReadI16", (NiFpga_FunctionPointer *)&NiFpga_readI16, 1}, + {"NiFpgaDll_ReadU16", (NiFpga_FunctionPointer *)&NiFpga_readU16, 1}, + {"NiFpgaDll_ReadI32", (NiFpga_FunctionPointer *)&NiFpga_readI32, 1}, + {"NiFpgaDll_ReadU32", (NiFpga_FunctionPointer *)&NiFpga_readU32, 1}, + {"NiFpgaDll_ReadI64", (NiFpga_FunctionPointer *)&NiFpga_readI64, 1}, + {"NiFpgaDll_ReadU64", (NiFpga_FunctionPointer *)&NiFpga_readU64, 1}, + {"NiFpgaDll_ReadSgl", (NiFpga_FunctionPointer *)&NiFpga_readSgl, 1}, + {"NiFpgaDll_ReadDbl", (NiFpga_FunctionPointer *)&NiFpga_readDbl, 1}, + {"NiFpgaDll_WriteBool", (NiFpga_FunctionPointer *)&NiFpga_writeBool, 1}, + {"NiFpgaDll_WriteI8", (NiFpga_FunctionPointer *)&NiFpga_writeI8, 1}, + {"NiFpgaDll_WriteU8", (NiFpga_FunctionPointer *)&NiFpga_writeU8, 1}, + {"NiFpgaDll_WriteI16", (NiFpga_FunctionPointer *)&NiFpga_writeI16, 1}, + {"NiFpgaDll_WriteU16", (NiFpga_FunctionPointer *)&NiFpga_writeU16, 1}, + {"NiFpgaDll_WriteI32", (NiFpga_FunctionPointer *)&NiFpga_writeI32, 1}, + {"NiFpgaDll_WriteU32", (NiFpga_FunctionPointer *)&NiFpga_writeU32, 1}, + {"NiFpgaDll_WriteI64", (NiFpga_FunctionPointer *)&NiFpga_writeI64, 1}, + {"NiFpgaDll_WriteU64", (NiFpga_FunctionPointer *)&NiFpga_writeU64, 1}, + {"NiFpgaDll_WriteSgl", (NiFpga_FunctionPointer *)&NiFpga_writeSgl, 1}, + {"NiFpgaDll_WriteDbl", (NiFpga_FunctionPointer *)&NiFpga_writeDbl, 1}, + {"NiFpgaDll_ReadArrayBool", (NiFpga_FunctionPointer *)&NiFpga_readArrayBool, 1}, + {"NiFpgaDll_ReadArrayI8", (NiFpga_FunctionPointer *)&NiFpga_readArrayI8, 1}, + {"NiFpgaDll_ReadArrayU8", (NiFpga_FunctionPointer *)&NiFpga_readArrayU8, 1}, + {"NiFpgaDll_ReadArrayI16", (NiFpga_FunctionPointer *)&NiFpga_readArrayI16, 1}, + {"NiFpgaDll_ReadArrayU16", (NiFpga_FunctionPointer *)&NiFpga_readArrayU16, 1}, + {"NiFpgaDll_ReadArrayI32", (NiFpga_FunctionPointer *)&NiFpga_readArrayI32, 1}, + {"NiFpgaDll_ReadArrayU32", (NiFpga_FunctionPointer *)&NiFpga_readArrayU32, 1}, + {"NiFpgaDll_ReadArrayI64", (NiFpga_FunctionPointer *)&NiFpga_readArrayI64, 1}, + {"NiFpgaDll_ReadArrayU64", (NiFpga_FunctionPointer *)&NiFpga_readArrayU64, 1}, + {"NiFpgaDll_ReadArraySgl", (NiFpga_FunctionPointer *)&NiFpga_readArraySgl, 1}, + {"NiFpgaDll_ReadArrayDbl", (NiFpga_FunctionPointer *)&NiFpga_readArrayDbl, 1}, + {"NiFpgaDll_WriteArrayBool", (NiFpga_FunctionPointer *)&NiFpga_writeArrayBool, 1}, + {"NiFpgaDll_WriteArrayI8", (NiFpga_FunctionPointer *)&NiFpga_writeArrayI8, 1}, + {"NiFpgaDll_WriteArrayU8", (NiFpga_FunctionPointer *)&NiFpga_writeArrayU8, 1}, + {"NiFpgaDll_WriteArrayI16", (NiFpga_FunctionPointer *)&NiFpga_writeArrayI16, 1}, + {"NiFpgaDll_WriteArrayU16", (NiFpga_FunctionPointer *)&NiFpga_writeArrayU16, 1}, + {"NiFpgaDll_WriteArrayI32", (NiFpga_FunctionPointer *)&NiFpga_writeArrayI32, 1}, + {"NiFpgaDll_WriteArrayU32", (NiFpga_FunctionPointer *)&NiFpga_writeArrayU32, 1}, + {"NiFpgaDll_WriteArrayI64", (NiFpga_FunctionPointer *)&NiFpga_writeArrayI64, 1}, + {"NiFpgaDll_WriteArrayU64", (NiFpga_FunctionPointer *)&NiFpga_writeArrayU64, 1}, + {"NiFpgaDll_WriteArraySgl", (NiFpga_FunctionPointer *)&NiFpga_writeArraySgl, 1}, + {"NiFpgaDll_WriteArrayDbl", (NiFpga_FunctionPointer *)&NiFpga_writeArrayDbl, 1}, + {"NiFpgaDll_ReserveIrqContext", (NiFpga_FunctionPointer *)&NiFpga_reserveIrqContext, 1}, + {"NiFpgaDll_UnreserveIrqContext", (NiFpga_FunctionPointer *)&NiFpga_unreserveIrqContext, 1}, + {"NiFpgaDll_WaitOnIrqs", (NiFpga_FunctionPointer *)&NiFpga_waitOnIrqs, 1}, + {"NiFpgaDll_AcknowledgeIrqs", (NiFpga_FunctionPointer *)&NiFpga_acknowledgeIrqs, 1}, + {"NiFpgaDll_ConfigureFifo", (NiFpga_FunctionPointer *)&NiFpga_configureFifo, 1}, + {"NiFpgaDll_ConfigureFifo2", (NiFpga_FunctionPointer *)&NiFpga_configureFifo2, 1}, + {"NiFpgaDll_SetFifoPropertyU32", (NiFpga_FunctionPointer *)&NiFpga_setFifoPropertyU32, 0}, + {"NiFpgaDll_SetFifoPropertyI32", (NiFpga_FunctionPointer *)&NiFpga_setFifoPropertyI32, 0}, + {"NiFpgaDll_SetFifoPropertyU64", (NiFpga_FunctionPointer *)&NiFpga_setFifoPropertyU64, 0}, + {"NiFpgaDll_SetFifoPropertyI64", (NiFpga_FunctionPointer *)&NiFpga_setFifoPropertyI64, 0}, + {"NiFpgaDll_SetFifoPropertyPtr", (NiFpga_FunctionPointer *)&NiFpga_setFifoPropertyPtr, 0}, + {"NiFpgaDll_GetFifoPropertyU32", (NiFpga_FunctionPointer *)&NiFpga_getFifoPropertyU32, 0}, + {"NiFpgaDll_GetFifoPropertyI32", (NiFpga_FunctionPointer *)&NiFpga_getFifoPropertyI32, 0}, + {"NiFpgaDll_GetFifoPropertyU64", (NiFpga_FunctionPointer *)&NiFpga_getFifoPropertyU64, 0}, + {"NiFpgaDll_GetFifoPropertyI64", (NiFpga_FunctionPointer *)&NiFpga_getFifoPropertyI64, 0}, + {"NiFpgaDll_GetFifoPropertyPtr", (NiFpga_FunctionPointer *)&NiFpga_getFifoPropertyPtr, 0}, + {"NiFpgaDll_CommitFifoConfiguration", (NiFpga_FunctionPointer *)&NiFpga_commitFifoConfiguration, 0}, + {"NiFpgaDll_StartFifo", (NiFpga_FunctionPointer *)&NiFpga_startFifo, 1}, + {"NiFpgaDll_StopFifo", (NiFpga_FunctionPointer *)&NiFpga_stopFifo, 1}, + {"NiFpgaDll_ReadFifoBool", (NiFpga_FunctionPointer *)&NiFpga_readFifoBool, 1}, + {"NiFpgaDll_ReadFifoI8", (NiFpga_FunctionPointer *)&NiFpga_readFifoI8, 1}, + {"NiFpgaDll_ReadFifoU8", (NiFpga_FunctionPointer *)&NiFpga_readFifoU8, 1}, + {"NiFpgaDll_ReadFifoI16", (NiFpga_FunctionPointer *)&NiFpga_readFifoI16, 1}, + {"NiFpgaDll_ReadFifoU16", (NiFpga_FunctionPointer *)&NiFpga_readFifoU16, 1}, + {"NiFpgaDll_ReadFifoI32", (NiFpga_FunctionPointer *)&NiFpga_readFifoI32, 1}, + {"NiFpgaDll_ReadFifoU32", (NiFpga_FunctionPointer *)&NiFpga_readFifoU32, 1}, + {"NiFpgaDll_ReadFifoI64", (NiFpga_FunctionPointer *)&NiFpga_readFifoI64, 1}, + {"NiFpgaDll_ReadFifoU64", (NiFpga_FunctionPointer *)&NiFpga_readFifoU64, 1}, + {"NiFpgaDll_ReadFifoSgl", (NiFpga_FunctionPointer *)&NiFpga_readFifoSgl, 1}, + {"NiFpgaDll_ReadFifoDbl", (NiFpga_FunctionPointer *)&NiFpga_readFifoDbl, 1}, + {"NiFpgaDll_ReadFifoComposite", (NiFpga_FunctionPointer *)&NiFpga_readFifoComposite, 0}, + {"NiFpgaDll_WriteFifoBool", (NiFpga_FunctionPointer *)&NiFpga_writeFifoBool, 1}, + {"NiFpgaDll_WriteFifoI8", (NiFpga_FunctionPointer *)&NiFpga_writeFifoI8, 1}, + {"NiFpgaDll_WriteFifoU8", (NiFpga_FunctionPointer *)&NiFpga_writeFifoU8, 1}, + {"NiFpgaDll_WriteFifoI16", (NiFpga_FunctionPointer *)&NiFpga_writeFifoI16, 1}, + {"NiFpgaDll_WriteFifoU16", (NiFpga_FunctionPointer *)&NiFpga_writeFifoU16, 1}, + {"NiFpgaDll_WriteFifoI32", (NiFpga_FunctionPointer *)&NiFpga_writeFifoI32, 1}, + {"NiFpgaDll_WriteFifoU32", (NiFpga_FunctionPointer *)&NiFpga_writeFifoU32, 1}, + {"NiFpgaDll_WriteFifoI64", (NiFpga_FunctionPointer *)&NiFpga_writeFifoI64, 1}, + {"NiFpgaDll_WriteFifoU64", (NiFpga_FunctionPointer *)&NiFpga_writeFifoU64, 1}, + {"NiFpgaDll_WriteFifoSgl", (NiFpga_FunctionPointer *)&NiFpga_writeFifoSgl, 1}, + {"NiFpgaDll_WriteFifoDbl", (NiFpga_FunctionPointer *)&NiFpga_writeFifoDbl, 1}, + {"NiFpgaDll_WriteFifoComposite", (NiFpga_FunctionPointer *)&NiFpga_writeFifoComposite, 0}, {"NiFpgaDll_AcquireFifoReadElementsBool", - (NiFpga_FunctionPointer*)&NiFpga_acquireFifoReadElementsBool, 1}, - {"NiFpgaDll_AcquireFifoReadElementsI8", (NiFpga_FunctionPointer*)&NiFpga_acquireFifoReadElementsI8, + (NiFpga_FunctionPointer *)&NiFpga_acquireFifoReadElementsBool, 1}, + {"NiFpgaDll_AcquireFifoReadElementsI8", (NiFpga_FunctionPointer *)&NiFpga_acquireFifoReadElementsI8, 1}, - {"NiFpgaDll_AcquireFifoReadElementsU8", (NiFpga_FunctionPointer*)&NiFpga_acquireFifoReadElementsU8, + {"NiFpgaDll_AcquireFifoReadElementsU8", (NiFpga_FunctionPointer *)&NiFpga_acquireFifoReadElementsU8, 1}, - {"NiFpgaDll_AcquireFifoReadElementsI16", (NiFpga_FunctionPointer*)&NiFpga_acquireFifoReadElementsI16, + {"NiFpgaDll_AcquireFifoReadElementsI16", (NiFpga_FunctionPointer *)&NiFpga_acquireFifoReadElementsI16, 1}, - {"NiFpgaDll_AcquireFifoReadElementsU16", (NiFpga_FunctionPointer*)&NiFpga_acquireFifoReadElementsU16, + {"NiFpgaDll_AcquireFifoReadElementsU16", (NiFpga_FunctionPointer *)&NiFpga_acquireFifoReadElementsU16, 1}, - {"NiFpgaDll_AcquireFifoReadElementsI32", (NiFpga_FunctionPointer*)&NiFpga_acquireFifoReadElementsI32, + {"NiFpgaDll_AcquireFifoReadElementsI32", (NiFpga_FunctionPointer *)&NiFpga_acquireFifoReadElementsI32, 1}, - {"NiFpgaDll_AcquireFifoReadElementsU32", (NiFpga_FunctionPointer*)&NiFpga_acquireFifoReadElementsU32, + {"NiFpgaDll_AcquireFifoReadElementsU32", (NiFpga_FunctionPointer *)&NiFpga_acquireFifoReadElementsU32, 1}, - {"NiFpgaDll_AcquireFifoReadElementsI64", (NiFpga_FunctionPointer*)&NiFpga_acquireFifoReadElementsI64, + {"NiFpgaDll_AcquireFifoReadElementsI64", (NiFpga_FunctionPointer *)&NiFpga_acquireFifoReadElementsI64, 1}, - {"NiFpgaDll_AcquireFifoReadElementsU64", (NiFpga_FunctionPointer*)&NiFpga_acquireFifoReadElementsU64, + {"NiFpgaDll_AcquireFifoReadElementsU64", (NiFpga_FunctionPointer *)&NiFpga_acquireFifoReadElementsU64, 1}, - {"NiFpgaDll_AcquireFifoReadElementsSgl", (NiFpga_FunctionPointer*)&NiFpga_acquireFifoReadElementsSgl, + {"NiFpgaDll_AcquireFifoReadElementsSgl", (NiFpga_FunctionPointer *)&NiFpga_acquireFifoReadElementsSgl, 1}, - {"NiFpgaDll_AcquireFifoReadElementsDbl", (NiFpga_FunctionPointer*)&NiFpga_acquireFifoReadElementsDbl, + {"NiFpgaDll_AcquireFifoReadElementsDbl", (NiFpga_FunctionPointer *)&NiFpga_acquireFifoReadElementsDbl, 1}, {"NiFpgaDll_AcquireFifoWriteElementsBool", - (NiFpga_FunctionPointer*)&NiFpga_acquireFifoWriteElementsBool, 1}, - {"NiFpgaDll_AcquireFifoWriteElementsI8", (NiFpga_FunctionPointer*)&NiFpga_acquireFifoWriteElementsI8, + (NiFpga_FunctionPointer *)&NiFpga_acquireFifoWriteElementsBool, 1}, + {"NiFpgaDll_AcquireFifoWriteElementsI8", (NiFpga_FunctionPointer *)&NiFpga_acquireFifoWriteElementsI8, 1}, - {"NiFpgaDll_AcquireFifoWriteElementsU8", (NiFpga_FunctionPointer*)&NiFpga_acquireFifoWriteElementsU8, + {"NiFpgaDll_AcquireFifoWriteElementsU8", (NiFpga_FunctionPointer *)&NiFpga_acquireFifoWriteElementsU8, 1}, {"NiFpgaDll_AcquireFifoWriteElementsI16", - (NiFpga_FunctionPointer*)&NiFpga_acquireFifoWriteElementsI16, 1}, + (NiFpga_FunctionPointer *)&NiFpga_acquireFifoWriteElementsI16, 1}, {"NiFpgaDll_AcquireFifoWriteElementsU16", - (NiFpga_FunctionPointer*)&NiFpga_acquireFifoWriteElementsU16, 1}, + (NiFpga_FunctionPointer *)&NiFpga_acquireFifoWriteElementsU16, 1}, {"NiFpgaDll_AcquireFifoWriteElementsI32", - (NiFpga_FunctionPointer*)&NiFpga_acquireFifoWriteElementsI32, 1}, + (NiFpga_FunctionPointer *)&NiFpga_acquireFifoWriteElementsI32, 1}, {"NiFpgaDll_AcquireFifoWriteElementsU32", - (NiFpga_FunctionPointer*)&NiFpga_acquireFifoWriteElementsU32, 1}, + (NiFpga_FunctionPointer *)&NiFpga_acquireFifoWriteElementsU32, 1}, {"NiFpgaDll_AcquireFifoWriteElementsI64", - (NiFpga_FunctionPointer*)&NiFpga_acquireFifoWriteElementsI64, 1}, + (NiFpga_FunctionPointer *)&NiFpga_acquireFifoWriteElementsI64, 1}, {"NiFpgaDll_AcquireFifoWriteElementsU64", - (NiFpga_FunctionPointer*)&NiFpga_acquireFifoWriteElementsU64, 1}, + (NiFpga_FunctionPointer *)&NiFpga_acquireFifoWriteElementsU64, 1}, {"NiFpgaDll_AcquireFifoWriteElementsSgl", - (NiFpga_FunctionPointer*)&NiFpga_acquireFifoWriteElementsSgl, 1}, + (NiFpga_FunctionPointer *)&NiFpga_acquireFifoWriteElementsSgl, 1}, {"NiFpgaDll_AcquireFifoWriteElementsDbl", - (NiFpga_FunctionPointer*)&NiFpga_acquireFifoWriteElementsDbl, 1}, - {"NiFpgaDll_ReleaseFifoElements", (NiFpga_FunctionPointer*)&NiFpga_releaseFifoElements, 1}, - {"NiFpgaDll_GetPeerToPeerFifoEndpoint", (NiFpga_FunctionPointer*)&NiFpga_getPeerToPeerFifoEndpoint, + (NiFpga_FunctionPointer *)&NiFpga_acquireFifoWriteElementsDbl, 1}, + {"NiFpgaDll_ReleaseFifoElements", (NiFpga_FunctionPointer *)&NiFpga_releaseFifoElements, 1}, + {"NiFpgaDll_GetPeerToPeerFifoEndpoint", (NiFpga_FunctionPointer *)&NiFpga_getPeerToPeerFifoEndpoint, 1}, - {"NiFpgaDll_GetBitfileContents", (NiFpga_FunctionPointer*)&NiFpga_getBitfileContents, 1}, - {"NiFpgaDll_ClientFunctionCall", (NiFpga_FunctionPointer*)&NiFpga_clientFunctionCall, 1}, + {"NiFpgaDll_GetBitfileContents", (NiFpga_FunctionPointer *)&NiFpga_getBitfileContents, 1}, + {"NiFpgaDll_ClientFunctionCall", (NiFpga_FunctionPointer *)&NiFpga_clientFunctionCall, 1}, {NULL, NULL, 0}}; NiFpga_Status NiFpga_Initialize(void) { @@ -1443,9 +1443,9 @@ NiFpga_Status NiFpga_Initialize(void) { NiFpga_library = VxLoadLibraryFromPath("NiFpga.out", 0); #elif NiFpga_Linux || NiFpga_MacOsX #if NiFpga_Linux - const char* const library = "libNiFpga.so"; + const char *const library = "libNiFpga.so"; #elif NiFpga_MacOsX - const char* const library = "/Library/Frameworks/NiFpga.framework/NiFpga"; + const char *const library = "/Library/Frameworks/NiFpga.framework/NiFpga"; #endif NiFpga_library = dlopen(library, RTLD_LAZY); if (!NiFpga_library) fprintf(stderr, "Error opening %s: %s\n", library, dlerror()); @@ -1455,14 +1455,14 @@ NiFpga_Status NiFpga_Initialize(void) { if (!NiFpga_library) return NiFpga_Status_ResourceNotFound; /* get each exported function */ for (i = 0; NiFpga_functions[i].name; i++) { - const char* const name = NiFpga_functions[i].name; - NiFpga_FunctionPointer* const address = NiFpga_functions[i].address; + const char *const name = NiFpga_functions[i].name; + NiFpga_FunctionPointer *const address = NiFpga_functions[i].address; #if NiFpga_Windows *address = (NiFpga_FunctionPointer)GetProcAddress(NiFpga_library, name); if (!*address && NiFpga_functions[i].required) return NiFpga_Status_VersionMismatch; #elif NiFpga_VxWorks SYM_TYPE type; - STATUS symFindStatus = symFindByName(sysSymTbl, (char*)name, (char**)address, &type); + STATUS symFindStatus = symFindByName(sysSymTbl, (char *)name, (char **)address, &type); if (symFindStatus != OK && NiFpga_functions[i].required) return NiFpga_Status_VersionMismatch; #elif NiFpga_Linux || NiFpga_MacOsX *address = (NiFpga_FunctionPointer)dlsym(NiFpga_library, name); diff --git a/src/LSST/VMS/Accelerometer.h b/src/LSST/VMS/Accelerometer.h index 391838e..25bb712 100644 --- a/src/LSST/VMS/Accelerometer.h +++ b/src/LSST/VMS/Accelerometer.h @@ -25,8 +25,8 @@ #define ACCELEROMETER_H_ #include -#include #include +#include namespace LSST { namespace VMS { @@ -36,7 +36,7 @@ namespace VMS { */ class Accelerometer { public: - Accelerometer(VMSApplicationSettings* vmsApplicationSettings); + Accelerometer(VMSApplicationSettings *vmsApplicationSettings); virtual ~Accelerometer(void); void enableAccelerometers(); @@ -49,11 +49,11 @@ class Accelerometer { int _numberOfSensors; int _dataIndex; - MTVMS_dataC* _sampleData; - Telemetry::PSD* _psds; - VMSApplicationSettings* _vmsApplicationSettings; + MTVMS_dataC *_sampleData; + Telemetry::PSD *_psds; + VMSApplicationSettings *_vmsApplicationSettings; - float _convert(uint32_t** data); + float _convert(uint32_t **data); }; } /* namespace VMS */ diff --git a/src/LSST/VMS/Commands/EnterControl.h b/src/LSST/VMS/Commands/EnterControl.h index 4c6bad7..ea61e35 100644 --- a/src/LSST/VMS/Commands/EnterControl.h +++ b/src/LSST/VMS/Commands/EnterControl.h @@ -1,10 +1,10 @@ /* * EnterControl command. * - * Developed for the Vera C. Rubin Observatory Telescope & Site Software Systems. - * This product includes software developed by the Vera C.Rubin Observatory Project - * (https://www.lsst.org). See the COPYRIGHT file at the top-level directory of - * this distribution for details of code ownership. + * Developed for the Vera C. Rubin Observatory Telescope & Site Software + * Systems. This product includes software developed by the Vera C.Rubin + * Observatory Project (https://www.lsst.org). See the COPYRIGHT file at the + * top-level directory of this distribution for details of code ownership. * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free @@ -23,9 +23,9 @@ #ifndef _VMS_Command_EnterControl_ #define _VMS_Command_ENterControl_ -#include #include #include +#include #include diff --git a/src/LSST/VMS/Commands/SAL.cpp b/src/LSST/VMS/Commands/SAL.cpp index e9d65d8..0d7bbfd 100644 --- a/src/LSST/VMS/Commands/SAL.cpp +++ b/src/LSST/VMS/Commands/SAL.cpp @@ -1,10 +1,10 @@ /* * SAL command. * - * Developed for the Vera C. Rubin Observatory Telescope & Site Software Systems. - * This product includes software developed by the Vera C.Rubin Observatory Project - * (https://www.lsst.org). See the COPYRIGHT file at the top-level directory of - * this distribution for details of code ownership. + * Developed for the Vera C. Rubin Observatory Telescope & Site Software + * Systems. This product includes software developed by the Vera C.Rubin + * Observatory Project (https://www.lsst.org). See the COPYRIGHT file at the + * top-level directory of this distribution for details of code ownership. * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free diff --git a/src/LSST/VMS/Commands/SAL.h b/src/LSST/VMS/Commands/SAL.h index aa06dea..78aaed9 100644 --- a/src/LSST/VMS/Commands/SAL.h +++ b/src/LSST/VMS/Commands/SAL.h @@ -1,10 +1,10 @@ /* * SAL commands * - * Developed for the Vera C. Rubin Observatory Telescope & Site Software Systems. - * This product includes software developed by the Vera C.Rubin Observatory Project - * (https://www.lsst.org). See the COPYRIGHT file at the top-level directory of - * this distribution for details of code ownership. + * Developed for the Vera C. Rubin Observatory Telescope & Site Software + * Systems. This product includes software developed by the Vera C.Rubin + * Observatory Project (https://www.lsst.org). See the COPYRIGHT file at the + * top-level directory of this distribution for details of code ownership. * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free diff --git a/src/LSST/VMS/Commands/Update.cpp b/src/LSST/VMS/Commands/Update.cpp index 2561c9b..cf7e9e5 100644 --- a/src/LSST/VMS/Commands/Update.cpp +++ b/src/LSST/VMS/Commands/Update.cpp @@ -22,15 +22,12 @@ */ #include -#include #include #include -using namespace LSST::VMS; using namespace LSST::VMS::Commands; void Update::execute() { VMSPublisher::instance().putMiscellaneous(FPGA::instance().chassisTemperature(), FPGA::instance().chassisTicks()); - Events::Heartbeat::instance().tryToggle(); } diff --git a/src/LSST/VMS/Events/FPGAState.cpp b/src/LSST/VMS/Events/FPGAState.cpp index c586b03..dfb9292 100644 --- a/src/LSST/VMS/Events/FPGAState.cpp +++ b/src/LSST/VMS/Events/FPGAState.cpp @@ -1,10 +1,10 @@ /* * AcquistionPeriod event handling class. * - * Developed for the Vera C. Rubin Observatory Telescope & Site Software Systems. - * This product includes software developed by the Vera C.Rubin Observatory Project - * (https://www.lsst.org). See the COPYRIGHT file at the top-level directory of - * this distribution for details of code ownership. + * Developed for the Vera C. Rubin Observatory Telescope & Site Software + * Systems. This product includes software developed by the Vera C.Rubin + * Observatory Project (https://www.lsst.org). See the COPYRIGHT file at the + * top-level directory of this distribution for details of code ownership. * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free @@ -20,8 +20,8 @@ * this program. If not, see . */ -#include #include +#include #include diff --git a/src/LSST/VMS/Events/FPGAState.h b/src/LSST/VMS/Events/FPGAState.h index c9668b9..625f084 100644 --- a/src/LSST/VMS/Events/FPGAState.h +++ b/src/LSST/VMS/Events/FPGAState.h @@ -1,10 +1,10 @@ /* * AcquisitionPeriod event handling class. * - * Developed for the Vera C. Rubin Observatory Telescope & Site Software Systems. - * This product includes software developed by the Vera C.Rubin Observatory Project - * (https://www.lsst.org). See the COPYRIGHT file at the top-level directory of - * this distribution for details of code ownership. + * Developed for the Vera C. Rubin Observatory Telescope & Site Software + * Systems. This product includes software developed by the Vera C.Rubin + * Observatory Project (https://www.lsst.org). See the COPYRIGHT file at the + * top-level directory of this distribution for details of code ownership. * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free @@ -28,8 +28,8 @@ #include -#include #include +#include namespace LSST { namespace VMS { diff --git a/src/LSST/VMS/Events/Heartbeat.h b/src/LSST/VMS/Events/Heartbeat.h index 531508b..4e50875 100644 --- a/src/LSST/VMS/Events/Heartbeat.h +++ b/src/LSST/VMS/Events/Heartbeat.h @@ -45,7 +45,8 @@ class Heartbeat : public MTVMS_logevent_heartbeatC, public cRIO::Singleton -#include #include +#include namespace LSST { namespace VMS { @@ -44,7 +44,8 @@ class SummaryState final : MTVMS_logevent_summaryStateC, public cRIO::Singleton< SummaryState(token); /** - * Returns true if summary state is disabled or enabled (e.g. not standby or fault). + * Returns true if summary state is disabled or enabled (e.g. not standby or + * fault). * * @return true if state is DISABLED or ENABLED * diff --git a/src/LSST/VMS/FPGA.cpp b/src/LSST/VMS/FPGA.cpp index 66d1063..a07ed99 100644 --- a/src/LSST/VMS/FPGA.cpp +++ b/src/LSST/VMS/FPGA.cpp @@ -21,17 +21,16 @@ * along with this program. If not, see . */ -#include -#include #include +#include #include +#include #ifdef SIMULATOR -#include #include +#include #endif -#include #include #include #include @@ -42,6 +41,7 @@ #include #include #include +#include namespace LSST { namespace VMS { diff --git a/src/LSST/VMS/Telemetry/PSD.cpp b/src/LSST/VMS/Telemetry/PSD.cpp index e04501c..f8f514e 100644 --- a/src/LSST/VMS/Telemetry/PSD.cpp +++ b/src/LSST/VMS/Telemetry/PSD.cpp @@ -1,10 +1,10 @@ /* * PSD telemetry handling class. * - * Developed for the Vera C. Rubin Observatory Telescope & Site Software Systems. - * This product includes software developed by the Vera C.Rubin Observatory Project - * (https://www.lsst.org). See the COPYRIGHT file at the top-level directory of - * this distribution for details of code ownership. + * Developed for the Vera C. Rubin Observatory Telescope & Site Software + * Systems. This product includes software developed by the Vera C.Rubin + * Observatory Project (https://www.lsst.org). See the COPYRIGHT file at the + * top-level directory of this distribution for details of code ownership. * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free @@ -22,8 +22,8 @@ #include -#include "VMSPublisher.h" #include "PSD.h" +#include "VMSPublisher.h" // length of PSD array is defined in XML constexpr size_t MAX_DATAPOINTS = 200; diff --git a/src/LSST/VMS/Telemetry/PSD.h b/src/LSST/VMS/Telemetry/PSD.h index dafa1a1..068b38e 100644 --- a/src/LSST/VMS/Telemetry/PSD.h +++ b/src/LSST/VMS/Telemetry/PSD.h @@ -1,10 +1,10 @@ /* * PSD telemetry handling class. * - * Developed for the Vera C. Rubin Observatory Telescope & Site Software Systems. - * This product includes software developed by the Vera C.Rubin Observatory Project - * (https://www.lsst.org). See the COPYRIGHT file at the top-level directory of - * this distribution for details of code ownership. + * Developed for the Vera C. Rubin Observatory Telescope & Site Software + * Systems. This product includes software developed by the Vera C.Rubin + * Observatory Project (https://www.lsst.org). See the COPYRIGHT file at the + * top-level directory of this distribution for details of code ownership. * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free @@ -81,8 +81,8 @@ class PSD final : public MTVMS_psdC { float _samplingPeriod; // axis cache size_t _cache_size; - double* _cache[3]; - fftw_complex* _output[3]; + double *_cache[3]; + fftw_complex *_output[3]; fftw_plan _plans[3]; void _clearPSDs(); diff --git a/src/LSST/VMS/VMSApplicationSettings.cpp b/src/LSST/VMS/VMSApplicationSettings.cpp index 7a7bc26..33b772d 100644 --- a/src/LSST/VMS/VMSApplicationSettings.cpp +++ b/src/LSST/VMS/VMSApplicationSettings.cpp @@ -22,8 +22,8 @@ */ #include -#include #include +#include #include diff --git a/src/LSST/VMS/VMSPublisher.cpp b/src/LSST/VMS/VMSPublisher.cpp index 8471de4..0f52913 100644 --- a/src/LSST/VMS/VMSPublisher.cpp +++ b/src/LSST/VMS/VMSPublisher.cpp @@ -5,9 +5,9 @@ * Author: ccontaxis */ -#include #include #include +#include namespace LSST { namespace VMS { diff --git a/src/LSST/VMS/VMSSubscriber.cpp b/src/LSST/VMS/VMSSubscriber.cpp index 82194f4..0973326 100644 --- a/src/LSST/VMS/VMSSubscriber.cpp +++ b/src/LSST/VMS/VMSSubscriber.cpp @@ -1,10 +1,10 @@ /* * VMSSubscriber class. * - * Developed for the Vera C. Rubin Observatory Telescope & Site Software Systems. - * This product includes software developed by the Vera C.Rubin Observatory Project - * (https://www.lsst.org). See the COPYRIGHT file at the top-level directory of - * this distribution for details of code ownership. + * Developed for the Vera C. Rubin Observatory Telescope & Site Software + * Systems. This product includes software developed by the Vera C.Rubin + * Observatory Project (https://www.lsst.org). See the COPYRIGHT file at the + * top-level directory of this distribution for details of code ownership. * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free @@ -20,12 +20,12 @@ * this program. If not, see . */ -#include #include +#include +#include #include #include -#include #include #include diff --git a/src/LSST/VMS/VMSSubscriber.h b/src/LSST/VMS/VMSSubscriber.h index 8f90bc7..82c9af7 100644 --- a/src/LSST/VMS/VMSSubscriber.h +++ b/src/LSST/VMS/VMSSubscriber.h @@ -1,10 +1,10 @@ /* * Thread to subscribe to other CSC. * - * Developed for the Vera C. Rubin Observatory Telescope & Site Software Systems. - * This product includes software developed by the Vera C.Rubin Observatory Project - * (https://www.lsst.org). See the COPYRIGHT file at the top-level directory of - * this distribution for details of code ownership. + * Developed for the Vera C. Rubin Observatory Telescope & Site Software + * Systems. This product includes software developed by the Vera C.Rubin + * Observatory Project (https://www.lsst.org). See the COPYRIGHT file at the + * top-level directory of this distribution for details of code ownership. * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free @@ -23,8 +23,8 @@ #ifndef _VMS_VMSSubscriber_h #define _VMS_VMSSubscriber_h -#include #include +#include #include #include @@ -40,7 +40,7 @@ class VMSSubscriber : public cRIO::Thread { virtual ~VMSSubscriber(); protected: - void run(std::unique_lock& lock) override; + void run(std::unique_lock &lock) override; private: std::map> _commands; diff --git a/src/NiFpga/NiFpga.c b/src/NiFpga/NiFpga.c index d0cdb4d..74ef11f 100644 --- a/src/NiFpga/NiFpga.c +++ b/src/NiFpga/NiFpga.c @@ -14,16 +14,16 @@ #if NiFpga_Windows #include #elif NiFpga_VxWorks -#include -#include #include +#include #include -MODULE_ID VxLoadLibraryFromPath(const char* path, int flags); +#include +MODULE_ID VxLoadLibraryFromPath(const char *path, int flags); STATUS VxFreeLibrary(MODULE_ID library, int flags); #elif NiFpga_Linux || NiFpga_MacOsX -#include -#include #include +#include +#include #else #error #endif @@ -47,7 +47,7 @@ static HMODULE NiFpga_library = NULL; #elif NiFpga_VxWorks static MODULE_ID NiFpga_library = NULL; #elif NiFpga_Linux || NiFpga_MacOsX -static void* NiFpga_library = NULL; +static void *NiFpga_library = NULL; #else #error #endif @@ -58,13 +58,13 @@ static void* NiFpga_library = NULL; #if NiFpga_Cvi && NiFpga_Windows #define NiFpga_CviResourceTracking 1 -static char* const NiFpga_cviResourceType = "FPGA Interface C API"; +static char *const NiFpga_cviResourceType = "FPGA Interface C API"; -typedef void*(NiFpga_CCall* NiFpga_AcquireCviResource)(void* resource, char* type, char* description, ...); +typedef void *(NiFpga_CCall *NiFpga_AcquireCviResource)(void *resource, char *type, char *description, ...); static NiFpga_AcquireCviResource NiFpga_acquireCviResource = NULL; -typedef void*(NiFpga_StdCall* NiFpga_ReleaseCviResource)(void* resource); +typedef void *(NiFpga_StdCall *NiFpga_ReleaseCviResource)(void *resource); static NiFpga_ReleaseCviResource NiFpga_releaseCviResource = NULL; #endif @@ -72,26 +72,26 @@ static NiFpga_ReleaseCviResource NiFpga_releaseCviResource = NULL; /* * Session management functions. */ -static NiFpga_Status(NiFpga_CCall* NiFpga_open)(const char* path, const char* signature, const char* resource, - uint32_t attribute, NiFpga_Session* session) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_open)(const char *path, const char *signature, const char *resource, + uint32_t attribute, NiFpga_Session *session) = NULL; -NiFpga_Status NiFpga_Open(const char* path, const char* signature, const char* resource, uint32_t attribute, - NiFpga_Session* session) { +NiFpga_Status NiFpga_Open(const char *path, const char *signature, const char *resource, uint32_t attribute, + NiFpga_Session *session) { const NiFpga_Status result = NiFpga_open ? NiFpga_open(path, signature, resource, attribute, session) : NiFpga_Status_ResourceNotInitialized; #if NiFpga_CviResourceTracking if (NiFpga_acquireCviResource && NiFpga_IsNotError(result)) - NiFpga_acquireCviResource((void*)*session, NiFpga_cviResourceType, "NiFpga_Session %#08x", *session); + NiFpga_acquireCviResource((void *)*session, NiFpga_cviResourceType, "NiFpga_Session %#08x", *session); #endif return result; } -static NiFpga_Status(NiFpga_CCall* NiFpga_close)(NiFpga_Session session, uint32_t attribute) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_close)(NiFpga_Session session, uint32_t attribute) = NULL; NiFpga_Status NiFpga_Close(NiFpga_Session session, uint32_t attribute) { if (!NiFpga_close) return NiFpga_Status_ResourceNotInitialized; #if NiFpga_CviResourceTracking - if (NiFpga_releaseCviResource) NiFpga_releaseCviResource((void*)session); + if (NiFpga_releaseCviResource) NiFpga_releaseCviResource((void *)session); #endif return NiFpga_close(session, attribute); } @@ -99,25 +99,25 @@ NiFpga_Status NiFpga_Close(NiFpga_Session session, uint32_t attribute) { /* * FPGA state functions. */ -static NiFpga_Status(NiFpga_CCall* NiFpga_run)(NiFpga_Session session, uint32_t attribute) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_run)(NiFpga_Session session, uint32_t attribute) = NULL; NiFpga_Status NiFpga_Run(NiFpga_Session session, uint32_t attribute) { return NiFpga_run ? NiFpga_run(session, attribute) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_abort)(NiFpga_Session session) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_abort)(NiFpga_Session session) = NULL; NiFpga_Status NiFpga_Abort(NiFpga_Session session) { return NiFpga_abort ? NiFpga_abort(session) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_reset)(NiFpga_Session session) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_reset)(NiFpga_Session session) = NULL; NiFpga_Status NiFpga_Reset(NiFpga_Session session) { return NiFpga_reset ? NiFpga_reset(session) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_download)(NiFpga_Session session) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_download)(NiFpga_Session session) = NULL; NiFpga_Status NiFpga_Download(NiFpga_Session session) { return NiFpga_download ? NiFpga_download(session) : NiFpga_Status_ResourceNotInitialized; @@ -126,88 +126,88 @@ NiFpga_Status NiFpga_Download(NiFpga_Session session) { /* * Functions to read from scalar indicators and controls. */ -static NiFpga_Status(NiFpga_CCall* NiFpga_readBool)(NiFpga_Session session, uint32_t indicator, - NiFpga_Bool* value) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_readBool)(NiFpga_Session session, uint32_t indicator, + NiFpga_Bool *value) = NULL; -NiFpga_Status NiFpga_ReadBool(NiFpga_Session session, uint32_t indicator, NiFpga_Bool* value) { +NiFpga_Status NiFpga_ReadBool(NiFpga_Session session, uint32_t indicator, NiFpga_Bool *value) { return NiFpga_readBool ? NiFpga_readBool(session, indicator, value) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readI8)(NiFpga_Session session, uint32_t indicator, - int8_t* value) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_readI8)(NiFpga_Session session, uint32_t indicator, + int8_t *value) = NULL; -NiFpga_Status NiFpga_ReadI8(NiFpga_Session session, uint32_t indicator, int8_t* value) { +NiFpga_Status NiFpga_ReadI8(NiFpga_Session session, uint32_t indicator, int8_t *value) { return NiFpga_readI8 ? NiFpga_readI8(session, indicator, value) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readU8)(NiFpga_Session session, uint32_t indicator, - uint8_t* value) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_readU8)(NiFpga_Session session, uint32_t indicator, + uint8_t *value) = NULL; -NiFpga_Status NiFpga_ReadU8(NiFpga_Session session, uint32_t indicator, uint8_t* value) { +NiFpga_Status NiFpga_ReadU8(NiFpga_Session session, uint32_t indicator, uint8_t *value) { return NiFpga_readU8 ? NiFpga_readU8(session, indicator, value) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readI16)(NiFpga_Session session, uint32_t indicator, - int16_t* value) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_readI16)(NiFpga_Session session, uint32_t indicator, + int16_t *value) = NULL; -NiFpga_Status NiFpga_ReadI16(NiFpga_Session session, uint32_t indicator, int16_t* value) { +NiFpga_Status NiFpga_ReadI16(NiFpga_Session session, uint32_t indicator, int16_t *value) { return NiFpga_readI16 ? NiFpga_readI16(session, indicator, value) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readU16)(NiFpga_Session session, uint32_t indicator, - uint16_t* value) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_readU16)(NiFpga_Session session, uint32_t indicator, + uint16_t *value) = NULL; -NiFpga_Status NiFpga_ReadU16(NiFpga_Session session, uint32_t indicator, uint16_t* value) { +NiFpga_Status NiFpga_ReadU16(NiFpga_Session session, uint32_t indicator, uint16_t *value) { return NiFpga_readU16 ? NiFpga_readU16(session, indicator, value) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readI32)(NiFpga_Session session, uint32_t indicator, - int32_t* value) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_readI32)(NiFpga_Session session, uint32_t indicator, + int32_t *value) = NULL; -NiFpga_Status NiFpga_ReadI32(NiFpga_Session session, uint32_t indicator, int32_t* value) { +NiFpga_Status NiFpga_ReadI32(NiFpga_Session session, uint32_t indicator, int32_t *value) { return NiFpga_readI32 ? NiFpga_readI32(session, indicator, value) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readU32)(NiFpga_Session session, uint32_t indicator, - uint32_t* value) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_readU32)(NiFpga_Session session, uint32_t indicator, + uint32_t *value) = NULL; -NiFpga_Status NiFpga_ReadU32(NiFpga_Session session, uint32_t indicator, uint32_t* value) { +NiFpga_Status NiFpga_ReadU32(NiFpga_Session session, uint32_t indicator, uint32_t *value) { return NiFpga_readU32 ? NiFpga_readU32(session, indicator, value) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readI64)(NiFpga_Session session, uint32_t indicator, - int64_t* value) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_readI64)(NiFpga_Session session, uint32_t indicator, + int64_t *value) = NULL; -NiFpga_Status NiFpga_ReadI64(NiFpga_Session session, uint32_t indicator, int64_t* value) { +NiFpga_Status NiFpga_ReadI64(NiFpga_Session session, uint32_t indicator, int64_t *value) { return NiFpga_readI64 ? NiFpga_readI64(session, indicator, value) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readU64)(NiFpga_Session session, uint32_t indicator, - uint64_t* value) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_readU64)(NiFpga_Session session, uint32_t indicator, + uint64_t *value) = NULL; -NiFpga_Status NiFpga_ReadU64(NiFpga_Session session, uint32_t indicator, uint64_t* value) { +NiFpga_Status NiFpga_ReadU64(NiFpga_Session session, uint32_t indicator, uint64_t *value) { return NiFpga_readU64 ? NiFpga_readU64(session, indicator, value) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readSgl)(NiFpga_Session session, uint32_t indicator, - float* value) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_readSgl)(NiFpga_Session session, uint32_t indicator, + float *value) = NULL; -NiFpga_Status NiFpga_ReadSgl(NiFpga_Session session, uint32_t indicator, float* value) { +NiFpga_Status NiFpga_ReadSgl(NiFpga_Session session, uint32_t indicator, float *value) { return NiFpga_readSgl ? NiFpga_readSgl(session, indicator, value) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readDbl)(NiFpga_Session session, uint32_t indicator, - double* value) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_readDbl)(NiFpga_Session session, uint32_t indicator, + double *value) = NULL; -NiFpga_Status NiFpga_ReadDbl(NiFpga_Session session, uint32_t indicator, double* value) { +NiFpga_Status NiFpga_ReadDbl(NiFpga_Session session, uint32_t indicator, double *value) { return NiFpga_readDbl ? NiFpga_readDbl(session, indicator, value) : NiFpga_Status_ResourceNotInitialized; } /* * Functions to write to scalar controls and indicators. */ -static NiFpga_Status(NiFpga_CCall* NiFpga_writeBool)(NiFpga_Session session, uint32_t control, +static NiFpga_Status(NiFpga_CCall *NiFpga_writeBool)(NiFpga_Session session, uint32_t control, NiFpga_Bool value) = NULL; NiFpga_Status NiFpga_WriteBool(NiFpga_Session session, uint32_t control, NiFpga_Bool value) { @@ -215,70 +215,70 @@ NiFpga_Status NiFpga_WriteBool(NiFpga_Session session, uint32_t control, NiFpga_ : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeI8)(NiFpga_Session session, uint32_t control, +static NiFpga_Status(NiFpga_CCall *NiFpga_writeI8)(NiFpga_Session session, uint32_t control, int8_t value) = NULL; NiFpga_Status NiFpga_WriteI8(NiFpga_Session session, uint32_t control, int8_t value) { return NiFpga_writeI8 ? NiFpga_writeI8(session, control, value) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeU8)(NiFpga_Session session, uint32_t control, +static NiFpga_Status(NiFpga_CCall *NiFpga_writeU8)(NiFpga_Session session, uint32_t control, uint8_t value) = NULL; NiFpga_Status NiFpga_WriteU8(NiFpga_Session session, uint32_t control, uint8_t value) { return NiFpga_writeU8 ? NiFpga_writeU8(session, control, value) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeI16)(NiFpga_Session session, uint32_t control, +static NiFpga_Status(NiFpga_CCall *NiFpga_writeI16)(NiFpga_Session session, uint32_t control, int16_t value) = NULL; NiFpga_Status NiFpga_WriteI16(NiFpga_Session session, uint32_t control, int16_t value) { return NiFpga_writeI16 ? NiFpga_writeI16(session, control, value) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeU16)(NiFpga_Session session, uint32_t control, +static NiFpga_Status(NiFpga_CCall *NiFpga_writeU16)(NiFpga_Session session, uint32_t control, uint16_t value) = NULL; NiFpga_Status NiFpga_WriteU16(NiFpga_Session session, uint32_t control, uint16_t value) { return NiFpga_writeU16 ? NiFpga_writeU16(session, control, value) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeI32)(NiFpga_Session session, uint32_t control, +static NiFpga_Status(NiFpga_CCall *NiFpga_writeI32)(NiFpga_Session session, uint32_t control, int32_t value) = NULL; NiFpga_Status NiFpga_WriteI32(NiFpga_Session session, uint32_t control, int32_t value) { return NiFpga_writeI32 ? NiFpga_writeI32(session, control, value) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeU32)(NiFpga_Session session, uint32_t control, +static NiFpga_Status(NiFpga_CCall *NiFpga_writeU32)(NiFpga_Session session, uint32_t control, uint32_t value) = NULL; NiFpga_Status NiFpga_WriteU32(NiFpga_Session session, uint32_t control, uint32_t value) { return NiFpga_writeU32 ? NiFpga_writeU32(session, control, value) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeI64)(NiFpga_Session session, uint32_t control, +static NiFpga_Status(NiFpga_CCall *NiFpga_writeI64)(NiFpga_Session session, uint32_t control, int64_t value) = NULL; NiFpga_Status NiFpga_WriteI64(NiFpga_Session session, uint32_t control, int64_t value) { return NiFpga_writeI64 ? NiFpga_writeI64(session, control, value) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeU64)(NiFpga_Session session, uint32_t control, +static NiFpga_Status(NiFpga_CCall *NiFpga_writeU64)(NiFpga_Session session, uint32_t control, uint64_t value) = NULL; NiFpga_Status NiFpga_WriteU64(NiFpga_Session session, uint32_t control, uint64_t value) { return NiFpga_writeU64 ? NiFpga_writeU64(session, control, value) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeSgl)(NiFpga_Session session, uint32_t control, +static NiFpga_Status(NiFpga_CCall *NiFpga_writeSgl)(NiFpga_Session session, uint32_t control, float value) = NULL; NiFpga_Status NiFpga_WriteSgl(NiFpga_Session session, uint32_t control, float value) { return NiFpga_writeSgl ? NiFpga_writeSgl(session, control, value) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeDbl)(NiFpga_Session session, uint32_t control, +static NiFpga_Status(NiFpga_CCall *NiFpga_writeDbl)(NiFpga_Session session, uint32_t control, double value) = NULL; NiFpga_Status NiFpga_WriteDbl(NiFpga_Session session, uint32_t control, double value) { @@ -288,91 +288,91 @@ NiFpga_Status NiFpga_WriteDbl(NiFpga_Session session, uint32_t control, double v /* * Functions to read from array indicators and controls. */ -static NiFpga_Status(NiFpga_CCall* NiFpga_readArrayBool)(NiFpga_Session session, uint32_t indicator, - NiFpga_Bool* array, size_t size) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_readArrayBool)(NiFpga_Session session, uint32_t indicator, + NiFpga_Bool *array, size_t size) = NULL; -NiFpga_Status NiFpga_ReadArrayBool(NiFpga_Session session, uint32_t indicator, NiFpga_Bool* array, +NiFpga_Status NiFpga_ReadArrayBool(NiFpga_Session session, uint32_t indicator, NiFpga_Bool *array, size_t size) { return NiFpga_readArrayBool ? NiFpga_readArrayBool(session, indicator, array, size) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readArrayI8)(NiFpga_Session session, uint32_t indicator, - int8_t* array, size_t size) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_readArrayI8)(NiFpga_Session session, uint32_t indicator, + int8_t *array, size_t size) = NULL; -NiFpga_Status NiFpga_ReadArrayI8(NiFpga_Session session, uint32_t indicator, int8_t* array, size_t size) { +NiFpga_Status NiFpga_ReadArrayI8(NiFpga_Session session, uint32_t indicator, int8_t *array, size_t size) { return NiFpga_readArrayI8 ? NiFpga_readArrayI8(session, indicator, array, size) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readArrayU8)(NiFpga_Session session, uint32_t indicator, - uint8_t* array, size_t size) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_readArrayU8)(NiFpga_Session session, uint32_t indicator, + uint8_t *array, size_t size) = NULL; -NiFpga_Status NiFpga_ReadArrayU8(NiFpga_Session session, uint32_t indicator, uint8_t* array, size_t size) { +NiFpga_Status NiFpga_ReadArrayU8(NiFpga_Session session, uint32_t indicator, uint8_t *array, size_t size) { return NiFpga_readArrayU8 ? NiFpga_readArrayU8(session, indicator, array, size) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readArrayI16)(NiFpga_Session session, uint32_t indicator, - int16_t* array, size_t size) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_readArrayI16)(NiFpga_Session session, uint32_t indicator, + int16_t *array, size_t size) = NULL; -NiFpga_Status NiFpga_ReadArrayI16(NiFpga_Session session, uint32_t indicator, int16_t* array, size_t size) { +NiFpga_Status NiFpga_ReadArrayI16(NiFpga_Session session, uint32_t indicator, int16_t *array, size_t size) { return NiFpga_readArrayI16 ? NiFpga_readArrayI16(session, indicator, array, size) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readArrayU16)(NiFpga_Session session, uint32_t indicator, - uint16_t* array, size_t size) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_readArrayU16)(NiFpga_Session session, uint32_t indicator, + uint16_t *array, size_t size) = NULL; -NiFpga_Status NiFpga_ReadArrayU16(NiFpga_Session session, uint32_t indicator, uint16_t* array, size_t size) { +NiFpga_Status NiFpga_ReadArrayU16(NiFpga_Session session, uint32_t indicator, uint16_t *array, size_t size) { return NiFpga_readArrayU16 ? NiFpga_readArrayU16(session, indicator, array, size) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readArrayI32)(NiFpga_Session session, uint32_t indicator, - int32_t* array, size_t size) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_readArrayI32)(NiFpga_Session session, uint32_t indicator, + int32_t *array, size_t size) = NULL; -NiFpga_Status NiFpga_ReadArrayI32(NiFpga_Session session, uint32_t indicator, int32_t* array, size_t size) { +NiFpga_Status NiFpga_ReadArrayI32(NiFpga_Session session, uint32_t indicator, int32_t *array, size_t size) { return NiFpga_readArrayI32 ? NiFpga_readArrayI32(session, indicator, array, size) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readArrayU32)(NiFpga_Session session, uint32_t indicator, - uint32_t* array, size_t size) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_readArrayU32)(NiFpga_Session session, uint32_t indicator, + uint32_t *array, size_t size) = NULL; -NiFpga_Status NiFpga_ReadArrayU32(NiFpga_Session session, uint32_t indicator, uint32_t* array, size_t size) { +NiFpga_Status NiFpga_ReadArrayU32(NiFpga_Session session, uint32_t indicator, uint32_t *array, size_t size) { return NiFpga_readArrayU32 ? NiFpga_readArrayU32(session, indicator, array, size) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readArrayI64)(NiFpga_Session session, uint32_t indicator, - int64_t* array, size_t size) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_readArrayI64)(NiFpga_Session session, uint32_t indicator, + int64_t *array, size_t size) = NULL; -NiFpga_Status NiFpga_ReadArrayI64(NiFpga_Session session, uint32_t indicator, int64_t* array, size_t size) { +NiFpga_Status NiFpga_ReadArrayI64(NiFpga_Session session, uint32_t indicator, int64_t *array, size_t size) { return NiFpga_readArrayI64 ? NiFpga_readArrayI64(session, indicator, array, size) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readArrayU64)(NiFpga_Session session, uint32_t indicator, - uint64_t* array, size_t size) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_readArrayU64)(NiFpga_Session session, uint32_t indicator, + uint64_t *array, size_t size) = NULL; -NiFpga_Status NiFpga_ReadArrayU64(NiFpga_Session session, uint32_t indicator, uint64_t* array, size_t size) { +NiFpga_Status NiFpga_ReadArrayU64(NiFpga_Session session, uint32_t indicator, uint64_t *array, size_t size) { return NiFpga_readArrayU64 ? NiFpga_readArrayU64(session, indicator, array, size) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readArraySgl)(NiFpga_Session session, uint32_t indicator, - float* array, size_t size) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_readArraySgl)(NiFpga_Session session, uint32_t indicator, + float *array, size_t size) = NULL; -NiFpga_Status NiFpga_ReadArraySgl(NiFpga_Session session, uint32_t indicator, float* array, size_t size) { +NiFpga_Status NiFpga_ReadArraySgl(NiFpga_Session session, uint32_t indicator, float *array, size_t size) { return NiFpga_readArraySgl ? NiFpga_readArraySgl(session, indicator, array, size) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readArrayDbl)(NiFpga_Session session, uint32_t indicator, - double* array, size_t size) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_readArrayDbl)(NiFpga_Session session, uint32_t indicator, + double *array, size_t size) = NULL; -NiFpga_Status NiFpga_ReadArrayDbl(NiFpga_Session session, uint32_t indicator, double* array, size_t size) { +NiFpga_Status NiFpga_ReadArrayDbl(NiFpga_Session session, uint32_t indicator, double *array, size_t size) { return NiFpga_readArrayDbl ? NiFpga_readArrayDbl(session, indicator, array, size) : NiFpga_Status_ResourceNotInitialized; } @@ -380,100 +380,100 @@ NiFpga_Status NiFpga_ReadArrayDbl(NiFpga_Session session, uint32_t indicator, do /* * Functions to write to array controls and indicators. */ -static NiFpga_Status(NiFpga_CCall* NiFpga_writeArrayBool)(NiFpga_Session session, uint32_t control, - const NiFpga_Bool* array, size_t size) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_writeArrayBool)(NiFpga_Session session, uint32_t control, + const NiFpga_Bool *array, size_t size) = NULL; -NiFpga_Status NiFpga_WriteArrayBool(NiFpga_Session session, uint32_t control, const NiFpga_Bool* array, +NiFpga_Status NiFpga_WriteArrayBool(NiFpga_Session session, uint32_t control, const NiFpga_Bool *array, size_t size) { return NiFpga_writeArrayBool ? NiFpga_writeArrayBool(session, control, array, size) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeArrayI8)(NiFpga_Session session, uint32_t control, - const int8_t* array, size_t size) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_writeArrayI8)(NiFpga_Session session, uint32_t control, + const int8_t *array, size_t size) = NULL; -NiFpga_Status NiFpga_WriteArrayI8(NiFpga_Session session, uint32_t control, const int8_t* array, +NiFpga_Status NiFpga_WriteArrayI8(NiFpga_Session session, uint32_t control, const int8_t *array, size_t size) { return NiFpga_writeArrayI8 ? NiFpga_writeArrayI8(session, control, array, size) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeArrayU8)(NiFpga_Session session, uint32_t control, - const uint8_t* array, size_t size) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_writeArrayU8)(NiFpga_Session session, uint32_t control, + const uint8_t *array, size_t size) = NULL; -NiFpga_Status NiFpga_WriteArrayU8(NiFpga_Session session, uint32_t control, const uint8_t* array, +NiFpga_Status NiFpga_WriteArrayU8(NiFpga_Session session, uint32_t control, const uint8_t *array, size_t size) { return NiFpga_writeArrayU8 ? NiFpga_writeArrayU8(session, control, array, size) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeArrayI16)(NiFpga_Session session, uint32_t control, - const int16_t* array, size_t size) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_writeArrayI16)(NiFpga_Session session, uint32_t control, + const int16_t *array, size_t size) = NULL; -NiFpga_Status NiFpga_WriteArrayI16(NiFpga_Session session, uint32_t control, const int16_t* array, +NiFpga_Status NiFpga_WriteArrayI16(NiFpga_Session session, uint32_t control, const int16_t *array, size_t size) { return NiFpga_writeArrayI16 ? NiFpga_writeArrayI16(session, control, array, size) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeArrayU16)(NiFpga_Session session, uint32_t control, - const uint16_t* array, size_t size) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_writeArrayU16)(NiFpga_Session session, uint32_t control, + const uint16_t *array, size_t size) = NULL; -NiFpga_Status NiFpga_WriteArrayU16(NiFpga_Session session, uint32_t control, const uint16_t* array, +NiFpga_Status NiFpga_WriteArrayU16(NiFpga_Session session, uint32_t control, const uint16_t *array, size_t size) { return NiFpga_writeArrayU16 ? NiFpga_writeArrayU16(session, control, array, size) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeArrayI32)(NiFpga_Session session, uint32_t control, - const int32_t* array, size_t size) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_writeArrayI32)(NiFpga_Session session, uint32_t control, + const int32_t *array, size_t size) = NULL; -NiFpga_Status NiFpga_WriteArrayI32(NiFpga_Session session, uint32_t control, const int32_t* array, +NiFpga_Status NiFpga_WriteArrayI32(NiFpga_Session session, uint32_t control, const int32_t *array, size_t size) { return NiFpga_writeArrayI32 ? NiFpga_writeArrayI32(session, control, array, size) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeArrayU32)(NiFpga_Session session, uint32_t control, - const uint32_t* array, size_t size) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_writeArrayU32)(NiFpga_Session session, uint32_t control, + const uint32_t *array, size_t size) = NULL; -NiFpga_Status NiFpga_WriteArrayU32(NiFpga_Session session, uint32_t control, const uint32_t* array, +NiFpga_Status NiFpga_WriteArrayU32(NiFpga_Session session, uint32_t control, const uint32_t *array, size_t size) { return NiFpga_writeArrayU32 ? NiFpga_writeArrayU32(session, control, array, size) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeArrayI64)(NiFpga_Session session, uint32_t control, - const int64_t* array, size_t size) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_writeArrayI64)(NiFpga_Session session, uint32_t control, + const int64_t *array, size_t size) = NULL; -NiFpga_Status NiFpga_WriteArrayI64(NiFpga_Session session, uint32_t control, const int64_t* array, +NiFpga_Status NiFpga_WriteArrayI64(NiFpga_Session session, uint32_t control, const int64_t *array, size_t size) { return NiFpga_writeArrayI64 ? NiFpga_writeArrayI64(session, control, array, size) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeArrayU64)(NiFpga_Session session, uint32_t control, - const uint64_t* array, size_t size) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_writeArrayU64)(NiFpga_Session session, uint32_t control, + const uint64_t *array, size_t size) = NULL; -NiFpga_Status NiFpga_WriteArrayU64(NiFpga_Session session, uint32_t control, const uint64_t* array, +NiFpga_Status NiFpga_WriteArrayU64(NiFpga_Session session, uint32_t control, const uint64_t *array, size_t size) { return NiFpga_writeArrayU64 ? NiFpga_writeArrayU64(session, control, array, size) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeArraySgl)(NiFpga_Session session, uint32_t control, - const float* array, size_t size) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_writeArraySgl)(NiFpga_Session session, uint32_t control, + const float *array, size_t size) = NULL; -NiFpga_Status NiFpga_WriteArraySgl(NiFpga_Session session, uint32_t control, const float* array, +NiFpga_Status NiFpga_WriteArraySgl(NiFpga_Session session, uint32_t control, const float *array, size_t size) { return NiFpga_writeArraySgl ? NiFpga_writeArraySgl(session, control, array, size) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeArrayDbl)(NiFpga_Session session, uint32_t control, - const double* array, size_t size) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_writeArrayDbl)(NiFpga_Session session, uint32_t control, + const double *array, size_t size) = NULL; -NiFpga_Status NiFpga_WriteArrayDbl(NiFpga_Session session, uint32_t control, const double* array, +NiFpga_Status NiFpga_WriteArrayDbl(NiFpga_Session session, uint32_t control, const double *array, size_t size) { return NiFpga_writeArrayDbl ? NiFpga_writeArrayDbl(session, control, array, size) : NiFpga_Status_ResourceNotInitialized; @@ -482,10 +482,10 @@ NiFpga_Status NiFpga_WriteArrayDbl(NiFpga_Session session, uint32_t control, con /* * Interrupt functions. */ -static NiFpga_Status(NiFpga_CCall* NiFpga_reserveIrqContext)(NiFpga_Session session, - NiFpga_IrqContext* context) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_reserveIrqContext)(NiFpga_Session session, + NiFpga_IrqContext *context) = NULL; -NiFpga_Status NiFpga_ReserveIrqContext(NiFpga_Session session, NiFpga_IrqContext* context) { +NiFpga_Status NiFpga_ReserveIrqContext(NiFpga_Session session, NiFpga_IrqContext *context) { const NiFpga_Status result = NiFpga_reserveIrqContext ? NiFpga_reserveIrqContext(session, context) : NiFpga_Status_ResourceNotInitialized; #if NiFpga_CviResourceTracking @@ -495,7 +495,7 @@ NiFpga_Status NiFpga_ReserveIrqContext(NiFpga_Session session, NiFpga_IrqContext return result; } -static NiFpga_Status(NiFpga_CCall* NiFpga_unreserveIrqContext)(NiFpga_Session session, +static NiFpga_Status(NiFpga_CCall *NiFpga_unreserveIrqContext)(NiFpga_Session session, NiFpga_IrqContext context) = NULL; NiFpga_Status NiFpga_UnreserveIrqContext(NiFpga_Session session, NiFpga_IrqContext context) { @@ -506,17 +506,17 @@ NiFpga_Status NiFpga_UnreserveIrqContext(NiFpga_Session session, NiFpga_IrqConte return NiFpga_unreserveIrqContext(session, context); } -static NiFpga_Status(NiFpga_CCall* NiFpga_waitOnIrqs)(NiFpga_Session session, NiFpga_IrqContext context, - uint32_t irqs, uint32_t timeout, uint32_t* irqsAsserted, - NiFpga_Bool* timedOut) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_waitOnIrqs)(NiFpga_Session session, NiFpga_IrqContext context, + uint32_t irqs, uint32_t timeout, uint32_t *irqsAsserted, + NiFpga_Bool *timedOut) = NULL; NiFpga_Status NiFpga_WaitOnIrqs(NiFpga_Session session, NiFpga_IrqContext context, uint32_t irqs, - uint32_t timeout, uint32_t* irqsAsserted, NiFpga_Bool* timedOut) { + uint32_t timeout, uint32_t *irqsAsserted, NiFpga_Bool *timedOut) { return NiFpga_waitOnIrqs ? NiFpga_waitOnIrqs(session, context, irqs, timeout, irqsAsserted, timedOut) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_acknowledgeIrqs)(NiFpga_Session session, uint32_t irqs) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_acknowledgeIrqs)(NiFpga_Session session, uint32_t irqs) = NULL; NiFpga_Status NiFpga_AcknowledgeIrqs(NiFpga_Session session, uint32_t irqs) { return NiFpga_acknowledgeIrqs ? NiFpga_acknowledgeIrqs(session, irqs) @@ -526,7 +526,7 @@ NiFpga_Status NiFpga_AcknowledgeIrqs(NiFpga_Session session, uint32_t irqs) { /* * DMA FIFO state functions. */ -static NiFpga_Status(NiFpga_CCall* NiFpga_configureFifo)(NiFpga_Session session, uint32_t fifo, +static NiFpga_Status(NiFpga_CCall *NiFpga_configureFifo)(NiFpga_Session session, uint32_t fifo, size_t depth) = NULL; NiFpga_Status NiFpga_ConfigureFifo(NiFpga_Session session, uint32_t fifo, size_t depth) { @@ -534,16 +534,16 @@ NiFpga_Status NiFpga_ConfigureFifo(NiFpga_Session session, uint32_t fifo, size_t : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_configureFifo2)(NiFpga_Session session, uint32_t fifo, - size_t requestedDepth, size_t* actualDepth) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_configureFifo2)(NiFpga_Session session, uint32_t fifo, + size_t requestedDepth, size_t *actualDepth) = NULL; NiFpga_Status NiFpga_ConfigureFifo2(NiFpga_Session session, uint32_t fifo, size_t requestedDepth, - size_t* actualDepth) { + size_t *actualDepth) { return NiFpga_configureFifo2 ? NiFpga_configureFifo2(session, fifo, requestedDepth, actualDepth) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_setFifoPropertyU32)(NiFpga_Session session, uint32_t fifo, +static NiFpga_Status(NiFpga_CCall *NiFpga_setFifoPropertyU32)(NiFpga_Session session, uint32_t fifo, NiFpga_FifoProperty property, uint32_t value) = NULL; @@ -553,7 +553,7 @@ NiFpga_Status NiFpga_SetFifoPropertyU32(NiFpga_Session session, uint32_t fifo, N : NiFpga_Status_VersionMismatch; } -static NiFpga_Status(NiFpga_CCall* NiFpga_setFifoPropertyI32)(NiFpga_Session session, uint32_t fifo, +static NiFpga_Status(NiFpga_CCall *NiFpga_setFifoPropertyI32)(NiFpga_Session session, uint32_t fifo, NiFpga_FifoProperty property, int32_t value) = NULL; @@ -563,7 +563,7 @@ NiFpga_Status NiFpga_SetFifoPropertyI32(NiFpga_Session session, uint32_t fifo, N : NiFpga_Status_VersionMismatch; } -static NiFpga_Status(NiFpga_CCall* NiFpga_setFifoPropertyU64)(NiFpga_Session session, uint32_t fifo, +static NiFpga_Status(NiFpga_CCall *NiFpga_setFifoPropertyU64)(NiFpga_Session session, uint32_t fifo, NiFpga_FifoProperty property, uint64_t value) = NULL; @@ -573,7 +573,7 @@ NiFpga_Status NiFpga_SetFifoPropertyU64(NiFpga_Session session, uint32_t fifo, N : NiFpga_Status_VersionMismatch; } -static NiFpga_Status(NiFpga_CCall* NiFpga_setFifoPropertyI64)(NiFpga_Session session, uint32_t fifo, +static NiFpga_Status(NiFpga_CCall *NiFpga_setFifoPropertyI64)(NiFpga_Session session, uint32_t fifo, NiFpga_FifoProperty property, int64_t value) = NULL; @@ -583,67 +583,67 @@ NiFpga_Status NiFpga_SetFifoPropertyI64(NiFpga_Session session, uint32_t fifo, N : NiFpga_Status_VersionMismatch; } -static NiFpga_Status(NiFpga_CCall* NiFpga_setFifoPropertyPtr)(NiFpga_Session session, uint32_t fifo, +static NiFpga_Status(NiFpga_CCall *NiFpga_setFifoPropertyPtr)(NiFpga_Session session, uint32_t fifo, NiFpga_FifoProperty property, - void* value) = NULL; + void *value) = NULL; NiFpga_Status NiFpga_SetFifoPropertyPtr(NiFpga_Session session, uint32_t fifo, NiFpga_FifoProperty property, - void* value) { + void *value) { return NiFpga_setFifoPropertyPtr ? NiFpga_setFifoPropertyPtr(session, fifo, property, value) : NiFpga_Status_VersionMismatch; } -static NiFpga_Status(NiFpga_CCall* NiFpga_getFifoPropertyU32)(NiFpga_Session session, uint32_t fifo, +static NiFpga_Status(NiFpga_CCall *NiFpga_getFifoPropertyU32)(NiFpga_Session session, uint32_t fifo, NiFpga_FifoProperty property, - uint32_t* value) = NULL; + uint32_t *value) = NULL; NiFpga_Status NiFpga_GetFifoPropertyU32(NiFpga_Session session, uint32_t fifo, NiFpga_FifoProperty property, - uint32_t* value) { + uint32_t *value) { return NiFpga_getFifoPropertyU32 ? NiFpga_getFifoPropertyU32(session, fifo, property, value) : NiFpga_Status_VersionMismatch; } -static NiFpga_Status(NiFpga_CCall* NiFpga_getFifoPropertyI32)(NiFpga_Session session, uint32_t fifo, +static NiFpga_Status(NiFpga_CCall *NiFpga_getFifoPropertyI32)(NiFpga_Session session, uint32_t fifo, NiFpga_FifoProperty property, - int32_t* value) = NULL; + int32_t *value) = NULL; NiFpga_Status NiFpga_GetFifoPropertyI32(NiFpga_Session session, uint32_t fifo, NiFpga_FifoProperty property, - int32_t* value) { + int32_t *value) { return NiFpga_getFifoPropertyI32 ? NiFpga_getFifoPropertyI32(session, fifo, property, value) : NiFpga_Status_VersionMismatch; } -static NiFpga_Status(NiFpga_CCall* NiFpga_getFifoPropertyU64)(NiFpga_Session session, uint32_t fifo, +static NiFpga_Status(NiFpga_CCall *NiFpga_getFifoPropertyU64)(NiFpga_Session session, uint32_t fifo, NiFpga_FifoProperty property, - uint64_t* value) = NULL; + uint64_t *value) = NULL; NiFpga_Status NiFpga_GetFifoPropertyU64(NiFpga_Session session, uint32_t fifo, NiFpga_FifoProperty property, - uint64_t* value) { + uint64_t *value) { return NiFpga_getFifoPropertyU64 ? NiFpga_getFifoPropertyU64(session, fifo, property, value) : NiFpga_Status_VersionMismatch; } -static NiFpga_Status(NiFpga_CCall* NiFpga_getFifoPropertyI64)(NiFpga_Session session, uint32_t fifo, +static NiFpga_Status(NiFpga_CCall *NiFpga_getFifoPropertyI64)(NiFpga_Session session, uint32_t fifo, NiFpga_FifoProperty property, - int64_t* value) = NULL; + int64_t *value) = NULL; NiFpga_Status NiFpga_GetFifoPropertyI64(NiFpga_Session session, uint32_t fifo, NiFpga_FifoProperty property, - int64_t* value) { + int64_t *value) { return NiFpga_getFifoPropertyI64 ? NiFpga_getFifoPropertyI64(session, fifo, property, value) : NiFpga_Status_VersionMismatch; } -static NiFpga_Status(NiFpga_CCall* NiFpga_getFifoPropertyPtr)(NiFpga_Session session, uint32_t fifo, +static NiFpga_Status(NiFpga_CCall *NiFpga_getFifoPropertyPtr)(NiFpga_Session session, uint32_t fifo, NiFpga_FifoProperty property, - void** value) = NULL; + void **value) = NULL; NiFpga_Status NiFpga_GetFifoPropertyPtr(NiFpga_Session session, uint32_t fifo, NiFpga_FifoProperty property, - void** value) { + void **value) { return NiFpga_getFifoPropertyPtr ? NiFpga_getFifoPropertyPtr(session, fifo, property, value) : NiFpga_Status_VersionMismatch; } -static NiFpga_Status(NiFpga_CCall* NiFpga_commitFifoConfiguration)(NiFpga_Session session, +static NiFpga_Status(NiFpga_CCall *NiFpga_commitFifoConfiguration)(NiFpga_Session session, uint32_t fifo) = NULL; NiFpga_Status NiFpga_CommitFifoConfiguration(NiFpga_Session session, uint32_t fifo) { @@ -651,13 +651,13 @@ NiFpga_Status NiFpga_CommitFifoConfiguration(NiFpga_Session session, uint32_t fi : NiFpga_Status_VersionMismatch; } -static NiFpga_Status(NiFpga_CCall* NiFpga_startFifo)(NiFpga_Session session, uint32_t fifo) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_startFifo)(NiFpga_Session session, uint32_t fifo) = NULL; NiFpga_Status NiFpga_StartFifo(NiFpga_Session session, uint32_t fifo) { return NiFpga_startFifo ? NiFpga_startFifo(session, fifo) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_stopFifo)(NiFpga_Session session, uint32_t fifo) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_stopFifo)(NiFpga_Session session, uint32_t fifo) = NULL; NiFpga_Status NiFpga_StopFifo(NiFpga_Session session, uint32_t fifo) { return NiFpga_stopFifo ? NiFpga_stopFifo(session, fifo) : NiFpga_Status_ResourceNotInitialized; @@ -666,135 +666,135 @@ NiFpga_Status NiFpga_StopFifo(NiFpga_Session session, uint32_t fifo) { /* * Functions to read from target-to-host DMA FIFOs. */ -static NiFpga_Status(NiFpga_CCall* NiFpga_readFifoBool)(NiFpga_Session session, uint32_t fifo, - NiFpga_Bool* data, size_t numberOfElements, - uint32_t timeout, size_t* elementsRemaining) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_readFifoBool)(NiFpga_Session session, uint32_t fifo, + NiFpga_Bool *data, size_t numberOfElements, + uint32_t timeout, size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_ReadFifoBool(NiFpga_Session session, uint32_t fifo, NiFpga_Bool* data, - size_t numberOfElements, uint32_t timeout, size_t* elementsRemaining) { +NiFpga_Status NiFpga_ReadFifoBool(NiFpga_Session session, uint32_t fifo, NiFpga_Bool *data, + size_t numberOfElements, uint32_t timeout, size_t *elementsRemaining) { return NiFpga_readFifoBool ? NiFpga_readFifoBool(session, fifo, data, numberOfElements, timeout, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readFifoI8)(NiFpga_Session session, uint32_t fifo, int8_t* data, +static NiFpga_Status(NiFpga_CCall *NiFpga_readFifoI8)(NiFpga_Session session, uint32_t fifo, int8_t *data, size_t numberOfElements, uint32_t timeout, - size_t* elementsRemaining) = NULL; + size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_ReadFifoI8(NiFpga_Session session, uint32_t fifo, int8_t* data, size_t numberOfElements, - uint32_t timeout, size_t* elementsRemaining) { +NiFpga_Status NiFpga_ReadFifoI8(NiFpga_Session session, uint32_t fifo, int8_t *data, size_t numberOfElements, + uint32_t timeout, size_t *elementsRemaining) { return NiFpga_readFifoI8 ? NiFpga_readFifoI8(session, fifo, data, numberOfElements, timeout, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readFifoU8)(NiFpga_Session session, uint32_t fifo, uint8_t* data, +static NiFpga_Status(NiFpga_CCall *NiFpga_readFifoU8)(NiFpga_Session session, uint32_t fifo, uint8_t *data, size_t numberOfElements, uint32_t timeout, - size_t* elementsRemaining) = NULL; + size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_ReadFifoU8(NiFpga_Session session, uint32_t fifo, uint8_t* data, size_t numberOfElements, - uint32_t timeout, size_t* elementsRemaining) { +NiFpga_Status NiFpga_ReadFifoU8(NiFpga_Session session, uint32_t fifo, uint8_t *data, size_t numberOfElements, + uint32_t timeout, size_t *elementsRemaining) { return NiFpga_readFifoU8 ? NiFpga_readFifoU8(session, fifo, data, numberOfElements, timeout, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readFifoI16)(NiFpga_Session session, uint32_t fifo, int16_t* data, +static NiFpga_Status(NiFpga_CCall *NiFpga_readFifoI16)(NiFpga_Session session, uint32_t fifo, int16_t *data, size_t numberOfElements, uint32_t timeout, - size_t* elementsRemaining) = NULL; + size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_ReadFifoI16(NiFpga_Session session, uint32_t fifo, int16_t* data, - size_t numberOfElements, uint32_t timeout, size_t* elementsRemaining) { +NiFpga_Status NiFpga_ReadFifoI16(NiFpga_Session session, uint32_t fifo, int16_t *data, + size_t numberOfElements, uint32_t timeout, size_t *elementsRemaining) { return NiFpga_readFifoI16 ? NiFpga_readFifoI16(session, fifo, data, numberOfElements, timeout, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readFifoU16)(NiFpga_Session session, uint32_t fifo, uint16_t* data, +static NiFpga_Status(NiFpga_CCall *NiFpga_readFifoU16)(NiFpga_Session session, uint32_t fifo, uint16_t *data, size_t numberOfElements, uint32_t timeout, - size_t* elementsRemaining) = NULL; + size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_ReadFifoU16(NiFpga_Session session, uint32_t fifo, uint16_t* data, - size_t numberOfElements, uint32_t timeout, size_t* elementsRemaining) { +NiFpga_Status NiFpga_ReadFifoU16(NiFpga_Session session, uint32_t fifo, uint16_t *data, + size_t numberOfElements, uint32_t timeout, size_t *elementsRemaining) { return NiFpga_readFifoU16 ? NiFpga_readFifoU16(session, fifo, data, numberOfElements, timeout, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readFifoI32)(NiFpga_Session session, uint32_t fifo, int32_t* data, +static NiFpga_Status(NiFpga_CCall *NiFpga_readFifoI32)(NiFpga_Session session, uint32_t fifo, int32_t *data, size_t numberOfElements, uint32_t timeout, - size_t* elementsRemaining) = NULL; + size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_ReadFifoI32(NiFpga_Session session, uint32_t fifo, int32_t* data, - size_t numberOfElements, uint32_t timeout, size_t* elementsRemaining) { +NiFpga_Status NiFpga_ReadFifoI32(NiFpga_Session session, uint32_t fifo, int32_t *data, + size_t numberOfElements, uint32_t timeout, size_t *elementsRemaining) { return NiFpga_readFifoI32 ? NiFpga_readFifoI32(session, fifo, data, numberOfElements, timeout, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readFifoU32)(NiFpga_Session session, uint32_t fifo, uint32_t* data, +static NiFpga_Status(NiFpga_CCall *NiFpga_readFifoU32)(NiFpga_Session session, uint32_t fifo, uint32_t *data, size_t numberOfElements, uint32_t timeout, - size_t* elementsRemaining) = NULL; + size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_ReadFifoU32(NiFpga_Session session, uint32_t fifo, uint32_t* data, - size_t numberOfElements, uint32_t timeout, size_t* elementsRemaining) { +NiFpga_Status NiFpga_ReadFifoU32(NiFpga_Session session, uint32_t fifo, uint32_t *data, + size_t numberOfElements, uint32_t timeout, size_t *elementsRemaining) { return NiFpga_readFifoU32 ? NiFpga_readFifoU32(session, fifo, data, numberOfElements, timeout, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readFifoI64)(NiFpga_Session session, uint32_t fifo, int64_t* data, +static NiFpga_Status(NiFpga_CCall *NiFpga_readFifoI64)(NiFpga_Session session, uint32_t fifo, int64_t *data, size_t numberOfElements, uint32_t timeout, - size_t* elementsRemaining) = NULL; + size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_ReadFifoI64(NiFpga_Session session, uint32_t fifo, int64_t* data, - size_t numberOfElements, uint32_t timeout, size_t* elementsRemaining) { +NiFpga_Status NiFpga_ReadFifoI64(NiFpga_Session session, uint32_t fifo, int64_t *data, + size_t numberOfElements, uint32_t timeout, size_t *elementsRemaining) { return NiFpga_readFifoI64 ? NiFpga_readFifoI64(session, fifo, data, numberOfElements, timeout, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readFifoU64)(NiFpga_Session session, uint32_t fifo, uint64_t* data, +static NiFpga_Status(NiFpga_CCall *NiFpga_readFifoU64)(NiFpga_Session session, uint32_t fifo, uint64_t *data, size_t numberOfElements, uint32_t timeout, - size_t* elementsRemaining) = NULL; + size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_ReadFifoU64(NiFpga_Session session, uint32_t fifo, uint64_t* data, - size_t numberOfElements, uint32_t timeout, size_t* elementsRemaining) { +NiFpga_Status NiFpga_ReadFifoU64(NiFpga_Session session, uint32_t fifo, uint64_t *data, + size_t numberOfElements, uint32_t timeout, size_t *elementsRemaining) { return NiFpga_readFifoU64 ? NiFpga_readFifoU64(session, fifo, data, numberOfElements, timeout, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readFifoSgl)(NiFpga_Session session, uint32_t fifo, float* data, +static NiFpga_Status(NiFpga_CCall *NiFpga_readFifoSgl)(NiFpga_Session session, uint32_t fifo, float *data, size_t numberOfElements, uint32_t timeout, - size_t* elementsRemaining) = NULL; + size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_ReadFifoSgl(NiFpga_Session session, uint32_t fifo, float* data, size_t numberOfElements, - uint32_t timeout, size_t* elementsRemaining) { +NiFpga_Status NiFpga_ReadFifoSgl(NiFpga_Session session, uint32_t fifo, float *data, size_t numberOfElements, + uint32_t timeout, size_t *elementsRemaining) { return NiFpga_readFifoSgl ? NiFpga_readFifoSgl(session, fifo, data, numberOfElements, timeout, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readFifoDbl)(NiFpga_Session session, uint32_t fifo, double* data, +static NiFpga_Status(NiFpga_CCall *NiFpga_readFifoDbl)(NiFpga_Session session, uint32_t fifo, double *data, size_t numberOfElements, uint32_t timeout, - size_t* elementsRemaining) = NULL; + size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_ReadFifoDbl(NiFpga_Session session, uint32_t fifo, double* data, size_t numberOfElements, - uint32_t timeout, size_t* elementsRemaining) { +NiFpga_Status NiFpga_ReadFifoDbl(NiFpga_Session session, uint32_t fifo, double *data, size_t numberOfElements, + uint32_t timeout, size_t *elementsRemaining) { return NiFpga_readFifoDbl ? NiFpga_readFifoDbl(session, fifo, data, numberOfElements, timeout, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_readFifoComposite)(NiFpga_Session session, uint32_t fifo, - void* data, uint32_t bytesPerElement, +static NiFpga_Status(NiFpga_CCall *NiFpga_readFifoComposite)(NiFpga_Session session, uint32_t fifo, + void *data, uint32_t bytesPerElement, size_t numberOfElements, uint32_t timeout, - size_t* elementsRemaining) = NULL; + size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_ReadFifoComposite(NiFpga_Session session, uint32_t fifo, void* data, +NiFpga_Status NiFpga_ReadFifoComposite(NiFpga_Session session, uint32_t fifo, void *data, uint32_t bytesPerElement, size_t numberOfElements, uint32_t timeout, - size_t* elementsRemaining) { + size_t *elementsRemaining) { return NiFpga_readFifoComposite ? NiFpga_readFifoComposite(session, fifo, data, bytesPerElement, numberOfElements, timeout, elementsRemaining) : NiFpga_Status_VersionMismatch; @@ -803,442 +803,442 @@ NiFpga_Status NiFpga_ReadFifoComposite(NiFpga_Session session, uint32_t fifo, vo /* * Functions to write to host-to-target DMA FIFOs. */ -static NiFpga_Status(NiFpga_CCall* NiFpga_writeFifoBool)(NiFpga_Session session, uint32_t fifo, - const NiFpga_Bool* data, size_t numberOfElements, +static NiFpga_Status(NiFpga_CCall *NiFpga_writeFifoBool)(NiFpga_Session session, uint32_t fifo, + const NiFpga_Bool *data, size_t numberOfElements, uint32_t timeout, - size_t* emptyElementsRemaining) = NULL; + size_t *emptyElementsRemaining) = NULL; -NiFpga_Status NiFpga_WriteFifoBool(NiFpga_Session session, uint32_t fifo, const NiFpga_Bool* data, +NiFpga_Status NiFpga_WriteFifoBool(NiFpga_Session session, uint32_t fifo, const NiFpga_Bool *data, size_t numberOfElements, uint32_t timeout, - size_t* emptyElementsRemaining) { + size_t *emptyElementsRemaining) { return NiFpga_writeFifoBool ? NiFpga_writeFifoBool(session, fifo, data, numberOfElements, timeout, emptyElementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeFifoI8)(NiFpga_Session session, uint32_t fifo, - const int8_t* data, size_t numberOfElements, +static NiFpga_Status(NiFpga_CCall *NiFpga_writeFifoI8)(NiFpga_Session session, uint32_t fifo, + const int8_t *data, size_t numberOfElements, uint32_t timeout, - size_t* emptyElementsRemaining) = NULL; + size_t *emptyElementsRemaining) = NULL; -NiFpga_Status NiFpga_WriteFifoI8(NiFpga_Session session, uint32_t fifo, const int8_t* data, - size_t numberOfElements, uint32_t timeout, size_t* emptyElementsRemaining) { +NiFpga_Status NiFpga_WriteFifoI8(NiFpga_Session session, uint32_t fifo, const int8_t *data, + size_t numberOfElements, uint32_t timeout, size_t *emptyElementsRemaining) { return NiFpga_writeFifoI8 ? NiFpga_writeFifoI8(session, fifo, data, numberOfElements, timeout, emptyElementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeFifoU8)(NiFpga_Session session, uint32_t fifo, - const uint8_t* data, size_t numberOfElements, +static NiFpga_Status(NiFpga_CCall *NiFpga_writeFifoU8)(NiFpga_Session session, uint32_t fifo, + const uint8_t *data, size_t numberOfElements, uint32_t timeout, - size_t* emptyElementsRemaining) = NULL; + size_t *emptyElementsRemaining) = NULL; -NiFpga_Status NiFpga_WriteFifoU8(NiFpga_Session session, uint32_t fifo, const uint8_t* data, - size_t numberOfElements, uint32_t timeout, size_t* emptyElementsRemaining) { +NiFpga_Status NiFpga_WriteFifoU8(NiFpga_Session session, uint32_t fifo, const uint8_t *data, + size_t numberOfElements, uint32_t timeout, size_t *emptyElementsRemaining) { return NiFpga_writeFifoU8 ? NiFpga_writeFifoU8(session, fifo, data, numberOfElements, timeout, emptyElementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeFifoI16)(NiFpga_Session session, uint32_t fifo, - const int16_t* data, size_t numberOfElements, +static NiFpga_Status(NiFpga_CCall *NiFpga_writeFifoI16)(NiFpga_Session session, uint32_t fifo, + const int16_t *data, size_t numberOfElements, uint32_t timeout, - size_t* emptyElementsRemaining) = NULL; + size_t *emptyElementsRemaining) = NULL; -NiFpga_Status NiFpga_WriteFifoI16(NiFpga_Session session, uint32_t fifo, const int16_t* data, - size_t numberOfElements, uint32_t timeout, size_t* emptyElementsRemaining) { +NiFpga_Status NiFpga_WriteFifoI16(NiFpga_Session session, uint32_t fifo, const int16_t *data, + size_t numberOfElements, uint32_t timeout, size_t *emptyElementsRemaining) { return NiFpga_writeFifoI16 ? NiFpga_writeFifoI16(session, fifo, data, numberOfElements, timeout, emptyElementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeFifoU16)(NiFpga_Session session, uint32_t fifo, - const uint16_t* data, size_t numberOfElements, +static NiFpga_Status(NiFpga_CCall *NiFpga_writeFifoU16)(NiFpga_Session session, uint32_t fifo, + const uint16_t *data, size_t numberOfElements, uint32_t timeout, - size_t* emptyElementsRemaining) = NULL; + size_t *emptyElementsRemaining) = NULL; -NiFpga_Status NiFpga_WriteFifoU16(NiFpga_Session session, uint32_t fifo, const uint16_t* data, - size_t numberOfElements, uint32_t timeout, size_t* emptyElementsRemaining) { +NiFpga_Status NiFpga_WriteFifoU16(NiFpga_Session session, uint32_t fifo, const uint16_t *data, + size_t numberOfElements, uint32_t timeout, size_t *emptyElementsRemaining) { return NiFpga_writeFifoU16 ? NiFpga_writeFifoU16(session, fifo, data, numberOfElements, timeout, emptyElementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeFifoI32)(NiFpga_Session session, uint32_t fifo, - const int32_t* data, size_t numberOfElements, +static NiFpga_Status(NiFpga_CCall *NiFpga_writeFifoI32)(NiFpga_Session session, uint32_t fifo, + const int32_t *data, size_t numberOfElements, uint32_t timeout, - size_t* emptyElementsRemaining) = NULL; + size_t *emptyElementsRemaining) = NULL; -NiFpga_Status NiFpga_WriteFifoI32(NiFpga_Session session, uint32_t fifo, const int32_t* data, - size_t numberOfElements, uint32_t timeout, size_t* emptyElementsRemaining) { +NiFpga_Status NiFpga_WriteFifoI32(NiFpga_Session session, uint32_t fifo, const int32_t *data, + size_t numberOfElements, uint32_t timeout, size_t *emptyElementsRemaining) { return NiFpga_writeFifoI32 ? NiFpga_writeFifoI32(session, fifo, data, numberOfElements, timeout, emptyElementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeFifoU32)(NiFpga_Session session, uint32_t fifo, - const uint32_t* data, size_t numberOfElements, +static NiFpga_Status(NiFpga_CCall *NiFpga_writeFifoU32)(NiFpga_Session session, uint32_t fifo, + const uint32_t *data, size_t numberOfElements, uint32_t timeout, - size_t* emptyElementsRemaining) = NULL; + size_t *emptyElementsRemaining) = NULL; -NiFpga_Status NiFpga_WriteFifoU32(NiFpga_Session session, uint32_t fifo, const uint32_t* data, - size_t numberOfElements, uint32_t timeout, size_t* emptyElementsRemaining) { +NiFpga_Status NiFpga_WriteFifoU32(NiFpga_Session session, uint32_t fifo, const uint32_t *data, + size_t numberOfElements, uint32_t timeout, size_t *emptyElementsRemaining) { return NiFpga_writeFifoU32 ? NiFpga_writeFifoU32(session, fifo, data, numberOfElements, timeout, emptyElementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeFifoI64)(NiFpga_Session session, uint32_t fifo, - const int64_t* data, size_t numberOfElements, +static NiFpga_Status(NiFpga_CCall *NiFpga_writeFifoI64)(NiFpga_Session session, uint32_t fifo, + const int64_t *data, size_t numberOfElements, uint32_t timeout, - size_t* emptyElementsRemaining) = NULL; + size_t *emptyElementsRemaining) = NULL; -NiFpga_Status NiFpga_WriteFifoI64(NiFpga_Session session, uint32_t fifo, const int64_t* data, - size_t numberOfElements, uint32_t timeout, size_t* emptyElementsRemaining) { +NiFpga_Status NiFpga_WriteFifoI64(NiFpga_Session session, uint32_t fifo, const int64_t *data, + size_t numberOfElements, uint32_t timeout, size_t *emptyElementsRemaining) { return NiFpga_writeFifoI64 ? NiFpga_writeFifoI64(session, fifo, data, numberOfElements, timeout, emptyElementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeFifoU64)(NiFpga_Session session, uint32_t fifo, - const uint64_t* data, size_t numberOfElements, +static NiFpga_Status(NiFpga_CCall *NiFpga_writeFifoU64)(NiFpga_Session session, uint32_t fifo, + const uint64_t *data, size_t numberOfElements, uint32_t timeout, - size_t* emptyElementsRemaining) = NULL; + size_t *emptyElementsRemaining) = NULL; -NiFpga_Status NiFpga_WriteFifoU64(NiFpga_Session session, uint32_t fifo, const uint64_t* data, - size_t numberOfElements, uint32_t timeout, size_t* emptyElementsRemaining) { +NiFpga_Status NiFpga_WriteFifoU64(NiFpga_Session session, uint32_t fifo, const uint64_t *data, + size_t numberOfElements, uint32_t timeout, size_t *emptyElementsRemaining) { return NiFpga_writeFifoU64 ? NiFpga_writeFifoU64(session, fifo, data, numberOfElements, timeout, emptyElementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeFifoSgl)(NiFpga_Session session, uint32_t fifo, - const float* data, size_t numberOfElements, +static NiFpga_Status(NiFpga_CCall *NiFpga_writeFifoSgl)(NiFpga_Session session, uint32_t fifo, + const float *data, size_t numberOfElements, uint32_t timeout, - size_t* emptyElementsRemaining) = NULL; + size_t *emptyElementsRemaining) = NULL; -NiFpga_Status NiFpga_WriteFifoSgl(NiFpga_Session session, uint32_t fifo, const float* data, - size_t numberOfElements, uint32_t timeout, size_t* emptyElementsRemaining) { +NiFpga_Status NiFpga_WriteFifoSgl(NiFpga_Session session, uint32_t fifo, const float *data, + size_t numberOfElements, uint32_t timeout, size_t *emptyElementsRemaining) { return NiFpga_writeFifoSgl ? NiFpga_writeFifoSgl(session, fifo, data, numberOfElements, timeout, emptyElementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeFifoDbl)(NiFpga_Session session, uint32_t fifo, - const double* data, size_t numberOfElements, +static NiFpga_Status(NiFpga_CCall *NiFpga_writeFifoDbl)(NiFpga_Session session, uint32_t fifo, + const double *data, size_t numberOfElements, uint32_t timeout, - size_t* emptyElementsRemaining) = NULL; + size_t *emptyElementsRemaining) = NULL; -NiFpga_Status NiFpga_WriteFifoDbl(NiFpga_Session session, uint32_t fifo, const double* data, - size_t numberOfElements, uint32_t timeout, size_t* emptyElementsRemaining) { +NiFpga_Status NiFpga_WriteFifoDbl(NiFpga_Session session, uint32_t fifo, const double *data, + size_t numberOfElements, uint32_t timeout, size_t *emptyElementsRemaining) { return NiFpga_writeFifoDbl ? NiFpga_writeFifoDbl(session, fifo, data, numberOfElements, timeout, emptyElementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_writeFifoComposite)(NiFpga_Session session, uint32_t fifo, - const void* data, uint32_t bytesPerElement, +static NiFpga_Status(NiFpga_CCall *NiFpga_writeFifoComposite)(NiFpga_Session session, uint32_t fifo, + const void *data, uint32_t bytesPerElement, size_t numberOfElements, uint32_t timeout, - size_t* emptyElementsRemaining) = NULL; + size_t *emptyElementsRemaining) = NULL; -NiFpga_Status NiFpga_WriteFifoComposite(NiFpga_Session session, uint32_t fifo, const void* data, +NiFpga_Status NiFpga_WriteFifoComposite(NiFpga_Session session, uint32_t fifo, const void *data, uint32_t bytesPerElement, size_t numberOfElements, uint32_t timeout, - size_t* emptyElementsRemaining) { + size_t *emptyElementsRemaining) { return NiFpga_writeFifoComposite ? NiFpga_writeFifoComposite(session, fifo, data, bytesPerElement, numberOfElements, timeout, emptyElementsRemaining) : NiFpga_Status_VersionMismatch; } -static NiFpga_Status(NiFpga_CCall* NiFpga_acquireFifoReadElementsBool)( - NiFpga_Session session, uint32_t fifo, NiFpga_Bool** elements, size_t elementsRequested, - uint32_t timeout, size_t* elementsAcquired, size_t* elementsRemaining) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_acquireFifoReadElementsBool)( + NiFpga_Session session, uint32_t fifo, NiFpga_Bool **elements, size_t elementsRequested, + uint32_t timeout, size_t *elementsAcquired, size_t *elementsRemaining) = NULL; NiFpga_Status NiFpga_AcquireFifoReadElementsBool(NiFpga_Session session, uint32_t fifo, - NiFpga_Bool** elements, size_t elementsRequested, - uint32_t timeout, size_t* elementsAcquired, - size_t* elementsRemaining) { + NiFpga_Bool **elements, size_t elementsRequested, + uint32_t timeout, size_t *elementsAcquired, + size_t *elementsRemaining) { return NiFpga_acquireFifoReadElementsBool ? NiFpga_acquireFifoReadElementsBool(session, fifo, elements, elementsRequested, timeout, elementsAcquired, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_acquireFifoReadElementsI8)( - NiFpga_Session session, uint32_t fifo, int8_t** elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_acquireFifoReadElementsI8)( + NiFpga_Session session, uint32_t fifo, int8_t **elements, size_t elementsRequested, uint32_t timeout, + size_t *elementsAcquired, size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_AcquireFifoReadElementsI8(NiFpga_Session session, uint32_t fifo, int8_t** elements, +NiFpga_Status NiFpga_AcquireFifoReadElementsI8(NiFpga_Session session, uint32_t fifo, int8_t **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) { + size_t *elementsAcquired, size_t *elementsRemaining) { return NiFpga_acquireFifoReadElementsI8 ? NiFpga_acquireFifoReadElementsI8(session, fifo, elements, elementsRequested, timeout, elementsAcquired, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_acquireFifoReadElementsU8)( - NiFpga_Session session, uint32_t fifo, uint8_t** elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_acquireFifoReadElementsU8)( + NiFpga_Session session, uint32_t fifo, uint8_t **elements, size_t elementsRequested, uint32_t timeout, + size_t *elementsAcquired, size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_AcquireFifoReadElementsU8(NiFpga_Session session, uint32_t fifo, uint8_t** elements, +NiFpga_Status NiFpga_AcquireFifoReadElementsU8(NiFpga_Session session, uint32_t fifo, uint8_t **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) { + size_t *elementsAcquired, size_t *elementsRemaining) { return NiFpga_acquireFifoReadElementsU8 ? NiFpga_acquireFifoReadElementsU8(session, fifo, elements, elementsRequested, timeout, elementsAcquired, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_acquireFifoReadElementsI16)( - NiFpga_Session session, uint32_t fifo, int16_t** elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_acquireFifoReadElementsI16)( + NiFpga_Session session, uint32_t fifo, int16_t **elements, size_t elementsRequested, uint32_t timeout, + size_t *elementsAcquired, size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_AcquireFifoReadElementsI16(NiFpga_Session session, uint32_t fifo, int16_t** elements, +NiFpga_Status NiFpga_AcquireFifoReadElementsI16(NiFpga_Session session, uint32_t fifo, int16_t **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) { + size_t *elementsAcquired, size_t *elementsRemaining) { return NiFpga_acquireFifoReadElementsI16 ? NiFpga_acquireFifoReadElementsI16(session, fifo, elements, elementsRequested, timeout, elementsAcquired, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_acquireFifoReadElementsU16)( - NiFpga_Session session, uint32_t fifo, uint16_t** elements, size_t elementsRequested, - uint32_t timeout, size_t* elementsAcquired, size_t* elementsRemaining) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_acquireFifoReadElementsU16)( + NiFpga_Session session, uint32_t fifo, uint16_t **elements, size_t elementsRequested, + uint32_t timeout, size_t *elementsAcquired, size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_AcquireFifoReadElementsU16(NiFpga_Session session, uint32_t fifo, uint16_t** elements, +NiFpga_Status NiFpga_AcquireFifoReadElementsU16(NiFpga_Session session, uint32_t fifo, uint16_t **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) { + size_t *elementsAcquired, size_t *elementsRemaining) { return NiFpga_acquireFifoReadElementsU16 ? NiFpga_acquireFifoReadElementsU16(session, fifo, elements, elementsRequested, timeout, elementsAcquired, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_acquireFifoReadElementsI32)( - NiFpga_Session session, uint32_t fifo, int32_t** elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_acquireFifoReadElementsI32)( + NiFpga_Session session, uint32_t fifo, int32_t **elements, size_t elementsRequested, uint32_t timeout, + size_t *elementsAcquired, size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_AcquireFifoReadElementsI32(NiFpga_Session session, uint32_t fifo, int32_t** elements, +NiFpga_Status NiFpga_AcquireFifoReadElementsI32(NiFpga_Session session, uint32_t fifo, int32_t **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) { + size_t *elementsAcquired, size_t *elementsRemaining) { return NiFpga_acquireFifoReadElementsI32 ? NiFpga_acquireFifoReadElementsI32(session, fifo, elements, elementsRequested, timeout, elementsAcquired, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_acquireFifoReadElementsU32)( - NiFpga_Session session, uint32_t fifo, uint32_t** elements, size_t elementsRequested, - uint32_t timeout, size_t* elementsAcquired, size_t* elementsRemaining) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_acquireFifoReadElementsU32)( + NiFpga_Session session, uint32_t fifo, uint32_t **elements, size_t elementsRequested, + uint32_t timeout, size_t *elementsAcquired, size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_AcquireFifoReadElementsU32(NiFpga_Session session, uint32_t fifo, uint32_t** elements, +NiFpga_Status NiFpga_AcquireFifoReadElementsU32(NiFpga_Session session, uint32_t fifo, uint32_t **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) { + size_t *elementsAcquired, size_t *elementsRemaining) { return NiFpga_acquireFifoReadElementsU32 ? NiFpga_acquireFifoReadElementsU32(session, fifo, elements, elementsRequested, timeout, elementsAcquired, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_acquireFifoReadElementsI64)( - NiFpga_Session session, uint32_t fifo, int64_t** elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_acquireFifoReadElementsI64)( + NiFpga_Session session, uint32_t fifo, int64_t **elements, size_t elementsRequested, uint32_t timeout, + size_t *elementsAcquired, size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_AcquireFifoReadElementsI64(NiFpga_Session session, uint32_t fifo, int64_t** elements, +NiFpga_Status NiFpga_AcquireFifoReadElementsI64(NiFpga_Session session, uint32_t fifo, int64_t **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) { + size_t *elementsAcquired, size_t *elementsRemaining) { return NiFpga_acquireFifoReadElementsI64 ? NiFpga_acquireFifoReadElementsI64(session, fifo, elements, elementsRequested, timeout, elementsAcquired, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_acquireFifoReadElementsU64)( - NiFpga_Session session, uint32_t fifo, uint64_t** elements, size_t elementsRequested, - uint32_t timeout, size_t* elementsAcquired, size_t* elementsRemaining) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_acquireFifoReadElementsU64)( + NiFpga_Session session, uint32_t fifo, uint64_t **elements, size_t elementsRequested, + uint32_t timeout, size_t *elementsAcquired, size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_AcquireFifoReadElementsU64(NiFpga_Session session, uint32_t fifo, uint64_t** elements, +NiFpga_Status NiFpga_AcquireFifoReadElementsU64(NiFpga_Session session, uint32_t fifo, uint64_t **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) { + size_t *elementsAcquired, size_t *elementsRemaining) { return NiFpga_acquireFifoReadElementsU64 ? NiFpga_acquireFifoReadElementsU64(session, fifo, elements, elementsRequested, timeout, elementsAcquired, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_acquireFifoReadElementsSgl)( - NiFpga_Session session, uint32_t fifo, float** elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_acquireFifoReadElementsSgl)( + NiFpga_Session session, uint32_t fifo, float **elements, size_t elementsRequested, uint32_t timeout, + size_t *elementsAcquired, size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_AcquireFifoReadElementsSgl(NiFpga_Session session, uint32_t fifo, float** elements, +NiFpga_Status NiFpga_AcquireFifoReadElementsSgl(NiFpga_Session session, uint32_t fifo, float **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) { + size_t *elementsAcquired, size_t *elementsRemaining) { return NiFpga_acquireFifoReadElementsSgl ? NiFpga_acquireFifoReadElementsSgl(session, fifo, elements, elementsRequested, timeout, elementsAcquired, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_acquireFifoReadElementsDbl)( - NiFpga_Session session, uint32_t fifo, double** elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_acquireFifoReadElementsDbl)( + NiFpga_Session session, uint32_t fifo, double **elements, size_t elementsRequested, uint32_t timeout, + size_t *elementsAcquired, size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_AcquireFifoReadElementsDbl(NiFpga_Session session, uint32_t fifo, double** elements, +NiFpga_Status NiFpga_AcquireFifoReadElementsDbl(NiFpga_Session session, uint32_t fifo, double **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) { + size_t *elementsAcquired, size_t *elementsRemaining) { return NiFpga_acquireFifoReadElementsDbl ? NiFpga_acquireFifoReadElementsDbl(session, fifo, elements, elementsRequested, timeout, elementsAcquired, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_acquireFifoWriteElementsBool)( - NiFpga_Session session, uint32_t fifo, NiFpga_Bool** elements, size_t elementsRequested, - uint32_t timeout, size_t* elementsAcquired, size_t* elementsRemaining) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_acquireFifoWriteElementsBool)( + NiFpga_Session session, uint32_t fifo, NiFpga_Bool **elements, size_t elementsRequested, + uint32_t timeout, size_t *elementsAcquired, size_t *elementsRemaining) = NULL; NiFpga_Status NiFpga_AcquireFifoWriteElementsBool(NiFpga_Session session, uint32_t fifo, - NiFpga_Bool** elements, size_t elementsRequested, - uint32_t timeout, size_t* elementsAcquired, - size_t* elementsRemaining) { + NiFpga_Bool **elements, size_t elementsRequested, + uint32_t timeout, size_t *elementsAcquired, + size_t *elementsRemaining) { return NiFpga_acquireFifoWriteElementsBool ? NiFpga_acquireFifoWriteElementsBool(session, fifo, elements, elementsRequested, timeout, elementsAcquired, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_acquireFifoWriteElementsI8)( - NiFpga_Session session, uint32_t fifo, int8_t** elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_acquireFifoWriteElementsI8)( + NiFpga_Session session, uint32_t fifo, int8_t **elements, size_t elementsRequested, uint32_t timeout, + size_t *elementsAcquired, size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_AcquireFifoWriteElementsI8(NiFpga_Session session, uint32_t fifo, int8_t** elements, +NiFpga_Status NiFpga_AcquireFifoWriteElementsI8(NiFpga_Session session, uint32_t fifo, int8_t **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) { + size_t *elementsAcquired, size_t *elementsRemaining) { return NiFpga_acquireFifoWriteElementsI8 ? NiFpga_acquireFifoWriteElementsI8(session, fifo, elements, elementsRequested, timeout, elementsAcquired, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_acquireFifoWriteElementsU8)( - NiFpga_Session session, uint32_t fifo, uint8_t** elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_acquireFifoWriteElementsU8)( + NiFpga_Session session, uint32_t fifo, uint8_t **elements, size_t elementsRequested, uint32_t timeout, + size_t *elementsAcquired, size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_AcquireFifoWriteElementsU8(NiFpga_Session session, uint32_t fifo, uint8_t** elements, +NiFpga_Status NiFpga_AcquireFifoWriteElementsU8(NiFpga_Session session, uint32_t fifo, uint8_t **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) { + size_t *elementsAcquired, size_t *elementsRemaining) { return NiFpga_acquireFifoWriteElementsU8 ? NiFpga_acquireFifoWriteElementsU8(session, fifo, elements, elementsRequested, timeout, elementsAcquired, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_acquireFifoWriteElementsI16)( - NiFpga_Session session, uint32_t fifo, int16_t** elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_acquireFifoWriteElementsI16)( + NiFpga_Session session, uint32_t fifo, int16_t **elements, size_t elementsRequested, uint32_t timeout, + size_t *elementsAcquired, size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_AcquireFifoWriteElementsI16(NiFpga_Session session, uint32_t fifo, int16_t** elements, +NiFpga_Status NiFpga_AcquireFifoWriteElementsI16(NiFpga_Session session, uint32_t fifo, int16_t **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) { + size_t *elementsAcquired, size_t *elementsRemaining) { return NiFpga_acquireFifoWriteElementsI16 ? NiFpga_acquireFifoWriteElementsI16(session, fifo, elements, elementsRequested, timeout, elementsAcquired, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_acquireFifoWriteElementsU16)( - NiFpga_Session session, uint32_t fifo, uint16_t** elements, size_t elementsRequested, - uint32_t timeout, size_t* elementsAcquired, size_t* elementsRemaining) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_acquireFifoWriteElementsU16)( + NiFpga_Session session, uint32_t fifo, uint16_t **elements, size_t elementsRequested, + uint32_t timeout, size_t *elementsAcquired, size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_AcquireFifoWriteElementsU16(NiFpga_Session session, uint32_t fifo, uint16_t** elements, +NiFpga_Status NiFpga_AcquireFifoWriteElementsU16(NiFpga_Session session, uint32_t fifo, uint16_t **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) { + size_t *elementsAcquired, size_t *elementsRemaining) { return NiFpga_acquireFifoWriteElementsU16 ? NiFpga_acquireFifoWriteElementsU16(session, fifo, elements, elementsRequested, timeout, elementsAcquired, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_acquireFifoWriteElementsI32)( - NiFpga_Session session, uint32_t fifo, int32_t** elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_acquireFifoWriteElementsI32)( + NiFpga_Session session, uint32_t fifo, int32_t **elements, size_t elementsRequested, uint32_t timeout, + size_t *elementsAcquired, size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_AcquireFifoWriteElementsI32(NiFpga_Session session, uint32_t fifo, int32_t** elements, +NiFpga_Status NiFpga_AcquireFifoWriteElementsI32(NiFpga_Session session, uint32_t fifo, int32_t **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) { + size_t *elementsAcquired, size_t *elementsRemaining) { return NiFpga_acquireFifoWriteElementsI32 ? NiFpga_acquireFifoWriteElementsI32(session, fifo, elements, elementsRequested, timeout, elementsAcquired, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_acquireFifoWriteElementsU32)( - NiFpga_Session session, uint32_t fifo, uint32_t** elements, size_t elementsRequested, - uint32_t timeout, size_t* elementsAcquired, size_t* elementsRemaining) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_acquireFifoWriteElementsU32)( + NiFpga_Session session, uint32_t fifo, uint32_t **elements, size_t elementsRequested, + uint32_t timeout, size_t *elementsAcquired, size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_AcquireFifoWriteElementsU32(NiFpga_Session session, uint32_t fifo, uint32_t** elements, +NiFpga_Status NiFpga_AcquireFifoWriteElementsU32(NiFpga_Session session, uint32_t fifo, uint32_t **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) { + size_t *elementsAcquired, size_t *elementsRemaining) { return NiFpga_acquireFifoWriteElementsU32 ? NiFpga_acquireFifoWriteElementsU32(session, fifo, elements, elementsRequested, timeout, elementsAcquired, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_acquireFifoWriteElementsI64)( - NiFpga_Session session, uint32_t fifo, int64_t** elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_acquireFifoWriteElementsI64)( + NiFpga_Session session, uint32_t fifo, int64_t **elements, size_t elementsRequested, uint32_t timeout, + size_t *elementsAcquired, size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_AcquireFifoWriteElementsI64(NiFpga_Session session, uint32_t fifo, int64_t** elements, +NiFpga_Status NiFpga_AcquireFifoWriteElementsI64(NiFpga_Session session, uint32_t fifo, int64_t **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) { + size_t *elementsAcquired, size_t *elementsRemaining) { return NiFpga_acquireFifoWriteElementsI64 ? NiFpga_acquireFifoWriteElementsI64(session, fifo, elements, elementsRequested, timeout, elementsAcquired, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_acquireFifoWriteElementsU64)( - NiFpga_Session session, uint32_t fifo, uint64_t** elements, size_t elementsRequested, - uint32_t timeout, size_t* elementsAcquired, size_t* elementsRemaining) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_acquireFifoWriteElementsU64)( + NiFpga_Session session, uint32_t fifo, uint64_t **elements, size_t elementsRequested, + uint32_t timeout, size_t *elementsAcquired, size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_AcquireFifoWriteElementsU64(NiFpga_Session session, uint32_t fifo, uint64_t** elements, +NiFpga_Status NiFpga_AcquireFifoWriteElementsU64(NiFpga_Session session, uint32_t fifo, uint64_t **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) { + size_t *elementsAcquired, size_t *elementsRemaining) { return NiFpga_acquireFifoWriteElementsU64 ? NiFpga_acquireFifoWriteElementsU64(session, fifo, elements, elementsRequested, timeout, elementsAcquired, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_acquireFifoWriteElementsSgl)( - NiFpga_Session session, uint32_t fifo, float** elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_acquireFifoWriteElementsSgl)( + NiFpga_Session session, uint32_t fifo, float **elements, size_t elementsRequested, uint32_t timeout, + size_t *elementsAcquired, size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_AcquireFifoWriteElementsSgl(NiFpga_Session session, uint32_t fifo, float** elements, +NiFpga_Status NiFpga_AcquireFifoWriteElementsSgl(NiFpga_Session session, uint32_t fifo, float **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) { + size_t *elementsAcquired, size_t *elementsRemaining) { return NiFpga_acquireFifoWriteElementsSgl ? NiFpga_acquireFifoWriteElementsSgl(session, fifo, elements, elementsRequested, timeout, elementsAcquired, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_acquireFifoWriteElementsDbl)( - NiFpga_Session session, uint32_t fifo, double** elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_acquireFifoWriteElementsDbl)( + NiFpga_Session session, uint32_t fifo, double **elements, size_t elementsRequested, uint32_t timeout, + size_t *elementsAcquired, size_t *elementsRemaining) = NULL; -NiFpga_Status NiFpga_AcquireFifoWriteElementsDbl(NiFpga_Session session, uint32_t fifo, double** elements, +NiFpga_Status NiFpga_AcquireFifoWriteElementsDbl(NiFpga_Session session, uint32_t fifo, double **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining) { + size_t *elementsAcquired, size_t *elementsRemaining) { return NiFpga_acquireFifoWriteElementsDbl ? NiFpga_acquireFifoWriteElementsDbl(session, fifo, elements, elementsRequested, timeout, elementsAcquired, elementsRemaining) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_releaseFifoElements)(NiFpga_Session session, uint32_t fifo, +static NiFpga_Status(NiFpga_CCall *NiFpga_releaseFifoElements)(NiFpga_Session session, uint32_t fifo, size_t elements) = NULL; NiFpga_Status NiFpga_ReleaseFifoElements(NiFpga_Session session, uint32_t fifo, size_t elements) { @@ -1246,29 +1246,29 @@ NiFpga_Status NiFpga_ReleaseFifoElements(NiFpga_Session session, uint32_t fifo, : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_getPeerToPeerFifoEndpoint)(NiFpga_Session session, uint32_t fifo, - uint32_t* endpoint) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_getPeerToPeerFifoEndpoint)(NiFpga_Session session, uint32_t fifo, + uint32_t *endpoint) = NULL; -NiFpga_Status NiFpga_GetPeerToPeerFifoEndpoint(NiFpga_Session session, uint32_t fifo, uint32_t* endpoint) { +NiFpga_Status NiFpga_GetPeerToPeerFifoEndpoint(NiFpga_Session session, uint32_t fifo, uint32_t *endpoint) { return NiFpga_getPeerToPeerFifoEndpoint ? NiFpga_getPeerToPeerFifoEndpoint(session, fifo, endpoint) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_getBitfileContents)(NiFpga_Session session, - const char** contents) = NULL; +static NiFpga_Status(NiFpga_CCall *NiFpga_getBitfileContents)(NiFpga_Session session, + const char **contents) = NULL; -NiFpga_Status NiFpga_GetBitfileContents(NiFpga_Session session, const char** contents) { +NiFpga_Status NiFpga_GetBitfileContents(NiFpga_Session session, const char **contents) { return NiFpga_getBitfileContents ? NiFpga_getBitfileContents(session, contents) : NiFpga_Status_ResourceNotInitialized; } -static NiFpga_Status(NiFpga_CCall* NiFpga_clientFunctionCall)(NiFpga_Session session, uint32_t group, - uint32_t functionId, const void* inBuffer, - size_t inBufferSize, void* outBuffer, +static NiFpga_Status(NiFpga_CCall *NiFpga_clientFunctionCall)(NiFpga_Session session, uint32_t group, + uint32_t functionId, const void *inBuffer, + size_t inBufferSize, void *outBuffer, size_t outBufferSize) = NULL; NiFpga_Status NiFpga_ClientFunctionCall(NiFpga_Session session, uint32_t group, uint32_t functionId, - const void* inBuffer, size_t inBufferSize, void* outBuffer, + const void *inBuffer, size_t inBufferSize, void *outBuffer, size_t outBufferSize) { return NiFpga_clientFunctionCall ? NiFpga_clientFunctionCall(session, group, functionId, inBuffer, inBufferSize, outBuffer, outBufferSize) @@ -1278,158 +1278,158 @@ NiFpga_Status NiFpga_ClientFunctionCall(NiFpga_Session session, uint32_t group, /** * A type large enough to hold entry point function pointer. */ -typedef NiFpga_Status(NiFpga_CCall* NiFpga_FunctionPointer)(); +typedef NiFpga_Status(NiFpga_CCall *NiFpga_FunctionPointer)(); /** * A NULL-terminated array of all entry point functions. */ static const struct { - const char* const name; - NiFpga_FunctionPointer* const address; + const char *const name; + NiFpga_FunctionPointer *const address; NiFpga_Bool required; } NiFpga_functions[] = { - {"NiFpgaDll_Open", (NiFpga_FunctionPointer*)&NiFpga_open, 1}, - {"NiFpgaDll_Close", (NiFpga_FunctionPointer*)&NiFpga_close, 1}, - {"NiFpgaDll_Run", (NiFpga_FunctionPointer*)&NiFpga_run, 1}, - {"NiFpgaDll_Abort", (NiFpga_FunctionPointer*)&NiFpga_abort, 1}, - {"NiFpgaDll_Reset", (NiFpga_FunctionPointer*)&NiFpga_reset, 1}, - {"NiFpgaDll_Download", (NiFpga_FunctionPointer*)&NiFpga_download, 1}, - {"NiFpgaDll_ReadBool", (NiFpga_FunctionPointer*)&NiFpga_readBool, 1}, - {"NiFpgaDll_ReadI8", (NiFpga_FunctionPointer*)&NiFpga_readI8, 1}, - {"NiFpgaDll_ReadU8", (NiFpga_FunctionPointer*)&NiFpga_readU8, 1}, - {"NiFpgaDll_ReadI16", (NiFpga_FunctionPointer*)&NiFpga_readI16, 1}, - {"NiFpgaDll_ReadU16", (NiFpga_FunctionPointer*)&NiFpga_readU16, 1}, - {"NiFpgaDll_ReadI32", (NiFpga_FunctionPointer*)&NiFpga_readI32, 1}, - {"NiFpgaDll_ReadU32", (NiFpga_FunctionPointer*)&NiFpga_readU32, 1}, - {"NiFpgaDll_ReadI64", (NiFpga_FunctionPointer*)&NiFpga_readI64, 1}, - {"NiFpgaDll_ReadU64", (NiFpga_FunctionPointer*)&NiFpga_readU64, 1}, - {"NiFpgaDll_ReadSgl", (NiFpga_FunctionPointer*)&NiFpga_readSgl, 1}, - {"NiFpgaDll_ReadDbl", (NiFpga_FunctionPointer*)&NiFpga_readDbl, 1}, - {"NiFpgaDll_WriteBool", (NiFpga_FunctionPointer*)&NiFpga_writeBool, 1}, - {"NiFpgaDll_WriteI8", (NiFpga_FunctionPointer*)&NiFpga_writeI8, 1}, - {"NiFpgaDll_WriteU8", (NiFpga_FunctionPointer*)&NiFpga_writeU8, 1}, - {"NiFpgaDll_WriteI16", (NiFpga_FunctionPointer*)&NiFpga_writeI16, 1}, - {"NiFpgaDll_WriteU16", (NiFpga_FunctionPointer*)&NiFpga_writeU16, 1}, - {"NiFpgaDll_WriteI32", (NiFpga_FunctionPointer*)&NiFpga_writeI32, 1}, - {"NiFpgaDll_WriteU32", (NiFpga_FunctionPointer*)&NiFpga_writeU32, 1}, - {"NiFpgaDll_WriteI64", (NiFpga_FunctionPointer*)&NiFpga_writeI64, 1}, - {"NiFpgaDll_WriteU64", (NiFpga_FunctionPointer*)&NiFpga_writeU64, 1}, - {"NiFpgaDll_WriteSgl", (NiFpga_FunctionPointer*)&NiFpga_writeSgl, 1}, - {"NiFpgaDll_WriteDbl", (NiFpga_FunctionPointer*)&NiFpga_writeDbl, 1}, - {"NiFpgaDll_ReadArrayBool", (NiFpga_FunctionPointer*)&NiFpga_readArrayBool, 1}, - {"NiFpgaDll_ReadArrayI8", (NiFpga_FunctionPointer*)&NiFpga_readArrayI8, 1}, - {"NiFpgaDll_ReadArrayU8", (NiFpga_FunctionPointer*)&NiFpga_readArrayU8, 1}, - {"NiFpgaDll_ReadArrayI16", (NiFpga_FunctionPointer*)&NiFpga_readArrayI16, 1}, - {"NiFpgaDll_ReadArrayU16", (NiFpga_FunctionPointer*)&NiFpga_readArrayU16, 1}, - {"NiFpgaDll_ReadArrayI32", (NiFpga_FunctionPointer*)&NiFpga_readArrayI32, 1}, - {"NiFpgaDll_ReadArrayU32", (NiFpga_FunctionPointer*)&NiFpga_readArrayU32, 1}, - {"NiFpgaDll_ReadArrayI64", (NiFpga_FunctionPointer*)&NiFpga_readArrayI64, 1}, - {"NiFpgaDll_ReadArrayU64", (NiFpga_FunctionPointer*)&NiFpga_readArrayU64, 1}, - {"NiFpgaDll_ReadArraySgl", (NiFpga_FunctionPointer*)&NiFpga_readArraySgl, 1}, - {"NiFpgaDll_ReadArrayDbl", (NiFpga_FunctionPointer*)&NiFpga_readArrayDbl, 1}, - {"NiFpgaDll_WriteArrayBool", (NiFpga_FunctionPointer*)&NiFpga_writeArrayBool, 1}, - {"NiFpgaDll_WriteArrayI8", (NiFpga_FunctionPointer*)&NiFpga_writeArrayI8, 1}, - {"NiFpgaDll_WriteArrayU8", (NiFpga_FunctionPointer*)&NiFpga_writeArrayU8, 1}, - {"NiFpgaDll_WriteArrayI16", (NiFpga_FunctionPointer*)&NiFpga_writeArrayI16, 1}, - {"NiFpgaDll_WriteArrayU16", (NiFpga_FunctionPointer*)&NiFpga_writeArrayU16, 1}, - {"NiFpgaDll_WriteArrayI32", (NiFpga_FunctionPointer*)&NiFpga_writeArrayI32, 1}, - {"NiFpgaDll_WriteArrayU32", (NiFpga_FunctionPointer*)&NiFpga_writeArrayU32, 1}, - {"NiFpgaDll_WriteArrayI64", (NiFpga_FunctionPointer*)&NiFpga_writeArrayI64, 1}, - {"NiFpgaDll_WriteArrayU64", (NiFpga_FunctionPointer*)&NiFpga_writeArrayU64, 1}, - {"NiFpgaDll_WriteArraySgl", (NiFpga_FunctionPointer*)&NiFpga_writeArraySgl, 1}, - {"NiFpgaDll_WriteArrayDbl", (NiFpga_FunctionPointer*)&NiFpga_writeArrayDbl, 1}, - {"NiFpgaDll_ReserveIrqContext", (NiFpga_FunctionPointer*)&NiFpga_reserveIrqContext, 1}, - {"NiFpgaDll_UnreserveIrqContext", (NiFpga_FunctionPointer*)&NiFpga_unreserveIrqContext, 1}, - {"NiFpgaDll_WaitOnIrqs", (NiFpga_FunctionPointer*)&NiFpga_waitOnIrqs, 1}, - {"NiFpgaDll_AcknowledgeIrqs", (NiFpga_FunctionPointer*)&NiFpga_acknowledgeIrqs, 1}, - {"NiFpgaDll_ConfigureFifo", (NiFpga_FunctionPointer*)&NiFpga_configureFifo, 1}, - {"NiFpgaDll_ConfigureFifo2", (NiFpga_FunctionPointer*)&NiFpga_configureFifo2, 1}, - {"NiFpgaDll_SetFifoPropertyU32", (NiFpga_FunctionPointer*)&NiFpga_setFifoPropertyU32, 0}, - {"NiFpgaDll_SetFifoPropertyI32", (NiFpga_FunctionPointer*)&NiFpga_setFifoPropertyI32, 0}, - {"NiFpgaDll_SetFifoPropertyU64", (NiFpga_FunctionPointer*)&NiFpga_setFifoPropertyU64, 0}, - {"NiFpgaDll_SetFifoPropertyI64", (NiFpga_FunctionPointer*)&NiFpga_setFifoPropertyI64, 0}, - {"NiFpgaDll_SetFifoPropertyPtr", (NiFpga_FunctionPointer*)&NiFpga_setFifoPropertyPtr, 0}, - {"NiFpgaDll_GetFifoPropertyU32", (NiFpga_FunctionPointer*)&NiFpga_getFifoPropertyU32, 0}, - {"NiFpgaDll_GetFifoPropertyI32", (NiFpga_FunctionPointer*)&NiFpga_getFifoPropertyI32, 0}, - {"NiFpgaDll_GetFifoPropertyU64", (NiFpga_FunctionPointer*)&NiFpga_getFifoPropertyU64, 0}, - {"NiFpgaDll_GetFifoPropertyI64", (NiFpga_FunctionPointer*)&NiFpga_getFifoPropertyI64, 0}, - {"NiFpgaDll_GetFifoPropertyPtr", (NiFpga_FunctionPointer*)&NiFpga_getFifoPropertyPtr, 0}, - {"NiFpgaDll_CommitFifoConfiguration", (NiFpga_FunctionPointer*)&NiFpga_commitFifoConfiguration, 0}, - {"NiFpgaDll_StartFifo", (NiFpga_FunctionPointer*)&NiFpga_startFifo, 1}, - {"NiFpgaDll_StopFifo", (NiFpga_FunctionPointer*)&NiFpga_stopFifo, 1}, - {"NiFpgaDll_ReadFifoBool", (NiFpga_FunctionPointer*)&NiFpga_readFifoBool, 1}, - {"NiFpgaDll_ReadFifoI8", (NiFpga_FunctionPointer*)&NiFpga_readFifoI8, 1}, - {"NiFpgaDll_ReadFifoU8", (NiFpga_FunctionPointer*)&NiFpga_readFifoU8, 1}, - {"NiFpgaDll_ReadFifoI16", (NiFpga_FunctionPointer*)&NiFpga_readFifoI16, 1}, - {"NiFpgaDll_ReadFifoU16", (NiFpga_FunctionPointer*)&NiFpga_readFifoU16, 1}, - {"NiFpgaDll_ReadFifoI32", (NiFpga_FunctionPointer*)&NiFpga_readFifoI32, 1}, - {"NiFpgaDll_ReadFifoU32", (NiFpga_FunctionPointer*)&NiFpga_readFifoU32, 1}, - {"NiFpgaDll_ReadFifoI64", (NiFpga_FunctionPointer*)&NiFpga_readFifoI64, 1}, - {"NiFpgaDll_ReadFifoU64", (NiFpga_FunctionPointer*)&NiFpga_readFifoU64, 1}, - {"NiFpgaDll_ReadFifoSgl", (NiFpga_FunctionPointer*)&NiFpga_readFifoSgl, 1}, - {"NiFpgaDll_ReadFifoDbl", (NiFpga_FunctionPointer*)&NiFpga_readFifoDbl, 1}, - {"NiFpgaDll_ReadFifoComposite", (NiFpga_FunctionPointer*)&NiFpga_readFifoComposite, 0}, - {"NiFpgaDll_WriteFifoBool", (NiFpga_FunctionPointer*)&NiFpga_writeFifoBool, 1}, - {"NiFpgaDll_WriteFifoI8", (NiFpga_FunctionPointer*)&NiFpga_writeFifoI8, 1}, - {"NiFpgaDll_WriteFifoU8", (NiFpga_FunctionPointer*)&NiFpga_writeFifoU8, 1}, - {"NiFpgaDll_WriteFifoI16", (NiFpga_FunctionPointer*)&NiFpga_writeFifoI16, 1}, - {"NiFpgaDll_WriteFifoU16", (NiFpga_FunctionPointer*)&NiFpga_writeFifoU16, 1}, - {"NiFpgaDll_WriteFifoI32", (NiFpga_FunctionPointer*)&NiFpga_writeFifoI32, 1}, - {"NiFpgaDll_WriteFifoU32", (NiFpga_FunctionPointer*)&NiFpga_writeFifoU32, 1}, - {"NiFpgaDll_WriteFifoI64", (NiFpga_FunctionPointer*)&NiFpga_writeFifoI64, 1}, - {"NiFpgaDll_WriteFifoU64", (NiFpga_FunctionPointer*)&NiFpga_writeFifoU64, 1}, - {"NiFpgaDll_WriteFifoSgl", (NiFpga_FunctionPointer*)&NiFpga_writeFifoSgl, 1}, - {"NiFpgaDll_WriteFifoDbl", (NiFpga_FunctionPointer*)&NiFpga_writeFifoDbl, 1}, - {"NiFpgaDll_WriteFifoComposite", (NiFpga_FunctionPointer*)&NiFpga_writeFifoComposite, 0}, + {"NiFpgaDll_Open", (NiFpga_FunctionPointer *)&NiFpga_open, 1}, + {"NiFpgaDll_Close", (NiFpga_FunctionPointer *)&NiFpga_close, 1}, + {"NiFpgaDll_Run", (NiFpga_FunctionPointer *)&NiFpga_run, 1}, + {"NiFpgaDll_Abort", (NiFpga_FunctionPointer *)&NiFpga_abort, 1}, + {"NiFpgaDll_Reset", (NiFpga_FunctionPointer *)&NiFpga_reset, 1}, + {"NiFpgaDll_Download", (NiFpga_FunctionPointer *)&NiFpga_download, 1}, + {"NiFpgaDll_ReadBool", (NiFpga_FunctionPointer *)&NiFpga_readBool, 1}, + {"NiFpgaDll_ReadI8", (NiFpga_FunctionPointer *)&NiFpga_readI8, 1}, + {"NiFpgaDll_ReadU8", (NiFpga_FunctionPointer *)&NiFpga_readU8, 1}, + {"NiFpgaDll_ReadI16", (NiFpga_FunctionPointer *)&NiFpga_readI16, 1}, + {"NiFpgaDll_ReadU16", (NiFpga_FunctionPointer *)&NiFpga_readU16, 1}, + {"NiFpgaDll_ReadI32", (NiFpga_FunctionPointer *)&NiFpga_readI32, 1}, + {"NiFpgaDll_ReadU32", (NiFpga_FunctionPointer *)&NiFpga_readU32, 1}, + {"NiFpgaDll_ReadI64", (NiFpga_FunctionPointer *)&NiFpga_readI64, 1}, + {"NiFpgaDll_ReadU64", (NiFpga_FunctionPointer *)&NiFpga_readU64, 1}, + {"NiFpgaDll_ReadSgl", (NiFpga_FunctionPointer *)&NiFpga_readSgl, 1}, + {"NiFpgaDll_ReadDbl", (NiFpga_FunctionPointer *)&NiFpga_readDbl, 1}, + {"NiFpgaDll_WriteBool", (NiFpga_FunctionPointer *)&NiFpga_writeBool, 1}, + {"NiFpgaDll_WriteI8", (NiFpga_FunctionPointer *)&NiFpga_writeI8, 1}, + {"NiFpgaDll_WriteU8", (NiFpga_FunctionPointer *)&NiFpga_writeU8, 1}, + {"NiFpgaDll_WriteI16", (NiFpga_FunctionPointer *)&NiFpga_writeI16, 1}, + {"NiFpgaDll_WriteU16", (NiFpga_FunctionPointer *)&NiFpga_writeU16, 1}, + {"NiFpgaDll_WriteI32", (NiFpga_FunctionPointer *)&NiFpga_writeI32, 1}, + {"NiFpgaDll_WriteU32", (NiFpga_FunctionPointer *)&NiFpga_writeU32, 1}, + {"NiFpgaDll_WriteI64", (NiFpga_FunctionPointer *)&NiFpga_writeI64, 1}, + {"NiFpgaDll_WriteU64", (NiFpga_FunctionPointer *)&NiFpga_writeU64, 1}, + {"NiFpgaDll_WriteSgl", (NiFpga_FunctionPointer *)&NiFpga_writeSgl, 1}, + {"NiFpgaDll_WriteDbl", (NiFpga_FunctionPointer *)&NiFpga_writeDbl, 1}, + {"NiFpgaDll_ReadArrayBool", (NiFpga_FunctionPointer *)&NiFpga_readArrayBool, 1}, + {"NiFpgaDll_ReadArrayI8", (NiFpga_FunctionPointer *)&NiFpga_readArrayI8, 1}, + {"NiFpgaDll_ReadArrayU8", (NiFpga_FunctionPointer *)&NiFpga_readArrayU8, 1}, + {"NiFpgaDll_ReadArrayI16", (NiFpga_FunctionPointer *)&NiFpga_readArrayI16, 1}, + {"NiFpgaDll_ReadArrayU16", (NiFpga_FunctionPointer *)&NiFpga_readArrayU16, 1}, + {"NiFpgaDll_ReadArrayI32", (NiFpga_FunctionPointer *)&NiFpga_readArrayI32, 1}, + {"NiFpgaDll_ReadArrayU32", (NiFpga_FunctionPointer *)&NiFpga_readArrayU32, 1}, + {"NiFpgaDll_ReadArrayI64", (NiFpga_FunctionPointer *)&NiFpga_readArrayI64, 1}, + {"NiFpgaDll_ReadArrayU64", (NiFpga_FunctionPointer *)&NiFpga_readArrayU64, 1}, + {"NiFpgaDll_ReadArraySgl", (NiFpga_FunctionPointer *)&NiFpga_readArraySgl, 1}, + {"NiFpgaDll_ReadArrayDbl", (NiFpga_FunctionPointer *)&NiFpga_readArrayDbl, 1}, + {"NiFpgaDll_WriteArrayBool", (NiFpga_FunctionPointer *)&NiFpga_writeArrayBool, 1}, + {"NiFpgaDll_WriteArrayI8", (NiFpga_FunctionPointer *)&NiFpga_writeArrayI8, 1}, + {"NiFpgaDll_WriteArrayU8", (NiFpga_FunctionPointer *)&NiFpga_writeArrayU8, 1}, + {"NiFpgaDll_WriteArrayI16", (NiFpga_FunctionPointer *)&NiFpga_writeArrayI16, 1}, + {"NiFpgaDll_WriteArrayU16", (NiFpga_FunctionPointer *)&NiFpga_writeArrayU16, 1}, + {"NiFpgaDll_WriteArrayI32", (NiFpga_FunctionPointer *)&NiFpga_writeArrayI32, 1}, + {"NiFpgaDll_WriteArrayU32", (NiFpga_FunctionPointer *)&NiFpga_writeArrayU32, 1}, + {"NiFpgaDll_WriteArrayI64", (NiFpga_FunctionPointer *)&NiFpga_writeArrayI64, 1}, + {"NiFpgaDll_WriteArrayU64", (NiFpga_FunctionPointer *)&NiFpga_writeArrayU64, 1}, + {"NiFpgaDll_WriteArraySgl", (NiFpga_FunctionPointer *)&NiFpga_writeArraySgl, 1}, + {"NiFpgaDll_WriteArrayDbl", (NiFpga_FunctionPointer *)&NiFpga_writeArrayDbl, 1}, + {"NiFpgaDll_ReserveIrqContext", (NiFpga_FunctionPointer *)&NiFpga_reserveIrqContext, 1}, + {"NiFpgaDll_UnreserveIrqContext", (NiFpga_FunctionPointer *)&NiFpga_unreserveIrqContext, 1}, + {"NiFpgaDll_WaitOnIrqs", (NiFpga_FunctionPointer *)&NiFpga_waitOnIrqs, 1}, + {"NiFpgaDll_AcknowledgeIrqs", (NiFpga_FunctionPointer *)&NiFpga_acknowledgeIrqs, 1}, + {"NiFpgaDll_ConfigureFifo", (NiFpga_FunctionPointer *)&NiFpga_configureFifo, 1}, + {"NiFpgaDll_ConfigureFifo2", (NiFpga_FunctionPointer *)&NiFpga_configureFifo2, 1}, + {"NiFpgaDll_SetFifoPropertyU32", (NiFpga_FunctionPointer *)&NiFpga_setFifoPropertyU32, 0}, + {"NiFpgaDll_SetFifoPropertyI32", (NiFpga_FunctionPointer *)&NiFpga_setFifoPropertyI32, 0}, + {"NiFpgaDll_SetFifoPropertyU64", (NiFpga_FunctionPointer *)&NiFpga_setFifoPropertyU64, 0}, + {"NiFpgaDll_SetFifoPropertyI64", (NiFpga_FunctionPointer *)&NiFpga_setFifoPropertyI64, 0}, + {"NiFpgaDll_SetFifoPropertyPtr", (NiFpga_FunctionPointer *)&NiFpga_setFifoPropertyPtr, 0}, + {"NiFpgaDll_GetFifoPropertyU32", (NiFpga_FunctionPointer *)&NiFpga_getFifoPropertyU32, 0}, + {"NiFpgaDll_GetFifoPropertyI32", (NiFpga_FunctionPointer *)&NiFpga_getFifoPropertyI32, 0}, + {"NiFpgaDll_GetFifoPropertyU64", (NiFpga_FunctionPointer *)&NiFpga_getFifoPropertyU64, 0}, + {"NiFpgaDll_GetFifoPropertyI64", (NiFpga_FunctionPointer *)&NiFpga_getFifoPropertyI64, 0}, + {"NiFpgaDll_GetFifoPropertyPtr", (NiFpga_FunctionPointer *)&NiFpga_getFifoPropertyPtr, 0}, + {"NiFpgaDll_CommitFifoConfiguration", (NiFpga_FunctionPointer *)&NiFpga_commitFifoConfiguration, 0}, + {"NiFpgaDll_StartFifo", (NiFpga_FunctionPointer *)&NiFpga_startFifo, 1}, + {"NiFpgaDll_StopFifo", (NiFpga_FunctionPointer *)&NiFpga_stopFifo, 1}, + {"NiFpgaDll_ReadFifoBool", (NiFpga_FunctionPointer *)&NiFpga_readFifoBool, 1}, + {"NiFpgaDll_ReadFifoI8", (NiFpga_FunctionPointer *)&NiFpga_readFifoI8, 1}, + {"NiFpgaDll_ReadFifoU8", (NiFpga_FunctionPointer *)&NiFpga_readFifoU8, 1}, + {"NiFpgaDll_ReadFifoI16", (NiFpga_FunctionPointer *)&NiFpga_readFifoI16, 1}, + {"NiFpgaDll_ReadFifoU16", (NiFpga_FunctionPointer *)&NiFpga_readFifoU16, 1}, + {"NiFpgaDll_ReadFifoI32", (NiFpga_FunctionPointer *)&NiFpga_readFifoI32, 1}, + {"NiFpgaDll_ReadFifoU32", (NiFpga_FunctionPointer *)&NiFpga_readFifoU32, 1}, + {"NiFpgaDll_ReadFifoI64", (NiFpga_FunctionPointer *)&NiFpga_readFifoI64, 1}, + {"NiFpgaDll_ReadFifoU64", (NiFpga_FunctionPointer *)&NiFpga_readFifoU64, 1}, + {"NiFpgaDll_ReadFifoSgl", (NiFpga_FunctionPointer *)&NiFpga_readFifoSgl, 1}, + {"NiFpgaDll_ReadFifoDbl", (NiFpga_FunctionPointer *)&NiFpga_readFifoDbl, 1}, + {"NiFpgaDll_ReadFifoComposite", (NiFpga_FunctionPointer *)&NiFpga_readFifoComposite, 0}, + {"NiFpgaDll_WriteFifoBool", (NiFpga_FunctionPointer *)&NiFpga_writeFifoBool, 1}, + {"NiFpgaDll_WriteFifoI8", (NiFpga_FunctionPointer *)&NiFpga_writeFifoI8, 1}, + {"NiFpgaDll_WriteFifoU8", (NiFpga_FunctionPointer *)&NiFpga_writeFifoU8, 1}, + {"NiFpgaDll_WriteFifoI16", (NiFpga_FunctionPointer *)&NiFpga_writeFifoI16, 1}, + {"NiFpgaDll_WriteFifoU16", (NiFpga_FunctionPointer *)&NiFpga_writeFifoU16, 1}, + {"NiFpgaDll_WriteFifoI32", (NiFpga_FunctionPointer *)&NiFpga_writeFifoI32, 1}, + {"NiFpgaDll_WriteFifoU32", (NiFpga_FunctionPointer *)&NiFpga_writeFifoU32, 1}, + {"NiFpgaDll_WriteFifoI64", (NiFpga_FunctionPointer *)&NiFpga_writeFifoI64, 1}, + {"NiFpgaDll_WriteFifoU64", (NiFpga_FunctionPointer *)&NiFpga_writeFifoU64, 1}, + {"NiFpgaDll_WriteFifoSgl", (NiFpga_FunctionPointer *)&NiFpga_writeFifoSgl, 1}, + {"NiFpgaDll_WriteFifoDbl", (NiFpga_FunctionPointer *)&NiFpga_writeFifoDbl, 1}, + {"NiFpgaDll_WriteFifoComposite", (NiFpga_FunctionPointer *)&NiFpga_writeFifoComposite, 0}, {"NiFpgaDll_AcquireFifoReadElementsBool", - (NiFpga_FunctionPointer*)&NiFpga_acquireFifoReadElementsBool, 1}, - {"NiFpgaDll_AcquireFifoReadElementsI8", (NiFpga_FunctionPointer*)&NiFpga_acquireFifoReadElementsI8, + (NiFpga_FunctionPointer *)&NiFpga_acquireFifoReadElementsBool, 1}, + {"NiFpgaDll_AcquireFifoReadElementsI8", (NiFpga_FunctionPointer *)&NiFpga_acquireFifoReadElementsI8, 1}, - {"NiFpgaDll_AcquireFifoReadElementsU8", (NiFpga_FunctionPointer*)&NiFpga_acquireFifoReadElementsU8, + {"NiFpgaDll_AcquireFifoReadElementsU8", (NiFpga_FunctionPointer *)&NiFpga_acquireFifoReadElementsU8, 1}, - {"NiFpgaDll_AcquireFifoReadElementsI16", (NiFpga_FunctionPointer*)&NiFpga_acquireFifoReadElementsI16, + {"NiFpgaDll_AcquireFifoReadElementsI16", (NiFpga_FunctionPointer *)&NiFpga_acquireFifoReadElementsI16, 1}, - {"NiFpgaDll_AcquireFifoReadElementsU16", (NiFpga_FunctionPointer*)&NiFpga_acquireFifoReadElementsU16, + {"NiFpgaDll_AcquireFifoReadElementsU16", (NiFpga_FunctionPointer *)&NiFpga_acquireFifoReadElementsU16, 1}, - {"NiFpgaDll_AcquireFifoReadElementsI32", (NiFpga_FunctionPointer*)&NiFpga_acquireFifoReadElementsI32, + {"NiFpgaDll_AcquireFifoReadElementsI32", (NiFpga_FunctionPointer *)&NiFpga_acquireFifoReadElementsI32, 1}, - {"NiFpgaDll_AcquireFifoReadElementsU32", (NiFpga_FunctionPointer*)&NiFpga_acquireFifoReadElementsU32, + {"NiFpgaDll_AcquireFifoReadElementsU32", (NiFpga_FunctionPointer *)&NiFpga_acquireFifoReadElementsU32, 1}, - {"NiFpgaDll_AcquireFifoReadElementsI64", (NiFpga_FunctionPointer*)&NiFpga_acquireFifoReadElementsI64, + {"NiFpgaDll_AcquireFifoReadElementsI64", (NiFpga_FunctionPointer *)&NiFpga_acquireFifoReadElementsI64, 1}, - {"NiFpgaDll_AcquireFifoReadElementsU64", (NiFpga_FunctionPointer*)&NiFpga_acquireFifoReadElementsU64, + {"NiFpgaDll_AcquireFifoReadElementsU64", (NiFpga_FunctionPointer *)&NiFpga_acquireFifoReadElementsU64, 1}, - {"NiFpgaDll_AcquireFifoReadElementsSgl", (NiFpga_FunctionPointer*)&NiFpga_acquireFifoReadElementsSgl, + {"NiFpgaDll_AcquireFifoReadElementsSgl", (NiFpga_FunctionPointer *)&NiFpga_acquireFifoReadElementsSgl, 1}, - {"NiFpgaDll_AcquireFifoReadElementsDbl", (NiFpga_FunctionPointer*)&NiFpga_acquireFifoReadElementsDbl, + {"NiFpgaDll_AcquireFifoReadElementsDbl", (NiFpga_FunctionPointer *)&NiFpga_acquireFifoReadElementsDbl, 1}, {"NiFpgaDll_AcquireFifoWriteElementsBool", - (NiFpga_FunctionPointer*)&NiFpga_acquireFifoWriteElementsBool, 1}, - {"NiFpgaDll_AcquireFifoWriteElementsI8", (NiFpga_FunctionPointer*)&NiFpga_acquireFifoWriteElementsI8, + (NiFpga_FunctionPointer *)&NiFpga_acquireFifoWriteElementsBool, 1}, + {"NiFpgaDll_AcquireFifoWriteElementsI8", (NiFpga_FunctionPointer *)&NiFpga_acquireFifoWriteElementsI8, 1}, - {"NiFpgaDll_AcquireFifoWriteElementsU8", (NiFpga_FunctionPointer*)&NiFpga_acquireFifoWriteElementsU8, + {"NiFpgaDll_AcquireFifoWriteElementsU8", (NiFpga_FunctionPointer *)&NiFpga_acquireFifoWriteElementsU8, 1}, {"NiFpgaDll_AcquireFifoWriteElementsI16", - (NiFpga_FunctionPointer*)&NiFpga_acquireFifoWriteElementsI16, 1}, + (NiFpga_FunctionPointer *)&NiFpga_acquireFifoWriteElementsI16, 1}, {"NiFpgaDll_AcquireFifoWriteElementsU16", - (NiFpga_FunctionPointer*)&NiFpga_acquireFifoWriteElementsU16, 1}, + (NiFpga_FunctionPointer *)&NiFpga_acquireFifoWriteElementsU16, 1}, {"NiFpgaDll_AcquireFifoWriteElementsI32", - (NiFpga_FunctionPointer*)&NiFpga_acquireFifoWriteElementsI32, 1}, + (NiFpga_FunctionPointer *)&NiFpga_acquireFifoWriteElementsI32, 1}, {"NiFpgaDll_AcquireFifoWriteElementsU32", - (NiFpga_FunctionPointer*)&NiFpga_acquireFifoWriteElementsU32, 1}, + (NiFpga_FunctionPointer *)&NiFpga_acquireFifoWriteElementsU32, 1}, {"NiFpgaDll_AcquireFifoWriteElementsI64", - (NiFpga_FunctionPointer*)&NiFpga_acquireFifoWriteElementsI64, 1}, + (NiFpga_FunctionPointer *)&NiFpga_acquireFifoWriteElementsI64, 1}, {"NiFpgaDll_AcquireFifoWriteElementsU64", - (NiFpga_FunctionPointer*)&NiFpga_acquireFifoWriteElementsU64, 1}, + (NiFpga_FunctionPointer *)&NiFpga_acquireFifoWriteElementsU64, 1}, {"NiFpgaDll_AcquireFifoWriteElementsSgl", - (NiFpga_FunctionPointer*)&NiFpga_acquireFifoWriteElementsSgl, 1}, + (NiFpga_FunctionPointer *)&NiFpga_acquireFifoWriteElementsSgl, 1}, {"NiFpgaDll_AcquireFifoWriteElementsDbl", - (NiFpga_FunctionPointer*)&NiFpga_acquireFifoWriteElementsDbl, 1}, - {"NiFpgaDll_ReleaseFifoElements", (NiFpga_FunctionPointer*)&NiFpga_releaseFifoElements, 1}, - {"NiFpgaDll_GetPeerToPeerFifoEndpoint", (NiFpga_FunctionPointer*)&NiFpga_getPeerToPeerFifoEndpoint, + (NiFpga_FunctionPointer *)&NiFpga_acquireFifoWriteElementsDbl, 1}, + {"NiFpgaDll_ReleaseFifoElements", (NiFpga_FunctionPointer *)&NiFpga_releaseFifoElements, 1}, + {"NiFpgaDll_GetPeerToPeerFifoEndpoint", (NiFpga_FunctionPointer *)&NiFpga_getPeerToPeerFifoEndpoint, 1}, - {"NiFpgaDll_GetBitfileContents", (NiFpga_FunctionPointer*)&NiFpga_getBitfileContents, 1}, - {"NiFpgaDll_ClientFunctionCall", (NiFpga_FunctionPointer*)&NiFpga_clientFunctionCall, 1}, + {"NiFpgaDll_GetBitfileContents", (NiFpga_FunctionPointer *)&NiFpga_getBitfileContents, 1}, + {"NiFpgaDll_ClientFunctionCall", (NiFpga_FunctionPointer *)&NiFpga_clientFunctionCall, 1}, {NULL, NULL, 0}}; NiFpga_Status NiFpga_Initialize(void) { @@ -1443,9 +1443,9 @@ NiFpga_Status NiFpga_Initialize(void) { NiFpga_library = VxLoadLibraryFromPath("NiFpga.out", 0); #elif NiFpga_Linux || NiFpga_MacOsX #if NiFpga_Linux - const char* const library = "libNiFpga.so"; + const char *const library = "libNiFpga.so"; #elif NiFpga_MacOsX - const char* const library = "/Library/Frameworks/NiFpga.framework/NiFpga"; + const char *const library = "/Library/Frameworks/NiFpga.framework/NiFpga"; #endif NiFpga_library = dlopen(library, RTLD_LAZY); if (!NiFpga_library) fprintf(stderr, "Error opening %s: %s\n", library, dlerror()); @@ -1455,14 +1455,14 @@ NiFpga_Status NiFpga_Initialize(void) { if (!NiFpga_library) return NiFpga_Status_ResourceNotFound; /* get each exported function */ for (i = 0; NiFpga_functions[i].name; i++) { - const char* const name = NiFpga_functions[i].name; - NiFpga_FunctionPointer* const address = NiFpga_functions[i].address; + const char *const name = NiFpga_functions[i].name; + NiFpga_FunctionPointer *const address = NiFpga_functions[i].address; #if NiFpga_Windows *address = (NiFpga_FunctionPointer)GetProcAddress(NiFpga_library, name); if (!*address && NiFpga_functions[i].required) return NiFpga_Status_VersionMismatch; #elif NiFpga_VxWorks SYM_TYPE type; - STATUS symFindStatus = symFindByName(sysSymTbl, (char*)name, (char**)address, &type); + STATUS symFindStatus = symFindByName(sysSymTbl, (char *)name, (char **)address, &type); if (symFindStatus != OK && NiFpga_functions[i].required) return NiFpga_Status_VersionMismatch; #elif NiFpga_Linux || NiFpga_MacOsX *address = (NiFpga_FunctionPointer)dlsym(NiFpga_library, name); diff --git a/src/NiFpga/NiFpga.h b/src/NiFpga/NiFpga.h index 8c3281b..75f7333 100644 --- a/src/NiFpga/NiFpga.h +++ b/src/NiFpga/NiFpga.h @@ -549,7 +549,7 @@ static NiFpga_Inline NiFpga_Bool NiFpga_IsNotError(const NiFpga_Status status) { * @param newStatus new status value that may be set * @return the resulting status */ -static NiFpga_Inline NiFpga_Status NiFpga_MergeStatus(NiFpga_Status* const status, +static NiFpga_Inline NiFpga_Status NiFpga_MergeStatus(NiFpga_Status *const status, const NiFpga_Status newStatus) { if (!status) return NiFpga_Status_InvalidParameter; if (NiFpga_IsNotError(*status) && (*status == NiFpga_Status_Success || NiFpga_IsError(newStatus))) @@ -643,7 +643,7 @@ static NiFpga_Inline float NiFpga_CalculateFxpDeltaFloat(const NiFpga_FxpTypeInf } else { delta = 1 << (exponent + subNormalBias + significandStorageWidth); } - return *((float*)(&delta)); + return *((float *)(&delta)); } /* @@ -726,7 +726,7 @@ static NiFpga_Inline double NiFpga_CalculateFxpDeltaDouble(const NiFpga_FxpTypeI } else { delta = 1ULL << (exponent + subNormalBias + significandStorageWidth); } - return *((double*)(&delta)); + return *((double *)(&delta)); } /** \addtogroup FXP @@ -892,8 +892,8 @@ typedef enum { NiFpga_OpenAttribute_NoRun = 1 } NiFpga_OpenAttribute; * longer needed * @return result of the call */ -NiFpga_Status NiFpga_Open(const char* bitfile, const char* signature, const char* resource, - uint32_t attribute, NiFpga_Session* session); +NiFpga_Status NiFpga_Open(const char *bitfile, const char *signature, const char *resource, + uint32_t attribute, NiFpga_Session *session); /** * Attributes that NiFpga_Close accepts. @@ -974,7 +974,7 @@ NiFpga_Status NiFpga_Download(NiFpga_Session session); * @param value outputs the value that was read * @return result of the call */ -NiFpga_Status NiFpga_ReadBool(NiFpga_Session session, uint32_t indicator, NiFpga_Bool* value); +NiFpga_Status NiFpga_ReadBool(NiFpga_Session session, uint32_t indicator, NiFpga_Bool *value); /** * Reads a signed 8-bit integer value from a given indicator or control. @@ -984,7 +984,7 @@ NiFpga_Status NiFpga_ReadBool(NiFpga_Session session, uint32_t indicator, NiFpga * @param value outputs the value that was read * @return result of the call */ -NiFpga_Status NiFpga_ReadI8(NiFpga_Session session, uint32_t indicator, int8_t* value); +NiFpga_Status NiFpga_ReadI8(NiFpga_Session session, uint32_t indicator, int8_t *value); /** * Reads an unsigned 8-bit integer value from a given indicator or control. @@ -994,7 +994,7 @@ NiFpga_Status NiFpga_ReadI8(NiFpga_Session session, uint32_t indicator, int8_t* * @param value outputs the value that was read * @return result of the call */ -NiFpga_Status NiFpga_ReadU8(NiFpga_Session session, uint32_t indicator, uint8_t* value); +NiFpga_Status NiFpga_ReadU8(NiFpga_Session session, uint32_t indicator, uint8_t *value); /** * Reads a signed 16-bit integer value from a given indicator or control. @@ -1004,7 +1004,7 @@ NiFpga_Status NiFpga_ReadU8(NiFpga_Session session, uint32_t indicator, uint8_t* * @param value outputs the value that was read * @return result of the call */ -NiFpga_Status NiFpga_ReadI16(NiFpga_Session session, uint32_t indicator, int16_t* value); +NiFpga_Status NiFpga_ReadI16(NiFpga_Session session, uint32_t indicator, int16_t *value); /** * Reads an unsigned 16-bit integer value from a given indicator or control. @@ -1014,7 +1014,7 @@ NiFpga_Status NiFpga_ReadI16(NiFpga_Session session, uint32_t indicator, int16_t * @param value outputs the value that was read * @return result of the call */ -NiFpga_Status NiFpga_ReadU16(NiFpga_Session session, uint32_t indicator, uint16_t* value); +NiFpga_Status NiFpga_ReadU16(NiFpga_Session session, uint32_t indicator, uint16_t *value); /** * Reads a signed 32-bit integer value from a given indicator or control. @@ -1024,7 +1024,7 @@ NiFpga_Status NiFpga_ReadU16(NiFpga_Session session, uint32_t indicator, uint16_ * @param value outputs the value that was read * @return result of the call */ -NiFpga_Status NiFpga_ReadI32(NiFpga_Session session, uint32_t indicator, int32_t* value); +NiFpga_Status NiFpga_ReadI32(NiFpga_Session session, uint32_t indicator, int32_t *value); /** * Reads an unsigned 32-bit integer value from a given indicator or control. @@ -1034,7 +1034,7 @@ NiFpga_Status NiFpga_ReadI32(NiFpga_Session session, uint32_t indicator, int32_t * @param value outputs the value that was read * @return result of the call */ -NiFpga_Status NiFpga_ReadU32(NiFpga_Session session, uint32_t indicator, uint32_t* value); +NiFpga_Status NiFpga_ReadU32(NiFpga_Session session, uint32_t indicator, uint32_t *value); /** * Reads a signed 64-bit integer value from a given indicator or control. @@ -1044,7 +1044,7 @@ NiFpga_Status NiFpga_ReadU32(NiFpga_Session session, uint32_t indicator, uint32_ * @param value outputs the value that was read * @return result of the call */ -NiFpga_Status NiFpga_ReadI64(NiFpga_Session session, uint32_t indicator, int64_t* value); +NiFpga_Status NiFpga_ReadI64(NiFpga_Session session, uint32_t indicator, int64_t *value); /** * Reads an unsigned 64-bit integer value from a given indicator or control. @@ -1054,7 +1054,7 @@ NiFpga_Status NiFpga_ReadI64(NiFpga_Session session, uint32_t indicator, int64_t * @param value outputs the value that was read * @return result of the call */ -NiFpga_Status NiFpga_ReadU64(NiFpga_Session session, uint32_t indicator, uint64_t* value); +NiFpga_Status NiFpga_ReadU64(NiFpga_Session session, uint32_t indicator, uint64_t *value); /** * Reads a single-precision floating-point value from a given indicator or @@ -1065,7 +1065,7 @@ NiFpga_Status NiFpga_ReadU64(NiFpga_Session session, uint32_t indicator, uint64_ * @param value outputs the value that was read * @return result of the call */ -NiFpga_Status NiFpga_ReadSgl(NiFpga_Session session, uint32_t indicator, float* value); +NiFpga_Status NiFpga_ReadSgl(NiFpga_Session session, uint32_t indicator, float *value); /** * Reads a double-precision floating-point value from a given indicator or @@ -1076,7 +1076,7 @@ NiFpga_Status NiFpga_ReadSgl(NiFpga_Session session, uint32_t indicator, float* * @param value outputs the value that was read * @return result of the call */ -NiFpga_Status NiFpga_ReadDbl(NiFpga_Session session, uint32_t indicator, double* value); +NiFpga_Status NiFpga_ReadDbl(NiFpga_Session session, uint32_t indicator, double *value); /** * @} @@ -1219,7 +1219,7 @@ NiFpga_Status NiFpga_WriteDbl(NiFpga_Session session, uint32_t control, double v * @param size exact number of elements in the indicator or control * @return result of the call */ -NiFpga_Status NiFpga_ReadArrayBool(NiFpga_Session session, uint32_t indicator, NiFpga_Bool* array, +NiFpga_Status NiFpga_ReadArrayBool(NiFpga_Session session, uint32_t indicator, NiFpga_Bool *array, size_t size); /** @@ -1235,7 +1235,7 @@ NiFpga_Status NiFpga_ReadArrayBool(NiFpga_Session session, uint32_t indicator, N * @param size exact number of elements in the indicator or control * @return result of the call */ -NiFpga_Status NiFpga_ReadArrayI8(NiFpga_Session session, uint32_t indicator, int8_t* array, size_t size); +NiFpga_Status NiFpga_ReadArrayI8(NiFpga_Session session, uint32_t indicator, int8_t *array, size_t size); /** * Reads an entire array of unsigned 8-bit integer values from a given array @@ -1250,7 +1250,7 @@ NiFpga_Status NiFpga_ReadArrayI8(NiFpga_Session session, uint32_t indicator, int * @param size exact number of elements in the indicator or control * @return result of the call */ -NiFpga_Status NiFpga_ReadArrayU8(NiFpga_Session session, uint32_t indicator, uint8_t* array, size_t size); +NiFpga_Status NiFpga_ReadArrayU8(NiFpga_Session session, uint32_t indicator, uint8_t *array, size_t size); /** * Reads an entire array of signed 16-bit integer values from a given array @@ -1265,7 +1265,7 @@ NiFpga_Status NiFpga_ReadArrayU8(NiFpga_Session session, uint32_t indicator, uin * @param size exact number of elements in the indicator or control * @return result of the call */ -NiFpga_Status NiFpga_ReadArrayI16(NiFpga_Session session, uint32_t indicator, int16_t* array, size_t size); +NiFpga_Status NiFpga_ReadArrayI16(NiFpga_Session session, uint32_t indicator, int16_t *array, size_t size); /** * Reads an entire array of unsigned 16-bit integer values from a given array @@ -1280,7 +1280,7 @@ NiFpga_Status NiFpga_ReadArrayI16(NiFpga_Session session, uint32_t indicator, in * @param size exact number of elements in the indicator or control * @return result of the call */ -NiFpga_Status NiFpga_ReadArrayU16(NiFpga_Session session, uint32_t indicator, uint16_t* array, size_t size); +NiFpga_Status NiFpga_ReadArrayU16(NiFpga_Session session, uint32_t indicator, uint16_t *array, size_t size); /** * Reads an entire array of signed 32-bit integer values from a given array @@ -1295,7 +1295,7 @@ NiFpga_Status NiFpga_ReadArrayU16(NiFpga_Session session, uint32_t indicator, ui * @param size exact number of elements in the indicator or control * @return result of the call */ -NiFpga_Status NiFpga_ReadArrayI32(NiFpga_Session session, uint32_t indicator, int32_t* array, size_t size); +NiFpga_Status NiFpga_ReadArrayI32(NiFpga_Session session, uint32_t indicator, int32_t *array, size_t size); /** * Reads an entire array of unsigned 32-bit integer values from a given array @@ -1310,7 +1310,7 @@ NiFpga_Status NiFpga_ReadArrayI32(NiFpga_Session session, uint32_t indicator, in * @param size exact number of elements in the indicator or control * @return result of the call */ -NiFpga_Status NiFpga_ReadArrayU32(NiFpga_Session session, uint32_t indicator, uint32_t* array, size_t size); +NiFpga_Status NiFpga_ReadArrayU32(NiFpga_Session session, uint32_t indicator, uint32_t *array, size_t size); /** * Reads an entire array of signed 64-bit integer values from a given array @@ -1325,7 +1325,7 @@ NiFpga_Status NiFpga_ReadArrayU32(NiFpga_Session session, uint32_t indicator, ui * @param size exact number of elements in the indicator or control * @return result of the call */ -NiFpga_Status NiFpga_ReadArrayI64(NiFpga_Session session, uint32_t indicator, int64_t* array, size_t size); +NiFpga_Status NiFpga_ReadArrayI64(NiFpga_Session session, uint32_t indicator, int64_t *array, size_t size); /** * Reads an entire array of unsigned 64-bit integer values from a given array @@ -1340,7 +1340,7 @@ NiFpga_Status NiFpga_ReadArrayI64(NiFpga_Session session, uint32_t indicator, in * @param size exact number of elements in the indicator or control * @return result of the call */ -NiFpga_Status NiFpga_ReadArrayU64(NiFpga_Session session, uint32_t indicator, uint64_t* array, size_t size); +NiFpga_Status NiFpga_ReadArrayU64(NiFpga_Session session, uint32_t indicator, uint64_t *array, size_t size); /** * Reads an entire array of single-precision floating-point values from a @@ -1355,7 +1355,7 @@ NiFpga_Status NiFpga_ReadArrayU64(NiFpga_Session session, uint32_t indicator, ui * @param size exact number of elements in the indicator or control * @return result of the call */ -NiFpga_Status NiFpga_ReadArraySgl(NiFpga_Session session, uint32_t indicator, float* array, size_t size); +NiFpga_Status NiFpga_ReadArraySgl(NiFpga_Session session, uint32_t indicator, float *array, size_t size); /** * Reads an entire array of double-precision floating-point values from a @@ -1370,7 +1370,7 @@ NiFpga_Status NiFpga_ReadArraySgl(NiFpga_Session session, uint32_t indicator, fl * @param size exact number of elements in the indicator or control * @return result of the call */ -NiFpga_Status NiFpga_ReadArrayDbl(NiFpga_Session session, uint32_t indicator, double* array, size_t size); +NiFpga_Status NiFpga_ReadArrayDbl(NiFpga_Session session, uint32_t indicator, double *array, size_t size); /** * @} @@ -1393,7 +1393,7 @@ NiFpga_Status NiFpga_ReadArrayDbl(NiFpga_Session session, uint32_t indicator, do * @param size exact number of elements in the control or indicator * @return result of the call */ -NiFpga_Status NiFpga_WriteArrayBool(NiFpga_Session session, uint32_t control, const NiFpga_Bool* array, +NiFpga_Status NiFpga_WriteArrayBool(NiFpga_Session session, uint32_t control, const NiFpga_Bool *array, size_t size); /** @@ -1409,7 +1409,7 @@ NiFpga_Status NiFpga_WriteArrayBool(NiFpga_Session session, uint32_t control, co * @param size exact number of elements in the control or indicator * @return result of the call */ -NiFpga_Status NiFpga_WriteArrayI8(NiFpga_Session session, uint32_t control, const int8_t* array, size_t size); +NiFpga_Status NiFpga_WriteArrayI8(NiFpga_Session session, uint32_t control, const int8_t *array, size_t size); /** * Writes an entire array of unsigned 8-bit integer values to a given array @@ -1424,7 +1424,7 @@ NiFpga_Status NiFpga_WriteArrayI8(NiFpga_Session session, uint32_t control, cons * @param size exact number of elements in the control or indicator * @return result of the call */ -NiFpga_Status NiFpga_WriteArrayU8(NiFpga_Session session, uint32_t control, const uint8_t* array, +NiFpga_Status NiFpga_WriteArrayU8(NiFpga_Session session, uint32_t control, const uint8_t *array, size_t size); /** @@ -1440,7 +1440,7 @@ NiFpga_Status NiFpga_WriteArrayU8(NiFpga_Session session, uint32_t control, cons * @param size exact number of elements in the control or indicator * @return result of the call */ -NiFpga_Status NiFpga_WriteArrayI16(NiFpga_Session session, uint32_t control, const int16_t* array, +NiFpga_Status NiFpga_WriteArrayI16(NiFpga_Session session, uint32_t control, const int16_t *array, size_t size); /** @@ -1456,7 +1456,7 @@ NiFpga_Status NiFpga_WriteArrayI16(NiFpga_Session session, uint32_t control, con * @param size exact number of elements in the control or indicator * @return result of the call */ -NiFpga_Status NiFpga_WriteArrayU16(NiFpga_Session session, uint32_t control, const uint16_t* array, +NiFpga_Status NiFpga_WriteArrayU16(NiFpga_Session session, uint32_t control, const uint16_t *array, size_t size); /** @@ -1472,7 +1472,7 @@ NiFpga_Status NiFpga_WriteArrayU16(NiFpga_Session session, uint32_t control, con * @param size exact number of elements in the control or indicator * @return result of the call */ -NiFpga_Status NiFpga_WriteArrayI32(NiFpga_Session session, uint32_t control, const int32_t* array, +NiFpga_Status NiFpga_WriteArrayI32(NiFpga_Session session, uint32_t control, const int32_t *array, size_t size); /** @@ -1488,7 +1488,7 @@ NiFpga_Status NiFpga_WriteArrayI32(NiFpga_Session session, uint32_t control, con * @param size exact number of elements in the control or indicator * @return result of the call */ -NiFpga_Status NiFpga_WriteArrayU32(NiFpga_Session session, uint32_t control, const uint32_t* array, +NiFpga_Status NiFpga_WriteArrayU32(NiFpga_Session session, uint32_t control, const uint32_t *array, size_t size); /** @@ -1504,7 +1504,7 @@ NiFpga_Status NiFpga_WriteArrayU32(NiFpga_Session session, uint32_t control, con * @param size exact number of elements in the control or indicator * @return result of the call */ -NiFpga_Status NiFpga_WriteArrayI64(NiFpga_Session session, uint32_t control, const int64_t* array, +NiFpga_Status NiFpga_WriteArrayI64(NiFpga_Session session, uint32_t control, const int64_t *array, size_t size); /** @@ -1520,7 +1520,7 @@ NiFpga_Status NiFpga_WriteArrayI64(NiFpga_Session session, uint32_t control, con * @param size exact number of elements in the control or indicator * @return result of the call */ -NiFpga_Status NiFpga_WriteArrayU64(NiFpga_Session session, uint32_t control, const uint64_t* array, +NiFpga_Status NiFpga_WriteArrayU64(NiFpga_Session session, uint32_t control, const uint64_t *array, size_t size); /** @@ -1536,7 +1536,7 @@ NiFpga_Status NiFpga_WriteArrayU64(NiFpga_Session session, uint32_t control, con * @param size exact number of elements in the control or indicator * @return result of the call */ -NiFpga_Status NiFpga_WriteArraySgl(NiFpga_Session session, uint32_t control, const float* array, size_t size); +NiFpga_Status NiFpga_WriteArraySgl(NiFpga_Session session, uint32_t control, const float *array, size_t size); /** * Writes an entire array of double-precision floating-point values to a given @@ -1551,7 +1551,7 @@ NiFpga_Status NiFpga_WriteArraySgl(NiFpga_Session session, uint32_t control, con * @param size exact number of elements in the control or indicator * @return result of the call */ -NiFpga_Status NiFpga_WriteArrayDbl(NiFpga_Session session, uint32_t control, const double* array, +NiFpga_Status NiFpga_WriteArrayDbl(NiFpga_Session session, uint32_t control, const double *array, size_t size); /** @@ -1611,7 +1611,7 @@ typedef enum { /** * See NiFpga_ReserveIrqContext for more information. */ -typedef void* NiFpga_IrqContext; +typedef void *NiFpga_IrqContext; /** * IRQ contexts are single-threaded; only one thread can wait with a @@ -1626,7 +1626,7 @@ typedef void* NiFpga_IrqContext; * @param context outputs the IRQ context * @return result of the call */ -NiFpga_Status NiFpga_ReserveIrqContext(NiFpga_Session session, NiFpga_IrqContext* context); +NiFpga_Status NiFpga_ReserveIrqContext(NiFpga_Session session, NiFpga_IrqContext *context); /** * Unreserves an IRQ context obtained from NiFpga_ReserveIrqContext. @@ -1657,7 +1657,7 @@ NiFpga_Status NiFpga_UnreserveIrqContext(NiFpga_Session session, NiFpga_IrqConte * @return result of the call */ NiFpga_Status NiFpga_WaitOnIrqs(NiFpga_Session session, NiFpga_IrqContext context, uint32_t irqs, - uint32_t timeout, uint32_t* irqsAsserted, NiFpga_Bool* timedOut); + uint32_t timeout, uint32_t *irqsAsserted, NiFpga_Bool *timedOut); /** * Acknowledges an IRQ or set of IRQs. @@ -1703,7 +1703,7 @@ NiFpga_Status NiFpga_ConfigureFifo(NiFpga_Session session, uint32_t fifo, size_t * @return result of the call */ NiFpga_Status NiFpga_ConfigureFifo2(NiFpga_Session session, uint32_t fifo, size_t requestedDepth, - size_t* actualDepth); + size_t *actualDepth); /** * @} @@ -1968,7 +1968,7 @@ NiFpga_Status NiFpga_SetFifoPropertyI64(NiFpga_Session session, uint32_t fifo, N * @return result of the call */ NiFpga_Status NiFpga_SetFifoPropertyPtr(NiFpga_Session session, uint32_t fifo, NiFpga_FifoProperty property, - void* value); + void *value); /** * Gets the value of the specified U32 FIFO property. The value returned may be @@ -1981,7 +1981,7 @@ NiFpga_Status NiFpga_SetFifoPropertyPtr(NiFpga_Session session, uint32_t fifo, N * @return result of the call */ NiFpga_Status NiFpga_GetFifoPropertyU32(NiFpga_Session session, uint32_t fifo, NiFpga_FifoProperty property, - uint32_t* value); + uint32_t *value); /** * Gets the value of the specified I32 FIFO property. The value returned may be @@ -1994,7 +1994,7 @@ NiFpga_Status NiFpga_GetFifoPropertyU32(NiFpga_Session session, uint32_t fifo, N * @return result of the call */ NiFpga_Status NiFpga_GetFifoPropertyI32(NiFpga_Session session, uint32_t fifo, NiFpga_FifoProperty property, - int32_t* value); + int32_t *value); /** * Gets the value of the specified U64 FIFO property. The value returned may be @@ -2007,7 +2007,7 @@ NiFpga_Status NiFpga_GetFifoPropertyI32(NiFpga_Session session, uint32_t fifo, N * @return result of the call */ NiFpga_Status NiFpga_GetFifoPropertyU64(NiFpga_Session session, uint32_t fifo, NiFpga_FifoProperty property, - uint64_t* value); + uint64_t *value); /** * Gets the value of the specified I64 FIFO property. The value returned may be @@ -2020,7 +2020,7 @@ NiFpga_Status NiFpga_GetFifoPropertyU64(NiFpga_Session session, uint32_t fifo, N * @return result of the call */ NiFpga_Status NiFpga_GetFifoPropertyI64(NiFpga_Session session, uint32_t fifo, NiFpga_FifoProperty property, - int64_t* value); + int64_t *value); /** * Gets the value of the specified pointer FIFO property. The value returned may @@ -2033,7 +2033,7 @@ NiFpga_Status NiFpga_GetFifoPropertyI64(NiFpga_Session session, uint32_t fifo, N * @return result of the call */ NiFpga_Status NiFpga_GetFifoPropertyPtr(NiFpga_Session session, uint32_t fifo, NiFpga_FifoProperty property, - void** value); + void **value); /** * Commits the configuration of the FIFO. Resolves the host memory part of the @@ -2091,8 +2091,8 @@ NiFpga_Status NiFpga_StopFifo(NiFpga_Session session, uint32_t fifo); * remaining in the host memory part of the DMA FIFO * @return result of the call */ -NiFpga_Status NiFpga_ReadFifoBool(NiFpga_Session session, uint32_t fifo, NiFpga_Bool* data, - size_t numberOfElements, uint32_t timeout, size_t* elementsRemaining); +NiFpga_Status NiFpga_ReadFifoBool(NiFpga_Session session, uint32_t fifo, NiFpga_Bool *data, + size_t numberOfElements, uint32_t timeout, size_t *elementsRemaining); /** * Reads from a target-to-host FIFO of signed 8-bit integers. @@ -2106,8 +2106,8 @@ NiFpga_Status NiFpga_ReadFifoBool(NiFpga_Session session, uint32_t fifo, NiFpga_ * remaining in the host memory part of the DMA FIFO * @return result of the call */ -NiFpga_Status NiFpga_ReadFifoI8(NiFpga_Session session, uint32_t fifo, int8_t* data, size_t numberOfElements, - uint32_t timeout, size_t* elementsRemaining); +NiFpga_Status NiFpga_ReadFifoI8(NiFpga_Session session, uint32_t fifo, int8_t *data, size_t numberOfElements, + uint32_t timeout, size_t *elementsRemaining); /** * Reads from a target-to-host FIFO of unsigned 8-bit integers. @@ -2121,8 +2121,8 @@ NiFpga_Status NiFpga_ReadFifoI8(NiFpga_Session session, uint32_t fifo, int8_t* d * remaining in the host memory part of the DMA FIFO * @return result of the call */ -NiFpga_Status NiFpga_ReadFifoU8(NiFpga_Session session, uint32_t fifo, uint8_t* data, size_t numberOfElements, - uint32_t timeout, size_t* elementsRemaining); +NiFpga_Status NiFpga_ReadFifoU8(NiFpga_Session session, uint32_t fifo, uint8_t *data, size_t numberOfElements, + uint32_t timeout, size_t *elementsRemaining); /** * Reads from a target-to-host FIFO of signed 16-bit integers. @@ -2136,8 +2136,8 @@ NiFpga_Status NiFpga_ReadFifoU8(NiFpga_Session session, uint32_t fifo, uint8_t* * remaining in the host memory part of the DMA FIFO * @return result of the call */ -NiFpga_Status NiFpga_ReadFifoI16(NiFpga_Session session, uint32_t fifo, int16_t* data, - size_t numberOfElements, uint32_t timeout, size_t* elementsRemaining); +NiFpga_Status NiFpga_ReadFifoI16(NiFpga_Session session, uint32_t fifo, int16_t *data, + size_t numberOfElements, uint32_t timeout, size_t *elementsRemaining); /** * Reads from a target-to-host FIFO of unsigned 16-bit integers. @@ -2151,8 +2151,8 @@ NiFpga_Status NiFpga_ReadFifoI16(NiFpga_Session session, uint32_t fifo, int16_t* * remaining in the host memory part of the DMA FIFO * @return result of the call */ -NiFpga_Status NiFpga_ReadFifoU16(NiFpga_Session session, uint32_t fifo, uint16_t* data, - size_t numberOfElements, uint32_t timeout, size_t* elementsRemaining); +NiFpga_Status NiFpga_ReadFifoU16(NiFpga_Session session, uint32_t fifo, uint16_t *data, + size_t numberOfElements, uint32_t timeout, size_t *elementsRemaining); /** * Reads from a target-to-host FIFO of signed 32-bit integers. @@ -2166,8 +2166,8 @@ NiFpga_Status NiFpga_ReadFifoU16(NiFpga_Session session, uint32_t fifo, uint16_t * remaining in the host memory part of the DMA FIFO * @return result of the call */ -NiFpga_Status NiFpga_ReadFifoI32(NiFpga_Session session, uint32_t fifo, int32_t* data, - size_t numberOfElements, uint32_t timeout, size_t* elementsRemaining); +NiFpga_Status NiFpga_ReadFifoI32(NiFpga_Session session, uint32_t fifo, int32_t *data, + size_t numberOfElements, uint32_t timeout, size_t *elementsRemaining); /** * Reads from a target-to-host FIFO of unsigned 32-bit integers. @@ -2181,8 +2181,8 @@ NiFpga_Status NiFpga_ReadFifoI32(NiFpga_Session session, uint32_t fifo, int32_t* * remaining in the host memory part of the DMA FIFO * @return result of the call */ -NiFpga_Status NiFpga_ReadFifoU32(NiFpga_Session session, uint32_t fifo, uint32_t* data, - size_t numberOfElements, uint32_t timeout, size_t* elementsRemaining); +NiFpga_Status NiFpga_ReadFifoU32(NiFpga_Session session, uint32_t fifo, uint32_t *data, + size_t numberOfElements, uint32_t timeout, size_t *elementsRemaining); /** * Reads from a target-to-host FIFO of signed 64-bit integers. @@ -2196,8 +2196,8 @@ NiFpga_Status NiFpga_ReadFifoU32(NiFpga_Session session, uint32_t fifo, uint32_t * remaining in the host memory part of the DMA FIFO * @return result of the call */ -NiFpga_Status NiFpga_ReadFifoI64(NiFpga_Session session, uint32_t fifo, int64_t* data, - size_t numberOfElements, uint32_t timeout, size_t* elementsRemaining); +NiFpga_Status NiFpga_ReadFifoI64(NiFpga_Session session, uint32_t fifo, int64_t *data, + size_t numberOfElements, uint32_t timeout, size_t *elementsRemaining); /** * Reads from a target-to-host FIFO of unsigned 64-bit integers. @@ -2211,8 +2211,8 @@ NiFpga_Status NiFpga_ReadFifoI64(NiFpga_Session session, uint32_t fifo, int64_t* * remaining in the host memory part of the DMA FIFO * @return result of the call */ -NiFpga_Status NiFpga_ReadFifoU64(NiFpga_Session session, uint32_t fifo, uint64_t* data, - size_t numberOfElements, uint32_t timeout, size_t* elementsRemaining); +NiFpga_Status NiFpga_ReadFifoU64(NiFpga_Session session, uint32_t fifo, uint64_t *data, + size_t numberOfElements, uint32_t timeout, size_t *elementsRemaining); /** * Reads from a target-to-host FIFO of single-precision floating-point values. @@ -2226,8 +2226,8 @@ NiFpga_Status NiFpga_ReadFifoU64(NiFpga_Session session, uint32_t fifo, uint64_t * remaining in the host memory part of the DMA FIFO * @return result of the call */ -NiFpga_Status NiFpga_ReadFifoSgl(NiFpga_Session session, uint32_t fifo, float* data, size_t numberOfElements, - uint32_t timeout, size_t* elementsRemaining); +NiFpga_Status NiFpga_ReadFifoSgl(NiFpga_Session session, uint32_t fifo, float *data, size_t numberOfElements, + uint32_t timeout, size_t *elementsRemaining); /** * Reads from a target-to-host FIFO of double-precision floating-point values. @@ -2241,8 +2241,8 @@ NiFpga_Status NiFpga_ReadFifoSgl(NiFpga_Session session, uint32_t fifo, float* d * remaining in the host memory part of the DMA FIFO * @return result of the call */ -NiFpga_Status NiFpga_ReadFifoDbl(NiFpga_Session session, uint32_t fifo, double* data, size_t numberOfElements, - uint32_t timeout, size_t* elementsRemaining); +NiFpga_Status NiFpga_ReadFifoDbl(NiFpga_Session session, uint32_t fifo, double *data, size_t numberOfElements, + uint32_t timeout, size_t *elementsRemaining); /** * Reads from a target-to-host FIFO of composite types such as clusters. @@ -2257,9 +2257,9 @@ NiFpga_Status NiFpga_ReadFifoDbl(NiFpga_Session session, uint32_t fifo, double* * remaining in the host memory part of the DMA FIFO * @return result of the call */ -NiFpga_Status NiFpga_ReadFifoComposite(NiFpga_Session session, uint32_t fifo, void* data, +NiFpga_Status NiFpga_ReadFifoComposite(NiFpga_Session session, uint32_t fifo, void *data, uint32_t bytesPerElement, size_t numberOfElements, uint32_t timeout, - size_t* elementsRemaining); + size_t *elementsRemaining); /** * @} @@ -2282,8 +2282,8 @@ NiFpga_Status NiFpga_ReadFifoComposite(NiFpga_Session session, uint32_t fifo, vo * the DMA FIFO * @return result of the call */ -NiFpga_Status NiFpga_WriteFifoBool(NiFpga_Session session, uint32_t fifo, const NiFpga_Bool* data, - size_t numberOfElements, uint32_t timeout, size_t* emptyElementsRemaining); +NiFpga_Status NiFpga_WriteFifoBool(NiFpga_Session session, uint32_t fifo, const NiFpga_Bool *data, + size_t numberOfElements, uint32_t timeout, size_t *emptyElementsRemaining); /** * Writes to a host-to-target FIFO of signed 8-bit integers. @@ -2298,8 +2298,8 @@ NiFpga_Status NiFpga_WriteFifoBool(NiFpga_Session session, uint32_t fifo, const * the DMA FIFO * @return result of the call */ -NiFpga_Status NiFpga_WriteFifoI8(NiFpga_Session session, uint32_t fifo, const int8_t* data, - size_t numberOfElements, uint32_t timeout, size_t* emptyElementsRemaining); +NiFpga_Status NiFpga_WriteFifoI8(NiFpga_Session session, uint32_t fifo, const int8_t *data, + size_t numberOfElements, uint32_t timeout, size_t *emptyElementsRemaining); /** * Writes to a host-to-target FIFO of unsigned 8-bit integers. @@ -2314,8 +2314,8 @@ NiFpga_Status NiFpga_WriteFifoI8(NiFpga_Session session, uint32_t fifo, const in * the DMA FIFO * @return result of the call */ -NiFpga_Status NiFpga_WriteFifoU8(NiFpga_Session session, uint32_t fifo, const uint8_t* data, - size_t numberOfElements, uint32_t timeout, size_t* emptyElementsRemaining); +NiFpga_Status NiFpga_WriteFifoU8(NiFpga_Session session, uint32_t fifo, const uint8_t *data, + size_t numberOfElements, uint32_t timeout, size_t *emptyElementsRemaining); /** * Writes to a host-to-target FIFO of signed 16-bit integers. @@ -2330,8 +2330,8 @@ NiFpga_Status NiFpga_WriteFifoU8(NiFpga_Session session, uint32_t fifo, const ui * the DMA FIFO * @return result of the call */ -NiFpga_Status NiFpga_WriteFifoI16(NiFpga_Session session, uint32_t fifo, const int16_t* data, - size_t numberOfElements, uint32_t timeout, size_t* emptyElementsRemaining); +NiFpga_Status NiFpga_WriteFifoI16(NiFpga_Session session, uint32_t fifo, const int16_t *data, + size_t numberOfElements, uint32_t timeout, size_t *emptyElementsRemaining); /** * Writes to a host-to-target FIFO of unsigned 16-bit integers. @@ -2346,8 +2346,8 @@ NiFpga_Status NiFpga_WriteFifoI16(NiFpga_Session session, uint32_t fifo, const i * the DMA FIFO * @return result of the call */ -NiFpga_Status NiFpga_WriteFifoU16(NiFpga_Session session, uint32_t fifo, const uint16_t* data, - size_t numberOfElements, uint32_t timeout, size_t* emptyElementsRemaining); +NiFpga_Status NiFpga_WriteFifoU16(NiFpga_Session session, uint32_t fifo, const uint16_t *data, + size_t numberOfElements, uint32_t timeout, size_t *emptyElementsRemaining); /** * Writes to a host-to-target FIFO of signed 32-bit integers. @@ -2362,8 +2362,8 @@ NiFpga_Status NiFpga_WriteFifoU16(NiFpga_Session session, uint32_t fifo, const u * the DMA FIFO * @return result of the call */ -NiFpga_Status NiFpga_WriteFifoI32(NiFpga_Session session, uint32_t fifo, const int32_t* data, - size_t numberOfElements, uint32_t timeout, size_t* emptyElementsRemaining); +NiFpga_Status NiFpga_WriteFifoI32(NiFpga_Session session, uint32_t fifo, const int32_t *data, + size_t numberOfElements, uint32_t timeout, size_t *emptyElementsRemaining); /** * Writes to a host-to-target FIFO of unsigned 32-bit integers. @@ -2378,8 +2378,8 @@ NiFpga_Status NiFpga_WriteFifoI32(NiFpga_Session session, uint32_t fifo, const i * the DMA FIFO * @return result of the call */ -NiFpga_Status NiFpga_WriteFifoU32(NiFpga_Session session, uint32_t fifo, const uint32_t* data, - size_t numberOfElements, uint32_t timeout, size_t* emptyElementsRemaining); +NiFpga_Status NiFpga_WriteFifoU32(NiFpga_Session session, uint32_t fifo, const uint32_t *data, + size_t numberOfElements, uint32_t timeout, size_t *emptyElementsRemaining); /** * Writes to a host-to-target FIFO of signed 64-bit integers. @@ -2394,8 +2394,8 @@ NiFpga_Status NiFpga_WriteFifoU32(NiFpga_Session session, uint32_t fifo, const u * the DMA FIFO * @return result of the call */ -NiFpga_Status NiFpga_WriteFifoI64(NiFpga_Session session, uint32_t fifo, const int64_t* data, - size_t numberOfElements, uint32_t timeout, size_t* emptyElementsRemaining); +NiFpga_Status NiFpga_WriteFifoI64(NiFpga_Session session, uint32_t fifo, const int64_t *data, + size_t numberOfElements, uint32_t timeout, size_t *emptyElementsRemaining); /** * Writes to a host-to-target FIFO of unsigned 64-bit integers. @@ -2410,8 +2410,8 @@ NiFpga_Status NiFpga_WriteFifoI64(NiFpga_Session session, uint32_t fifo, const i * the DMA FIFO * @return result of the call */ -NiFpga_Status NiFpga_WriteFifoU64(NiFpga_Session session, uint32_t fifo, const uint64_t* data, - size_t numberOfElements, uint32_t timeout, size_t* emptyElementsRemaining); +NiFpga_Status NiFpga_WriteFifoU64(NiFpga_Session session, uint32_t fifo, const uint64_t *data, + size_t numberOfElements, uint32_t timeout, size_t *emptyElementsRemaining); /** * Writes to a host-to-target FIFO of single-precision floating-point values. @@ -2426,8 +2426,8 @@ NiFpga_Status NiFpga_WriteFifoU64(NiFpga_Session session, uint32_t fifo, const u * the DMA FIFO * @return result of the call */ -NiFpga_Status NiFpga_WriteFifoSgl(NiFpga_Session session, uint32_t fifo, const float* data, - size_t numberOfElements, uint32_t timeout, size_t* emptyElementsRemaining); +NiFpga_Status NiFpga_WriteFifoSgl(NiFpga_Session session, uint32_t fifo, const float *data, + size_t numberOfElements, uint32_t timeout, size_t *emptyElementsRemaining); /** * Writes to a host-to-target FIFO of double-precision floating-point values. @@ -2442,8 +2442,8 @@ NiFpga_Status NiFpga_WriteFifoSgl(NiFpga_Session session, uint32_t fifo, const f * the DMA FIFO * @return result of the call */ -NiFpga_Status NiFpga_WriteFifoDbl(NiFpga_Session session, uint32_t fifo, const double* data, - size_t numberOfElements, uint32_t timeout, size_t* emptyElementsRemaining); +NiFpga_Status NiFpga_WriteFifoDbl(NiFpga_Session session, uint32_t fifo, const double *data, + size_t numberOfElements, uint32_t timeout, size_t *emptyElementsRemaining); /** * Writes to a host-to-target FIFO of composite types such as clusters. @@ -2459,9 +2459,9 @@ NiFpga_Status NiFpga_WriteFifoDbl(NiFpga_Session session, uint32_t fifo, const d * the DMA FIFO * @return result of the call */ -NiFpga_Status NiFpga_WriteFifoComposite(NiFpga_Session session, uint32_t fifo, const void* data, +NiFpga_Status NiFpga_WriteFifoComposite(NiFpga_Session session, uint32_t fifo, const void *data, uint32_t bytesPerElement, size_t numberOfElements, uint32_t timeout, - size_t* emptyElementsRemaining); + size_t *emptyElementsRemaining); /** * @} @@ -2496,9 +2496,9 @@ NiFpga_Status NiFpga_WriteFifoComposite(NiFpga_Session session, uint32_t fifo, c * @return result of the call */ NiFpga_Status NiFpga_AcquireFifoReadElementsBool(NiFpga_Session session, uint32_t fifo, - NiFpga_Bool** elements, size_t elementsRequested, - uint32_t timeout, size_t* elementsAcquired, - size_t* elementsRemaining); + NiFpga_Bool **elements, size_t elementsRequested, + uint32_t timeout, size_t *elementsAcquired, + size_t *elementsRemaining); /** * Acquires elements for reading from a target-to-host FIFO of signed 8-bit @@ -2525,9 +2525,9 @@ NiFpga_Status NiFpga_AcquireFifoReadElementsBool(NiFpga_Session session, uint32_ * remaining in the host memory part of the DMA FIFO * @return result of the call */ -NiFpga_Status NiFpga_AcquireFifoReadElementsI8(NiFpga_Session session, uint32_t fifo, int8_t** elements, +NiFpga_Status NiFpga_AcquireFifoReadElementsI8(NiFpga_Session session, uint32_t fifo, int8_t **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining); + size_t *elementsAcquired, size_t *elementsRemaining); /** * Acquires elements for reading from a target-to-host FIFO of unsigned 8-bit @@ -2554,9 +2554,9 @@ NiFpga_Status NiFpga_AcquireFifoReadElementsI8(NiFpga_Session session, uint32_t * remaining in the host memory part of the DMA FIFO * @return result of the call */ -NiFpga_Status NiFpga_AcquireFifoReadElementsU8(NiFpga_Session session, uint32_t fifo, uint8_t** elements, +NiFpga_Status NiFpga_AcquireFifoReadElementsU8(NiFpga_Session session, uint32_t fifo, uint8_t **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining); + size_t *elementsAcquired, size_t *elementsRemaining); /** * Acquires elements for reading from a target-to-host FIFO of signed 16-bit @@ -2583,9 +2583,9 @@ NiFpga_Status NiFpga_AcquireFifoReadElementsU8(NiFpga_Session session, uint32_t * remaining in the host memory part of the DMA FIFO * @return result of the call */ -NiFpga_Status NiFpga_AcquireFifoReadElementsI16(NiFpga_Session session, uint32_t fifo, int16_t** elements, +NiFpga_Status NiFpga_AcquireFifoReadElementsI16(NiFpga_Session session, uint32_t fifo, int16_t **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining); + size_t *elementsAcquired, size_t *elementsRemaining); /** * Acquires elements for reading from a target-to-host FIFO of unsigned 16-bit @@ -2612,9 +2612,9 @@ NiFpga_Status NiFpga_AcquireFifoReadElementsI16(NiFpga_Session session, uint32_t * remaining in the host memory part of the DMA FIFO * @return result of the call */ -NiFpga_Status NiFpga_AcquireFifoReadElementsU16(NiFpga_Session session, uint32_t fifo, uint16_t** elements, +NiFpga_Status NiFpga_AcquireFifoReadElementsU16(NiFpga_Session session, uint32_t fifo, uint16_t **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining); + size_t *elementsAcquired, size_t *elementsRemaining); /** * Acquires elements for reading from a target-to-host FIFO of signed 32-bit @@ -2641,9 +2641,9 @@ NiFpga_Status NiFpga_AcquireFifoReadElementsU16(NiFpga_Session session, uint32_t * remaining in the host memory part of the DMA FIFO * @return result of the call */ -NiFpga_Status NiFpga_AcquireFifoReadElementsI32(NiFpga_Session session, uint32_t fifo, int32_t** elements, +NiFpga_Status NiFpga_AcquireFifoReadElementsI32(NiFpga_Session session, uint32_t fifo, int32_t **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining); + size_t *elementsAcquired, size_t *elementsRemaining); /** * Acquires elements for reading from a target-to-host FIFO of unsigned 32-bit @@ -2670,9 +2670,9 @@ NiFpga_Status NiFpga_AcquireFifoReadElementsI32(NiFpga_Session session, uint32_t * remaining in the host memory part of the DMA FIFO * @return result of the call */ -NiFpga_Status NiFpga_AcquireFifoReadElementsU32(NiFpga_Session session, uint32_t fifo, uint32_t** elements, +NiFpga_Status NiFpga_AcquireFifoReadElementsU32(NiFpga_Session session, uint32_t fifo, uint32_t **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining); + size_t *elementsAcquired, size_t *elementsRemaining); /** * Acquires elements for reading from a target-to-host FIFO of signed 64-bit @@ -2699,9 +2699,9 @@ NiFpga_Status NiFpga_AcquireFifoReadElementsU32(NiFpga_Session session, uint32_t * remaining in the host memory part of the DMA FIFO * @return result of the call */ -NiFpga_Status NiFpga_AcquireFifoReadElementsI64(NiFpga_Session session, uint32_t fifo, int64_t** elements, +NiFpga_Status NiFpga_AcquireFifoReadElementsI64(NiFpga_Session session, uint32_t fifo, int64_t **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining); + size_t *elementsAcquired, size_t *elementsRemaining); /** * Acquires elements for reading from a target-to-host FIFO of unsigned 64-bit @@ -2728,9 +2728,9 @@ NiFpga_Status NiFpga_AcquireFifoReadElementsI64(NiFpga_Session session, uint32_t * remaining in the host memory part of the DMA FIFO * @return result of the call */ -NiFpga_Status NiFpga_AcquireFifoReadElementsU64(NiFpga_Session session, uint32_t fifo, uint64_t** elements, +NiFpga_Status NiFpga_AcquireFifoReadElementsU64(NiFpga_Session session, uint32_t fifo, uint64_t **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining); + size_t *elementsAcquired, size_t *elementsRemaining); /** * Acquires elements for reading from a target-to-host FIFO of single-precision @@ -2757,9 +2757,9 @@ NiFpga_Status NiFpga_AcquireFifoReadElementsU64(NiFpga_Session session, uint32_t * remaining in the host memory part of the DMA FIFO * @return result of the call */ -NiFpga_Status NiFpga_AcquireFifoReadElementsSgl(NiFpga_Session session, uint32_t fifo, float** elements, +NiFpga_Status NiFpga_AcquireFifoReadElementsSgl(NiFpga_Session session, uint32_t fifo, float **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining); + size_t *elementsAcquired, size_t *elementsRemaining); /** * Acquires elements for reading from a target-to-host FIFO of double-precision @@ -2786,9 +2786,9 @@ NiFpga_Status NiFpga_AcquireFifoReadElementsSgl(NiFpga_Session session, uint32_t * remaining in the host memory part of the DMA FIFO * @return result of the call */ -NiFpga_Status NiFpga_AcquireFifoReadElementsDbl(NiFpga_Session session, uint32_t fifo, double** elements, +NiFpga_Status NiFpga_AcquireFifoReadElementsDbl(NiFpga_Session session, uint32_t fifo, double **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining); + size_t *elementsAcquired, size_t *elementsRemaining); /** * @} @@ -2823,9 +2823,9 @@ NiFpga_Status NiFpga_AcquireFifoReadElementsDbl(NiFpga_Session session, uint32_t * @return result of the call */ NiFpga_Status NiFpga_AcquireFifoWriteElementsBool(NiFpga_Session session, uint32_t fifo, - NiFpga_Bool** elements, size_t elementsRequested, - uint32_t timeout, size_t* elementsAcquired, - size_t* elementsRemaining); + NiFpga_Bool **elements, size_t elementsRequested, + uint32_t timeout, size_t *elementsAcquired, + size_t *elementsRemaining); /** * Acquires elements for writing to a host-to-target FIFO of signed 8-bit @@ -2852,9 +2852,9 @@ NiFpga_Status NiFpga_AcquireFifoWriteElementsBool(NiFpga_Session session, uint32 * remaining in the host memory part of the DMA FIFO * @return result of the call */ -NiFpga_Status NiFpga_AcquireFifoWriteElementsI8(NiFpga_Session session, uint32_t fifo, int8_t** elements, +NiFpga_Status NiFpga_AcquireFifoWriteElementsI8(NiFpga_Session session, uint32_t fifo, int8_t **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining); + size_t *elementsAcquired, size_t *elementsRemaining); /** * Acquires elements for writing to a host-to-target FIFO of unsigned 8-bit @@ -2881,9 +2881,9 @@ NiFpga_Status NiFpga_AcquireFifoWriteElementsI8(NiFpga_Session session, uint32_t * remaining in the host memory part of the DMA FIFO * @return result of the call */ -NiFpga_Status NiFpga_AcquireFifoWriteElementsU8(NiFpga_Session session, uint32_t fifo, uint8_t** elements, +NiFpga_Status NiFpga_AcquireFifoWriteElementsU8(NiFpga_Session session, uint32_t fifo, uint8_t **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining); + size_t *elementsAcquired, size_t *elementsRemaining); /** * Acquires elements for writing to a host-to-target FIFO of signed 16-bit @@ -2910,9 +2910,9 @@ NiFpga_Status NiFpga_AcquireFifoWriteElementsU8(NiFpga_Session session, uint32_t * remaining in the host memory part of the DMA FIFO * @return result of the call */ -NiFpga_Status NiFpga_AcquireFifoWriteElementsI16(NiFpga_Session session, uint32_t fifo, int16_t** elements, +NiFpga_Status NiFpga_AcquireFifoWriteElementsI16(NiFpga_Session session, uint32_t fifo, int16_t **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining); + size_t *elementsAcquired, size_t *elementsRemaining); /** * Acquires elements for writing to a host-to-target FIFO of unsigned 16-bit @@ -2939,9 +2939,9 @@ NiFpga_Status NiFpga_AcquireFifoWriteElementsI16(NiFpga_Session session, uint32_ * remaining in the host memory part of the DMA FIFO * @return result of the call */ -NiFpga_Status NiFpga_AcquireFifoWriteElementsU16(NiFpga_Session session, uint32_t fifo, uint16_t** elements, +NiFpga_Status NiFpga_AcquireFifoWriteElementsU16(NiFpga_Session session, uint32_t fifo, uint16_t **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining); + size_t *elementsAcquired, size_t *elementsRemaining); /** * Acquires elements for writing to a host-to-target FIFO of signed 32-bit @@ -2968,9 +2968,9 @@ NiFpga_Status NiFpga_AcquireFifoWriteElementsU16(NiFpga_Session session, uint32_ * remaining in the host memory part of the DMA FIFO * @return result of the call */ -NiFpga_Status NiFpga_AcquireFifoWriteElementsI32(NiFpga_Session session, uint32_t fifo, int32_t** elements, +NiFpga_Status NiFpga_AcquireFifoWriteElementsI32(NiFpga_Session session, uint32_t fifo, int32_t **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining); + size_t *elementsAcquired, size_t *elementsRemaining); /** * Acquires elements for writing to a host-to-target FIFO of unsigned 32-bit @@ -2997,9 +2997,9 @@ NiFpga_Status NiFpga_AcquireFifoWriteElementsI32(NiFpga_Session session, uint32_ * remaining in the host memory part of the DMA FIFO * @return result of the call */ -NiFpga_Status NiFpga_AcquireFifoWriteElementsU32(NiFpga_Session session, uint32_t fifo, uint32_t** elements, +NiFpga_Status NiFpga_AcquireFifoWriteElementsU32(NiFpga_Session session, uint32_t fifo, uint32_t **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining); + size_t *elementsAcquired, size_t *elementsRemaining); /** * Acquires elements for writing to a host-to-target FIFO of signed 64-bit @@ -3026,9 +3026,9 @@ NiFpga_Status NiFpga_AcquireFifoWriteElementsU32(NiFpga_Session session, uint32_ * remaining in the host memory part of the DMA FIFO * @return result of the call */ -NiFpga_Status NiFpga_AcquireFifoWriteElementsI64(NiFpga_Session session, uint32_t fifo, int64_t** elements, +NiFpga_Status NiFpga_AcquireFifoWriteElementsI64(NiFpga_Session session, uint32_t fifo, int64_t **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining); + size_t *elementsAcquired, size_t *elementsRemaining); /** * Acquires elements for writing to a host-to-target FIFO of unsigned 64-bit @@ -3055,9 +3055,9 @@ NiFpga_Status NiFpga_AcquireFifoWriteElementsI64(NiFpga_Session session, uint32_ * remaining in the host memory part of the DMA FIFO * @return result of the call */ -NiFpga_Status NiFpga_AcquireFifoWriteElementsU64(NiFpga_Session session, uint32_t fifo, uint64_t** elements, +NiFpga_Status NiFpga_AcquireFifoWriteElementsU64(NiFpga_Session session, uint32_t fifo, uint64_t **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining); + size_t *elementsAcquired, size_t *elementsRemaining); /** * Acquires elements for writing to a host-to-target FIFO of single-precision @@ -3084,9 +3084,9 @@ NiFpga_Status NiFpga_AcquireFifoWriteElementsU64(NiFpga_Session session, uint32_ * remaining in the host memory part of the DMA FIFO * @return result of the call */ -NiFpga_Status NiFpga_AcquireFifoWriteElementsSgl(NiFpga_Session session, uint32_t fifo, float** elements, +NiFpga_Status NiFpga_AcquireFifoWriteElementsSgl(NiFpga_Session session, uint32_t fifo, float **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining); + size_t *elementsAcquired, size_t *elementsRemaining); /** * Acquires elements for writing to a host-to-target FIFO of single-precision @@ -3113,9 +3113,9 @@ NiFpga_Status NiFpga_AcquireFifoWriteElementsSgl(NiFpga_Session session, uint32_ * remaining in the host memory part of the DMA FIFO * @return result of the call */ -NiFpga_Status NiFpga_AcquireFifoWriteElementsDbl(NiFpga_Session session, uint32_t fifo, double** elements, +NiFpga_Status NiFpga_AcquireFifoWriteElementsDbl(NiFpga_Session session, uint32_t fifo, double **elements, size_t elementsRequested, uint32_t timeout, - size_t* elementsAcquired, size_t* elementsRemaining); + size_t *elementsAcquired, size_t *elementsRemaining); /** * @} @@ -3150,7 +3150,7 @@ NiFpga_Status NiFpga_ReleaseFifoElements(NiFpga_Session session, uint32_t fifo, * the NI Peer-to-Peer Streaming C/C++ API. * @return result of the call */ -NiFpga_Status NiFpga_GetPeerToPeerFifoEndpoint(NiFpga_Session session, uint32_t fifo, uint32_t* endpoint); +NiFpga_Status NiFpga_GetPeerToPeerFifoEndpoint(NiFpga_Session session, uint32_t fifo, uint32_t *endpoint); /** * @} diff --git a/src/NiFpga/NiFpga_VMS_3_Controller.h b/src/NiFpga/NiFpga_VMS_3_Controller.h index eefec01..3e977e2 100644 --- a/src/NiFpga/NiFpga_VMS_3_Controller.h +++ b/src/NiFpga/NiFpga_VMS_3_Controller.h @@ -23,7 +23,7 @@ /** * The signature of the FPGA bitfile. */ -static const char* const NiFpga_VMS_3_Controller_Signature = "58F5D57A89EEE9690C8BDF6EFBE30542"; +static const char *const NiFpga_VMS_3_Controller_Signature = "58F5D57A89EEE9690C8BDF6EFBE30542"; #if NiFpga_Cpp extern "C" { diff --git a/src/NiFpga/NiFpga_VMS_3_Responder.h b/src/NiFpga/NiFpga_VMS_3_Responder.h index 169c14c..87942f6 100644 --- a/src/NiFpga/NiFpga_VMS_3_Responder.h +++ b/src/NiFpga/NiFpga_VMS_3_Responder.h @@ -23,7 +23,7 @@ /** * The signature of the FPGA bitfile. */ -static const char* const NiFpga_VMS_3_Responder_Signature = "AF9CD1DCC916CE5298098C21EB399E23"; +static const char *const NiFpga_VMS_3_Responder_Signature = "AF9CD1DCC916CE5298098C21EB399E23"; #if NiFpga_Cpp extern "C" { diff --git a/src/NiFpga/NiFpga_VMS_6_Controller.h b/src/NiFpga/NiFpga_VMS_6_Controller.h index 3f0a961..9cb64e6 100644 --- a/src/NiFpga/NiFpga_VMS_6_Controller.h +++ b/src/NiFpga/NiFpga_VMS_6_Controller.h @@ -23,7 +23,7 @@ /** * The signature of the FPGA bitfile. */ -static const char* const NiFpga_VMS_6_Controller_Signature = "857991AE74411689D8DB985696B5B3BB"; +static const char *const NiFpga_VMS_6_Controller_Signature = "857991AE74411689D8DB985696B5B3BB"; #if NiFpga_Cpp extern "C" { diff --git a/src/NiFpga/NiFpga_VMS_6_Responder.h b/src/NiFpga/NiFpga_VMS_6_Responder.h index ee8e44a..ade79ba 100644 --- a/src/NiFpga/NiFpga_VMS_6_Responder.h +++ b/src/NiFpga/NiFpga_VMS_6_Responder.h @@ -23,7 +23,7 @@ /** * The signature of the FPGA bitfile. */ -static const char* const NiFpga_VMS_6_Responder_Signature = "BF60D31B1858EEFD155660346089640D"; +static const char *const NiFpga_VMS_6_Responder_Signature = "BF60D31B1858EEFD155660346089640D"; #if NiFpga_Cpp extern "C" { diff --git a/src/NiFpga/NiFpga_VMS_CameraRotator.h b/src/NiFpga/NiFpga_VMS_CameraRotator.h index 184ce4f..d8b42da 100644 --- a/src/NiFpga/NiFpga_VMS_CameraRotator.h +++ b/src/NiFpga/NiFpga_VMS_CameraRotator.h @@ -16,14 +16,15 @@ * * This is a #define to allow for string literal concatenation. For example: * - * static const char* const Bitfile = "C:\\" NiFpga_VMS_CameraRotator_Bitfile; + * static const char* const Bitfile = "C:\\" + * NiFpga_VMS_CameraRotator_Bitfile; */ #define NiFpga_VMS_CameraRotator_Bitfile "NiFpga_VMS_CameraRotator.lvbitx" /** * The signature of the FPGA bitfile. */ -static const char* const NiFpga_VMS_CameraRotator_Signature = "E93A26E996D3EC1D81D0C490AD5EE3D1"; +static const char *const NiFpga_VMS_CameraRotator_Signature = "E93A26E996D3EC1D81D0C490AD5EE3D1"; #if NiFpga_Cpp extern "C" { diff --git a/src/ts-VMSd.cpp b/src/ts-VMSd.cpp index 5032bb2..f87a630 100644 --- a/src/ts-VMSd.cpp +++ b/src/ts-VMSd.cpp @@ -23,22 +23,24 @@ #include -#include +#include + #include +#include #include #include #include -#include -#include -#include -#include -#include #include -#include -#include #include +#include #include +#include +#include +#include +#include +#include +#include using namespace std::chrono; using namespace std::chrono_literals; @@ -47,9 +49,9 @@ using namespace LSST::VMS; class MTVMSd : public LSST::cRIO::CSC { public: - MTVMSd(const char* name, const char* description) : CSC(name, description) {} + MTVMSd(const char *name, const char *description) : CSC(name, description) {} - cRIO::command_vec processArgs(int argc, char* const argv[]) override; + cRIO::command_vec processArgs(int argc, char *const argv[]) override; protected: void init() override; @@ -62,15 +64,15 @@ class MTVMSd : public LSST::cRIO::CSC { // SAL object to receive all events from other VMS std::shared_ptr _allvmsSAL; - Accelerometer* accelerometer; + Accelerometer *accelerometer; }; SALSinkMacro(MTVMS); int getIndex(const std::string subsystem) { - const char* subsystems[] = {"M1M3", "M2", "CameraRotator", NULL}; + const char *subsystems[] = {"M1M3", "M2", "CameraRotator", NULL}; int index = 1; - for (const char** s = subsystems; *s != NULL; s++, index++) { + for (const char **s = subsystems; *s != NULL; s++, index++) { if (subsystem == *s) { return index; } @@ -79,10 +81,12 @@ int getIndex(const std::string subsystem) { exit(EXIT_FAILURE); } -cRIO::command_vec MTVMSd::processArgs(int argc, char* const argv[]) { +cRIO::command_vec MTVMSd::processArgs(int argc, char *const argv[]) { auto ret = CSC::processArgs(argc, argv); if (ret.size() != 1) { - SPDLOG_CRITICAL("Subsystem (M1M3, M2 or CameraRotator) needs to be provided on command line"); + SPDLOG_CRITICAL( + "Subsystem (M1M3, M2 or CameraRotator) needs to be " + "provided on command line"); exit(EXIT_FAILURE); } @@ -90,9 +94,9 @@ cRIO::command_vec MTVMSd::processArgs(int argc, char* const argv[]) { LSST::cRIO::Settings::Path::setRootPath(getConfigRoot()); #ifdef SIMULATOR - SPDLOG_WARN("Starting ts-VMSd simulator"); + SPDLOG_WARN("Starting ts-VMSd simulator. Version {}", VERSION); #else - SPDLOG_INFO("Starting ts-VMSd"); + SPDLOG_INFO("Starting cRIO/real ts-VMSd. Version {}", VERSION); #endif SPDLOG_INFO("Main: Creating setting reader from {}", getConfigRoot()); @@ -171,17 +175,19 @@ int MTVMSd::runLoop() { accelerometer->sampleData(); Events::FPGAState::instance().checkState(); + Events::Heartbeat::instance().tryToggle(); + return LSST::cRIO::ControllerThread::exitRequested() ? 0 : 1; } -int main(int argc, char* const argv[]) { +int main(int argc, char *const argv[]) { MTVMSd csc("MTVMS", "Vibration Monitoring System CSC"); csc.processArgs(argc, argv); try { csc.run(&(FPGA::instance())); - } catch (LSST::cRIO::NiError& nie) { + } catch (LSST::cRIO::NiError &nie) { SPDLOG_CRITICAL("Main: Error initializing VMS FPGA: {}", nie.what()); } diff --git a/tests/test_PSD.cpp b/tests/test_PSD.cpp index 3f4d1af..5a38c42 100644 --- a/tests/test_PSD.cpp +++ b/tests/test_PSD.cpp @@ -25,8 +25,8 @@ #include #include -#include #include +#include #include