summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2017-03-16Fix: wrong tested variable for socket.Romain Forlot1-2/+3
Change-Id: Ice2325441474f1a075140e13dfffa0261106dff7 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16C Header firstRomain Forlot1-1/+1
Change-Id: Ief8c66e99c689a362b645ad3b918d8b342ada59a Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Add necessary to be able to initialize diagnostic manager shims.Romain Forlot4-9/+23
We have to conform to functions signatures from isotp-c to have it working. Change-Id: I429def66f54e53277e87aa99e66292cdb47c1c5f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Reorder to fix warning at compilationRomain Forlot1-1/+1
Change-Id: I1e558720318d9251ddfbbf6bb66a0461aef98e4c Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Changing to a raw pointer can_bus_dev member and addRomain Forlot2-2/+7
a default constructor. It is needed to initialize configuration_t correctly as it allocate a diagnostic manager but do not initialize it unless it is needed later. There is no need to initialize it if we do not send and receive diagnostic requests. Change-Id: I3d52d1ea92454e7b065479a2f0dd54a291ddd991 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Fix: wrong signature due to reference discarding "const".Romain Forlot2-23/+26
Change-Id: I7dada9d01eb8619c3807647b6df378dd147bb7fb Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Fix: bugs in class due to the wrapping of C socketRomain Forlot2-7/+8
into a class. Added missing include and adjust methods signature. Change-Id: Id016b452e0b641a14482c288e4713acae941ee1d Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Fix: use of new objects and type conversion missing.Romain Forlot2-6/+6
Change-Id: I583ad536de619fed2be655a493299fe43cc65924 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16FormatRomain Forlot1-27/+27
Change-Id: Ie9159b039e468e511b497884816453093048aa80 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Added new cpp files.Romain Forlot1-3/+3
Change-Id: I7f8b524a1279267f0ebd94eef6ef72e2875a47f6 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16typoRomain Forlot1-1/+1
Change-Id: I62d9e858409b464dd69ebfae76ca73097fae560e Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Fix: include path (where I think to fix them...)Romain Forlot4-13/+15
Change-Id: Ib44693efc9347fc4fdf40a1748725d5191303199 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Fix: missed method declarationRomain Forlot1-1/+1
Change-Id: If44be94dfd847089d494088d33f7b6c7f5d9098e Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Better use a referenceRomain Forlot1-2/+2
Change-Id: Ie060009315c99919271ac706fdc1ab384e3d7218 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Respect the signature requested by uds-c lib.Romain Forlot2-3/+3
Change-Id: I7d7a96b45323f698e884c4db289370eec199d990 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Move some functions to configuration class.Romain Forlot6-53/+62
Change-Id: I87b1b6961206ae3848cf6aca367698218fe1523e Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Create getter/setter needed for can_signal_t class.Romain Forlot3-12/+117
Change-Id: I8253fcbe7edb6673d9f6bcf85d6109800a4cf6e8 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Fix: used new created classes.Romain Forlot3-5/+5
Change-Id: Ib0188ac952f64b3bc2203c0310a21de380c75854 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Added a static method to get used by Diagnostic managerRomain Forlot2-0/+32
that respect the requested signature. Change-Id: Id10215597d65ecaf280fe6252d78bc74a306958e Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Fix: wrong socket variable called.Romain Forlot1-1/+1
Change-Id: Ib09b084e7202d184abf73cf92fea4afbcf4acf47 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Typo and formating.Romain Forlot7-26/+25
Change-Id: I864a2fe7f974b0f2bf5000f55c2dc71ecf32a314 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Constructor making mandatory to pass a can_bus_dev_tRomain Forlot2-3/+3
instance to initialize it as it is reference. Change-Id: I0261a5e2fdca5a84fd736d7ceae837ff9156b935 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Misplaced test of rtr_flag bool and length assignationRomain Forlot1-5/+2
Mini simplification of the method... More incoming. Change-Id: I2e7c2c5226e33265591acc6c8bbbe5f5f670db18 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Fix: method to allocate a new can_message_t objectRomain Forlot2-69/+78
from a canfd_frame. A new constructor added ad-hoc. Change-Id: Id6b909666105da0c4885351db9291aa430d138f0 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Again change enum name and add "_t" suffix to getRomain Forlot3-21/+21
syntax coloration into IDE... Neat, isn't it ! Change-Id: Ieee2618336be80ddf97ccaa29bc83098a6463c56 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Use the new created class and their respectivesRomain Forlot1-7/+9
methods to get their attributes. Change-Id: Ib96031388356541615cd2c428d3ad1a73c79e215 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Use static method now as they are all static. No needRomain Forlot1-3/+1
to instanciate an object to decode now. Change-Id: Id9bf378642ad66b7b4f39d909678ecc5ebb756cc Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Change all old struct name to the new class.Romain Forlot9-37/+38
Change-Id: I8aa4430117c401182ef458a06a2aeb08957db1bb Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Forward declaration needed instead of include theRomain Forlot1-1/+2
whole file. Lighter. Change-Id: I14af5868679e5c65bda9a4395b040cc28af04059 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Change CanMessageFormat name to make itRomain Forlot3-19/+19
as the other type. Change-Id: I4b3ae3998175613458492a0f02cce06a576cbfa8 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Clean old C struct, now as C++ classRomain Forlot2-47/+22
Change-Id: Iba4c4a47b140c53d766c348064857069feefdb19 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Added missing method of the class.Romain Forlot1-20/+123
Change-Id: Ic03ec222e69efc7adde4680dc5612896eac562fe Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Make all class function as static to be accessibleRomain Forlot1-20/+18
without instance. Change-Id: I80fcf55010b81e6f3af6892adf2c351d502f50dd Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Poco-ification of CanSignal struct as can_signal_t classRomain Forlot1-93/+35
Change-Id: I1239b862b255efaefc459d4f9d0a93c6be6ba2cb Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Fix: declaration and implementation of needed methodsRomain Forlot2-1/+11
under their respective class as they were standalone before that. Change-Id: I3ca6fe68bb40f883106ddbe07db8f2dc7d4f618b Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Cleaning old can_bus_dev_t now implementedRomain Forlot4-162/+30
separatly Change-Id: I4529100f118afe25aee747d36a77dc5b533878a5 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh> Conflicts: src/can/can-bus.hpp
2017-03-16Make convert method static to get called at the returnRomain Forlot2-153/+80
statement of read. Also clean unsafe function, that can't be called separatly because they need to get called in a certain order. Change-Id: I5670f0cd1c0fdea4f228045b9124ecd60097ebb2 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Fix all doxygen comments about parameters.Romain Forlot10-94/+94
Change-Id: Idbe268d07ebf53a63c9543d9cca94ded34a29731 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Move "config" variable as global.Romain Forlot3-5/+6
Change-Id: I1760dce5ef5836c9392837f4a196382ee88dabd8 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh> Conflicts: src/configuration.hpp
2017-03-16Fix: wrong assignement of can_bus_t object.Romain Forlot3-3/+3
Fix: const function added by mistake. Change-Id: I69dc19922c9e48fc073f1a3e00dd243188110971 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Define predefined OBD2 signals by default.Romain Forlot2-26/+23
Change-Id: Ide948c64fe2085b98acf7cdb70e6baf7b6a669ed Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Miss removed header file includeRomain Forlot1-0/+5
Change-Id: Iea45260ff78fadced7c9eb3ccefbc05341be25e4 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Fix missing constructor declarationRomain Forlot1-0/+2
Change-Id: I22dcc2a52fcbe6e37c820fe378bfb7dbbea8c25b Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Separate methods declarations and implementations.Romain Forlot3-107/+143
Get out examples objects to test into another cpp that will be used to be the template for the futur generated code. Change-Id: Ic630478b5419e7a18e4e6446edbac7fbe68299b9 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh> Conflicts: src/configuration.hpp
2017-03-16Fix : wrong attribute typeRomain Forlot2-29/+21
Change-Id: I8a87c295d4d76a5551fbb67b04b9fee69644eb00 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Fix: missing method declarationRomain Forlot1-0/+1
Change-Id: Iac5872ffe9f4b26e7c966e5ea29516f193ba547d Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Remove now unused function that has moved into configuration classRomain Forlot1-4/+1
Change-Id: I1f16a7acb32407420b2c5f5deb5b815829b0b610 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Make a global variable to a configuration object.Romain Forlot3-7/+15
With afb interface, it will be the last global variable needed as it regroup all needed stuff to other class and functions. Change-Id: I3d82b6f748ff22a9a975d15ab9df51f63005737f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Remove moved functions into configuration classRomain Forlot2-27/+29
Change-Id: Ia8aa6a9f6211c2e040f53972ba689aecdeda9011 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-03-16Fix: wrong method signature.Romain Forlot1-19/+15
Change-Id: Id836fac13d66443c313403a572ab840eecb8321d Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>