summaryrefslogtreecommitdiffstats
path: root/src/can-bus.cpp
AgeCommit message (Collapse)AuthorFilesLines
2017-03-03change all genericName to generic_name. Now allRomain Forlot1-6/+6
objects use the same variable name Change-Id: I8a232bc8fd7e580bd8088e6b2ae7a90666ef9c62 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-03tbfRomain Forlot1-0/+1
Change-Id: I4e46542258b8dab0c0e266adddf9bfc7a4111376 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-02Clean up uneeded members and functionsRomain Forlot1-8/+0
Change-Id: Idc9ebe9cfc6e348c378c1489971600b8f125e6e1 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-02Fix: unsynchronization between queues.Romain Forlot1-35/+39
Ressources not enough protected with mutex, I extend the scope of the lock to make sure that event flow go through synchronously. Change-Id: I77a80ab69eb768a211c537e0f33580379832a465 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-02Debugging message cookRomain Forlot1-6/+6
Change-Id: If93bf9bf7c6e2f429a4313a7f6500ded950229c9 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-02Fix: multiple subscription and maintain subscribed_signals coherenceRomain Forlot1-8/+13
across usage. - Transmission of a reference instead of copy. - Don't use anymore iterator on subscribed_signals map Change-Id: I5e5b7b0bb8598be3bb0ec59c29418ee937ddcc9e Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-02Clean and imrove log messages.Romain Forlot1-6/+2
Change-Id: I77c74851ec436de0c7a7c47993badb7d1e2c01ca Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-01New way to return canfd_frame with now number of read bytes.Romain Forlot1-2/+2
This way, we can detect correctly the max data length and set the data correctly. Change-Id: I346df154df76dbd4a463d1fabfd9edd56faca506 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-01Fix: wrong format to display can_message_t informationRomain Forlot1-1/+1
Change-Id: I6c17c68d8e995022886750f2ef05348b544cbde5 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-01Wrong call to thread.join cause deadlock and thread termination.Romain Forlot1-3/+0
Positionning the controlling boolean value will be enough for now Change-Id: I28e2d175e23370746cc30c2403829ebdeec7c2bb Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-01Fix: miss 'if' brackets to get incomplete CAN frames correctlyRomain Forlot1-6/+7
Fix: displaying can message frame with hexa format. Change-Id: Iff658ac38f21a15945ed82509d4e291f0fda7503 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-01Fix: improve can_message readRomain Forlot1-19/+8
Change-Id: If0c52c6df3f68e9b79fb851d64a729946cac6ef6 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-01Delete for good obsolete codeRomain Forlot1-1/+1
Change-Id: Ic56fadcc7e6265072e4e3413f914b735b56e903d Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-28Implement a new method returning the can deviceRomain Forlot1-0/+5
map. Change-Id: Ie44bb825269034f9f071bd286c7830a77ba5c479 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-28Fix: can bus object life is now expanded and don'tRomain Forlot1-25/+17
die prematuraly. can_bus_handler object is now a pointer living forever. can_bus_dev_t object is now stored as a shared pointer into a variable member into can_bus_t. So everyone survive now. Change-Id: I52768dd7fe3c203a5f679f59afd1bcf330f3af35 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-28Fix: wrong argument passed to start_reading().Romain Forlot1-1/+1
Not needed to specify std::ref... Change-Id: I0e5ae02554f8a0f07ec1d40670b9b089453804e0 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-28Added debugging messages.Romain Forlot1-3/+8
Change-Id: I42d2576355f69ac167b170a2994c7360d8449fb7 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-28Make the thread function members of can_bus_t and can_bus_dev_t objects.Romain Forlot1-35/+123
Change-Id: I3cf06998c6ff6d859c7fdf6bf52a9b6ff061c556 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-02-28Re-arranging objects splitting all objects overRomain Forlot1-0/+363
separated files. Change-Id: Ifbdb2ea08704324e505a48ba3124df6f2af63c6b Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>