Paul Hollinsky
2079037ae4
POSIX FTDI: Nicer error message for when device is in use
...
Commonly, the device is being used by another libicsneo program
(icsscand, maybe) or passed through to a VM.
2020-06-24 22:15:22 -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
Paul Hollinsky
debaf8f0cb
Merge branch 'v0.2.0-dev' of github.com:intrepidcs/libicsneo into v0.2.0-dev
2019-10-16 16:44:16 -04:00
Paul Hollinsky
2f9844df92
Begin work on FlexRay support
2019-10-16 16:43:31 -04:00
Paul Hollinsky
5795efbde8
Merge changes from v0.1.2
...
Dropping the updateLEDState fix as the one on this branch is nicer
2019-09-04 13:40:42 -04:00
EricLiu2000
ef16e60025
Added more mutexes in eventmanager, fixed exiting destruction bug
2019-08-07 13:12:16 -04:00
EricLiu2000
9629864f1b
Fixed wait check in device online/offline
2019-08-07 10:06:33 -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
4f735a651c
Added event callback functionality. EventManager now uses multiple mutexes to lock events, errors, callbacks, and downgradedThreads separately. Wrote single-threaded test for event callbacks.
2019-08-02 15:00:31 -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
655a483aee
Cleaned up icsneolegacy returns that use icsneo_settingsReadStructure
2019-07-30 10:29:42 -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
54b98ec9b4
Error downgrading now uses a map<threadid, bool>, and error downgrading is canceled during message callbacks
2019-07-29 15:16:35 -04:00
EricLiu2000
8c186f00cd
Added functionality to set blocking behavior of write
2019-07-24 14:57:06 -04:00
EricLiu2000
6f8d307850
Implemented thread specific error-downgrading to events and wrote corresponding unit test
2019-07-24 12:52:15 -04:00
EricLiu2000
42690d1f9a
Updated documentation, added multithreaded test with both events and errors for eventmanager
2019-06-28 11:11:58 -04:00
EricLiu2000
e3517767cb
Events are now removed purely in chronological order if overflowing
2019-06-27 18:04:59 -04:00
EricLiu2000
baa9404432
Went back to normal mutex because I forgot I reverted those
2019-06-27 16:02:31 -04:00
EricLiu2000
1d3b3359ca
Wrote more tests, fixed bug with eventmanager::get(size), optimized eventmanager adding and shrinking, prevented trying to add TooManyEvents
2019-06-27 15:50:22 -04:00
EricLiu2000
d0c6aba0fc
Revert "Changed list of events to vector, switched back to using lock_guard instead of shared/unique_locks"
...
This reverts commit 2dac03b3e5 .
2019-06-27 14:16:36 -04:00
EricLiu2000
2dac03b3e5
Changed list of events to vector, switched back to using lock_guard instead of shared/unique_locks
2019-06-27 13:42:02 -04:00
EricLiu2000
a9a2a978b8
Fixed multithreading issue with eventmanager
2019-06-27 13:20:13 -04:00
EricLiu2000
4923218d35
Separated tests into different files, added ResetInstance() method to EventManager
2019-06-26 11:30:24 -04:00
EricLiu2000
bb2d7c1265
Reversed nullptr device check
2019-06-25 17:46:59 -04:00
EricLiu2000
50dba62a89
Event refactor builds on Windows
2019-06-24 17:59:45 -04:00
EricLiu2000
878d9e6dde
Implemented threaded error handling in errormanager and fixed compile error
2019-06-21 16:14:52 -04:00
EricLiu2000
f9d88b4743
Upgraded the severity of some warnings to errors and cleaned up internal API error adding
2019-06-21 15:08:08 -04:00
EricLiu2000
cb6f88c6bb
Initial rework of internal management for overflowing errors
2019-06-21 11:18:24 -04:00
EricLiu2000
33ad0c1967
C++ error descriptions now distinguish between severity levels
2019-06-19 11:00:41 -04:00
EricLiu2000
12cb4c227a
icsneolegacy icsneoOpenNeoDevice return now checks success for setting polling message limit and enabling message polling too
2019-06-18 11:40:18 -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
255e1e2b90
Added more error logging
2019-06-13 16:01:35 -04:00
EricLiu2000
519e64fb17
Added error checking to functions called from Communication
2019-06-13 16:01:35 -04:00
EricLiu2000
a16f2843d8
Added error reporting to idevicesettings
2019-06-13 16:01:35 -04:00
EricLiu2000
2806c935f1
Added errors for DeviceCurrentlyOpen and DeviceCurrentlyClosed
2019-06-13 16:01:35 -04:00
EricLiu2000
903615dadd
Added icsneo_isOpen() functionality
2019-06-13 16:01:35 -04:00
Paul Hollinsky
ba7228d4ba
Embed version info into built DLLs
2019-05-30 13:17:55 -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
Paul Hollinsky
d1cd34fb24
Merge remote-tracking branch 'drebbe-intrepid/master' into timestamp
2019-05-06 12:01:09 -04:00
Paul Hollinsky
0b4ffdbaad
Merge branch 'master' of https://github.com/intrepidcs/libicsneo
2019-05-02 16:33:57 -04:00
Paul Hollinsky
6ffc364eba
Transmits now block when the buffer fills
2019-05-02 16:33:44 -04:00
Paul Hollinsky
bf89d6b7a4
Update the legacy API to more closely match the behavior of the icsneo40.dll
...
Fixes Issue #9
2019-04-23 16:47:52 -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
David Rebbe
9a83ec1822
Updated icsnVC40.h to latest v803 release.
...
Signed-off-by: David Rebbe <drebbe@intrepidcs.com>
2019-03-27 17:39:12 -04:00