Commit Graph

23 Commits

Author SHA1 Message Date
Anton Gerasimov 9c812d5d7b Fix width of temporary variables 2018-09-11 19:25:07 +02:00
Anton Gerasimov 7835e17d98 Specify ISOTP message gap 2018-09-11 17:17:27 +02:00
Anton Gerasimov 94339fc887 Specify RX and TX IDs directly as it is done in RIOT 2018-09-03 18:45:01 +02:00
Anton Gerasimov b5ac81eeb6 Fix receiving multiframe packages 2017-12-22 16:53:36 +01:00
Anton Gerasimov 1a28f2f006 Add multiframe support 2017-12-20 19:29:45 +01:00
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 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 45a922c926 Silence a noisy log message. 2014-01-05 18:56:05 -05:00
Christopher Peplin ef06cb3a05 Move a few things about to make compiling with other projects possible. 2014-01-05 15:43:43 -05:00
Christopher Peplin a5e9107147 Split up functions in send/receive files for clarity. 2014-01-03 13:44: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 e3637d97ec Only mark handle as completed when fully received. 2014-01-02 15:28:52 -05:00
Christopher Peplin fe20a273bb Avoid hitting a NULL pointer when using callbacks. 2014-01-02 12:10:14 -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 10a35b0a7c Draft reworking of API. 2013-12-31 12:59:04 -05:00
Christopher Peplin f13267feab Use updated API for canutil library. 2013-12-29 15:29:08 -05:00
Christopher Peplin fb3c14776f Draft work using more generic bitfield functions. 2013-12-28 15:42:29 -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 451ee4faa4 Draft progress implementing single frame rx. 2013-12-27 19:04:27 -05:00