Commit Graph

48 Commits (008a1620c81f9e3ead5a53755c06a72c07dfdcb9)

Author SHA1 Message Date
Paul Hollinsky 008a1620c8 Repo: Normalize source files to LF 2022-03-27 14:40:32 -04:00
Paul Hollinsky f129be34b5 C API: Resolve compilation against new icsneo::Messasge API 2021-09-20 23:24:19 -04:00
Paul Hollinsky a43c0117d6 API: C: Check nullptr in icsneo_serialStringToNum
Otherwise it will implicitly call the std::string constructor
and that constructor does not check nullptr.
2021-06-11 13:06:47 -04:00
Paul Hollinsky 3b6b4f0541 C API: Expose icsneo_getNetworkByNumber 2021-04-12 20:20:48 -04:00
Paul Hollinsky 40be68e744 C API: Add typedefs for neonetid_t and neonettype_t 2021-04-12 20:20:07 -04:00
Paul Hollinsky e29d63b08c Add Keysight branding where applicable
Because there is now more than one "product name" per device
type, we have a concept of a "generic product name" which
singularly maps onto a device type.

This change comes with a few small breaking changes within
the C++ API:

DeviceType::GetDeviceTypeString has been renamed to
DeviceType::GetGenericProductName to denote that
the returned value is not device specific and
device->getProductName() is preferable.

The member function DeviceType::toString has been renamed
to DeviceType::getGenericProductName for the same reason.

The DeviceType std::ostream& operator<< has been removed
to avoid accidental use of the generic product name.
2021-04-12 19:01:43 -04:00
Paul Hollinsky e82b5d15e0 Support software controllable termination 2021-04-11 22:13:51 -04:00
Paul Hollinsky 9ba21d5dc7 C API: Digital IO function use stdbool.h
This requirement is already in place and makes the API more consistent
2021-04-11 20:54:59 -04:00
Paul Hollinsky a6c8acd8e9 Ethernet (DoIP) Activation Line support 2021-04-06 22:50:25 -04:00
Jeffrey Quesnelle b990e03343 add CMake options to disable certain targets and fix a few compiler warnings 2019-10-17 09:43:50 -04:00
EricLiu2000 01c62b6445 Replaced formal parameter filter in addmessagecallback and addeventcallback 2019-08-06 10:31:08 -04:00
EricLiu2000 4a81b9443a Changed getpollingmessagelimit to return an int 2019-08-05 17:25:09 -04:00
EricLiu2000 2108d6223c Fixed runtime error casting placeholder void* to void in message and event callbacks 2019-08-05 10:32:23 -04:00
EricLiu2000 9040edc25d Added event callback functionality in icsneoc 2019-08-02 16:32:15 -04:00
EricLiu2000 8516a9c8bd Added placeholder void* filter parameter to icsneo_addMessageCallback and added more documentation for message callback functions 2019-07-30 14:02:34 -04:00
EricLiu2000 c10224002a Added message callback functionality in c and canceled error downgrading on user callbacks in communication as well 2019-07-30 10:22:27 -04:00
EricLiu2000 5a98bac8a6 Standardized int-returning functions in icsneoc library to return -1 on failure. Updated icsneolegacy accordingly, and added headers for message callback functionality in c 2019-07-29 16:08:54 -04:00
EricLiu2000 8c186f00cd Added functionality to set blocking behavior of write 2019-07-24 14:57:06 -04:00
EricLiu2000 50dba62a89 Event refactor builds on Windows 2019-06-24 17:59:45 -04:00
EricLiu2000 92368f70a5 Added error checking for polling 2019-06-18 11:38:12 -04:00
EricLiu2000 28fc98c475 Added icsneo_isMessagePollingEnabled(), removed polling check from transmitting, and disabled error reporting on device destruction 2019-06-14 15:13:22 -04:00
EricLiu2000 b7288edd9a Finished adding error checking 2019-06-13 16:01:35 -04:00
EricLiu2000 903615dadd Added icsneo_isOpen() functionality 2019-06-13 16:01:35 -04:00
Paul Hollinsky 7cf0ec5f4f Rename timestampMultiplier to timestampResolution
We've also decided to leave it out of the message structures since, for most uses going forward, it will not be needed.

Anyone who wants the timestamp resolution can always make the inexpensive device call to get it.
2019-05-06 12:32:04 -04:00
David Rebbe 23c3cc3763 Implemented legacy icsneoGetTimeStampForMsg() function call.
Signed-off-by: David Rebbe <drebbe@intrepidcs.com>
2019-04-05 19:09:52 -04:00
Paul Hollinsky e124ad28f4 Major improvements to the settings API
* Allow the raw structure to be manipulated from C and Legacy APIs

 * Structure is now split between what's on the device and what's on the client so changes will not be visible from read methods until apply()

 * Allow devices to connect which have slightly different firmware versions than the settings structure
2018-12-21 20:24:11 -05:00
Paul Hollinsky 3488e36f2a Added the ability to get the baudrate for networks 2018-12-10 14:57:43 -05:00
Paul Hollinsky 8ef2260fbe Add the ability to enumerate supported devices 2018-11-20 09:42:25 -05:00
Paul Hollinsky 77d694c662 Added the ability to block on getMessages until a message arrives 2018-11-09 16:28:48 -05:00
Paul Hollinsky 6399b3d8f2 C API: Allow querying of specifically non-device errors 2018-10-30 18:33:43 -04:00
Paul Hollinsky 5bc65554f9 Error system now functional in C and C++ APIs 2018-10-30 16:54:36 -04:00
Paul Hollinsky 1a9c907fea CAN FD baudrate settings 2018-10-30 15:38:15 -04:00
Paul Hollinsky 4f91d0775f Version info 2018-10-29 16:35:14 -04:00
Paul Hollinsky 3a42372dcd Add error system 2018-10-26 20:53:30 -04:00
Paul Hollinsky 95dce1c429 Device describe 2018-10-24 12:51:04 -04:00
Paul Hollinsky 8044488bed Make a blank settings interface if one does not exist because segfaulting is bad 2018-10-22 17:23:13 -04:00
Paul Hollinsky 8e6b0d0b0e Refactor for a central include directory 2018-10-22 11:52:34 -04:00
Paul Hollinsky d037709963 CAN and CAN FD transmit implemented 2018-10-18 17:39:37 -04:00
Paul Hollinsky ba9813021e Legacy API can receive CAN now 2018-10-08 21:43:32 -04:00
Paul Hollinsky b3471890eb Allow returning to the default settings 2018-10-08 19:03:12 -04:00
Paul Hollinsky d7372bbd5a Incomplete device settings sending 2018-10-01 15:26:13 -04:00
Paul Hollinsky 2b443ad83d The icsneolegacy API finds devices correctly now 2018-09-27 13:34:16 -04:00
Paul Hollinsky 06b7181492 Implement DeviceType and icsneo_getProductName 2018-09-26 20:43:49 -04:00
Paul Hollinsky b0f5ad0f7f Refactor icsneoc to icsneo_functionName to avoid conflicts with legacy 2018-09-26 16:38:28 -04:00
Paul Hollinsky c391bb97a4 Manage memory for the C interface in a much less hack way 2018-09-25 18:58:37 -04:00
Paul Hollinsky 6a0c28cb3d Got rid of a strcpy 2018-09-25 18:46:05 -04:00
Paul Hollinsky 63d13cdb88 Allow polling for messages from C 2018-09-13 19:40:23 -04:00
Paul Hollinsky e2e5017331 Initial commit 2018-09-10 20:28:29 -04:00