mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 01:18:36 +02:00
C API: Digital IO function use stdbool.h
This requirement is already in place and makes the API more consistent
This commit is contained in:
@@ -724,7 +724,7 @@ extern bool DLLExport icsneo_getTimestampResolution(const neodevice_t* device, u
|
||||
*
|
||||
* These values are often not populated if the device is not "online".
|
||||
*/
|
||||
extern bool DLLExport icsneo_getDigitalIO(const neodevice_t* device, neoio_t type, uint32_t number, uint8_t* value);
|
||||
extern bool DLLExport icsneo_getDigitalIO(const neodevice_t* device, neoio_t type, uint32_t number, bool* value);
|
||||
|
||||
/**
|
||||
* \brief Get the value of a digital IO for the given device
|
||||
@@ -736,7 +736,7 @@ extern bool DLLExport icsneo_getDigitalIO(const neodevice_t* device, neoio_t typ
|
||||
*
|
||||
* Note that this function is not synchronous with the device confirming the change.
|
||||
*/
|
||||
extern bool DLLExport icsneo_setDigitalIO(const neodevice_t* device, neoio_t type, uint32_t number, uint8_t value);
|
||||
extern bool DLLExport icsneo_setDigitalIO(const neodevice_t* device, neoio_t type, uint32_t number, bool value);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} // extern "C"
|
||||
@@ -888,10 +888,10 @@ fn_icsneo_getSupportedDevices icsneo_getSupportedDevices;
|
||||
typedef bool(*fn_icsneo_getTimestampResolution)(const neodevice_t* device, uint16_t* resolution);
|
||||
fn_icsneo_getTimestampResolution icsneo_getTimestampResolution;
|
||||
|
||||
typedef bool(*fn_icsneo_getDigitalIO)(const neodevice_t* device, neoio_t type, uint32_t number, uint8_t* value);
|
||||
typedef bool(*fn_icsneo_getDigitalIO)(const neodevice_t* device, neoio_t type, uint32_t number, bool* value);
|
||||
fn_icsneo_getDigitalIO icsneo_getDigitalIO;
|
||||
|
||||
typedef bool(*fn_icsneo_setDigitalIO)(const neodevice_t* device, neoio_t type, uint32_t number, uint8_t value);
|
||||
typedef bool(*fn_icsneo_setDigitalIO)(const neodevice_t* device, neoio_t type, uint32_t number, bool value);
|
||||
fn_icsneo_setDigitalIO icsneo_setDigitalIO;
|
||||
|
||||
#define ICSNEO_IMPORT(func) func = (fn_##func)icsneo_dynamicLibraryGetFunction(icsneo_libraryHandle, #func)
|
||||
|
||||
Reference in New Issue
Block a user