Commit Graph

28 Commits

Author SHA1 Message Date
OYTIS 2c99a9853d
Merge pull request #2 from advancedtelematic/bugfix/C89
Minor fixes to make compiler happy
2017-12-18 10:50:41 +01:00
Anton Gerasimov 72b9b05d82 Minor fixes to make compiler happy 2017-12-18 10:24:45 +01:00
Anton Gerasimov 1cae4bf63d Hide allocations behind an interface
Should make porting to bare-metal environments easier.

Signed-off-by: Anton Gerasimov <anton@advancedtelematic.com>
2017-12-08 14:44:45 +01:00
Zac Nelson ee24440b7c reduce max isotp message size. see OpenXC vi-firmware issue #375 https://github.com/openxc/vi-firmware/issues/375. (#5) 2016-10-05 10:17:23 -07:00
Zac Nelson 4e7375321a Add support for multi-frame responses (#4)
* first test with multi-frame. storing data in handler. still need to free memory since using malloc.

* hardcode the IsoTpMessage payload size. copy the full multi-frame response into a complete isotpMessage once all frames have been received. otherwise, the returned isotpMessage is not complete.

* remove unnecessary debug statements.

* do not receive multi-frame message if it is larger than the payload buffer size.

* update changelog with multi-frame support

* fix the changelog version for proper semantic versioning. oops.

* move pointer intialization for testing purposes.

* add tests for multi-frame.

* try latest version of check

* fix syntax for version install.

* fix tests. no longer check for malloc pointer (not supported in Travis version of check.h - just test that flow control message has not been sent.

* add IsoTpMessage field for multi_frame. Need this upstream for doing timeout updates.

* add test multi_frame field.
2016-09-14 09:52:13 -07:00
Christopher Peplin a8f4bf42ee Increase size of arb ID to uint32_t to fit extended IDs. 2014-02-27 15:53:19 -05:00
Christopher Peplin c01a88ba1e Add an option to control CAN frame padding (on by default).
Fixed #1.
2014-02-14 17:58:22 -05:00
Christopher Peplin 43fd60983e Use '\0' for NULL in c strings. 2014-01-07 00:16:57 -05:00
Christopher Peplin 08ac01d130 Enable warnings when compiling and fix a few. 2014-01-07 00:08:39 -05:00
Christopher Peplin 330358c978 Split up functions to rx CAN messages for rx and tx of ISO-TP. 2014-01-03 13:40:02 -05:00
Christopher Peplin 99dd20fc3d Test rx an empty CAN messages. 2014-01-03 13:21:18 -05:00
Christopher Peplin 64af0554cb Print full payload by giving it enough buffer. DOH. 2014-01-03 12:18:33 -05:00
Christopher Peplin fe5f39179f Attempt to print entire payload and fail. 2014-01-02 18:31:52 -05:00
Christopher Peplin 3b25a0491c Allocate ISO-TP message buffer on the stack. 2014-01-02 17:14:56 -05:00
Christopher Peplin e3637d97ec Only mark handle as completed when fully received. 2014-01-02 15:28:52 -05:00
Christopher Peplin 482c7eafcb Return completed rx messages instead of relying on callbacks. 2014-01-01 16:10:57 -05:00
Christopher Peplin 03c3696d34 Return completion status when receiving CAN frames. 2013-12-31 16:29:07 -05:00
Christopher Peplin 6bbc83bd1d Move some functions to main isotp.h file to simplify includes for now. 2013-12-31 16:12:36 -05:00
Christopher Peplin 10a35b0a7c Draft reworking of API. 2013-12-31 12:59:04 -05:00
Christopher Peplin bc7c0205d8 Don't use debug function directly in library. 2013-12-30 18:30:13 -05:00
Christopher Peplin f13267feab Use updated API for canutil library. 2013-12-29 15:29:08 -05:00
Christopher Peplin fd2f9c3b0d Encapsulate arb_id, payload and size into a data type. 2013-12-28 14:15:24 -05:00
Christopher Peplin b44a989049 Confirm CAN messages are built correctly. 2013-12-28 10:58:02 -05:00
Christopher Peplin 37a7e905f6 Test basic single frame sending. 2013-12-27 23:06:23 -05:00
Christopher Peplin 9fadf39098 Test basic rx of a single frame message. 2013-12-27 21:46:15 -05:00
Christopher Peplin 451ee4faa4 Draft progress implementing single frame rx. 2013-12-27 19:04:27 -05:00
Christopher Peplin 34a7c0ca08 Add skeleton tests for receiving and sending ISO-TP messages. 2013-12-27 18:28:53 -05:00
Christopher Peplin 9dafed6b7f Initial commit with blank structure. 2013-12-27 11:22:56 -05:00