src/low-level-can-generator.git
21 months agoAdd gitreview file for Nifty Needlefish branch needlefish
Jan-Simon Moeller [Fri, 5 Aug 2022 22:20:10 +0000 (00:20 +0200)]
Add gitreview file for Nifty Needlefish branch

Update the .gitreview file.

Bug-AGL: SPEC-4518
Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Change-Id: I50bb186849eec788a1d919b9edb63db52f71811b

3 years agoUpdate test JSON files 64/25364/1 10.91.0 10.92.0 10.93.0 11.91.0 11.92.0 12.90.0 12.90.1 12.91.0 12.92.0 12.93.0 13.93.0 koi/10.91.0 koi/10.92.0 koi/10.93.0 koi_10.91.0 koi_10.92.0 koi_10.93.0 lamprey/11.91.0 lamprey/11.92.0 lamprey_11.91.0 lamprey_11.92.0 marlin/12.90.0 marlin/12.90.1 marlin/12.91.0 marlin/12.92.0 marlin/12.93.0 marlin_12.90.0 marlin_12.90.1 marlin_12.91.0 marlin_12.92.0 marlin_12.93.0 needlefish/13.93.0 needlefish_13.93.0
Scott Murray [Wed, 30 Sep 2020 17:58:41 +0000 (13:58 -0400)]
Update test JSON files

Thomas Walzer pointed out that the JSON files in the tests
subdirectory no longer worked with the generator; the now required
version field has been added to them and the sample generated output
updated.

Bug-AGL: SPEC-3551

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: I667a0b08b41e488e7bca8582902fa5be08da5acb

3 years agoUpdate to match current binding expectations 49/25349/1 sandbox/walzert/low-level-can-generator
Scott Murray [Wed, 23 Sep 2020 20:07:53 +0000 (16:07 -0400)]
Update to match current binding expectations

Changes:
- Reworked header, footer, message structure definition, etc. to
  match the contents of the current generated files in the binding.
- To enable the above, added some code to derive the API name for
  the app controller CAPI macro from the name given for the message
  set in the JSON. The name is lower-cased and spaces converted to
  dashes, this matches all the examples in the generated files in
  the binding.
- Added logic to default message length to 8 if not set in JSON,
  this is required to match explicit checks and signal JSON changes
  in the binding.
- Replaced is_bigendian and is_signed fields with new sign and
  bit_sign_position fields in JSON parsing and generated signal
  output. The sign field value enum has been copied from the binding
  to provide a reference for the values.
- Update per-signal flags generation, to enable this updated flag
  #defines from binding's current can-message.hpp. Added a comment
  to document which flags are known to be used.
- Removed "package" from "all" target in Makefile, as it is attached
  to widget packaging rules that are not applicable for the
  generator, which is built for host or toolchain usage.
- Removed unused src/main.hpp header to avoid confusion.

Bug-AGL: SPEC-3551

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: I9ef3df0ebcfbddc23c789b50e1575fc42031970d

4 years agoAdd management of version and new decoder signature. 65/22265/2 8.99.1 8.99.2 8.99.3 8.99.4 8.99.5 9.99.1 9.99.2 9.99.3 9.99.4 icefish/8.99.1 icefish/8.99.2 icefish/8.99.3 icefish/8.99.4 icefish/8.99.5 icefish_8.99.1 icefish_8.99.2 icefish_8.99.3 icefish_8.99.4 icefish_8.99.5 jellyfish/9.99.1 jellyfish/9.99.2 jellyfish/9.99.3 jellyfish/9.99.4 jellyfish_9.99.1 jellyfish_9.99.2 jellyfish_9.99.3 jellyfish_9.99.4
Arthur Guyader [Thu, 29 Aug 2019 13:10:39 +0000 (15:10 +0200)]
Add management of version and new decoder signature.

This commit allows to generate a file according to the version.
And adds the wrapper function for new decoder between v1 and v2.

Bug-AGL : SPEC-2780

Change-Id: I169d5a8213d6a14e5d77b600e14b36f0878b3efe
Signed-off-by: Arthur Guyader <arthur.guyader@iot.bzh>
4 years agoChange enum type to flag and add iso tp protocol 64/22264/2
Arthur Guyader [Thu, 29 Aug 2019 13:10:15 +0000 (15:10 +0200)]
Change enum type to flag and add iso tp protocol

This commits changes all enum types to flag.
And adds management of iso tp protocol.

Bug-AGL : SPEC-2779

Change-Id: I84cb315a99b1b1913fd1bdb24ef388fa391dc742
Signed-off-by: Arthur Guyader <arthur.guyader@iot.bzh>
4 years agoAdd generator for boolean fields 63/22263/2
Arthur Guyader [Thu, 29 Aug 2019 13:06:52 +0000 (15:06 +0200)]
Add generator for boolean fields

Bug-AGL : SPEC-2779

Change-Id: Idaf74af197866152d9094941b44e7b752d0ccf80
Signed-off-by: Arthur Guyader <arthur.guyader@iot.bzh>
4 years agoAdd some modifications (space, new line, coma, float). 35/22035/2
Arthur Guyader [Wed, 31 Jul 2019 12:46:38 +0000 (14:46 +0200)]
Add some modifications (space, new line, coma, float).

This commit adds some modifications for code readability
and to remove compilation warnings in low can.

Signed-off-by: Arthur Guyader <arthur.guyader@iot.bzh>
Change-Id: Ia85f94125c1e9ff41cda60f027ab7213c8f378dc

4 years agoAdd some options for J1939 support 27/22027/1
Arthur Guyader [Tue, 30 Jul 2019 09:06:55 +0000 (11:06 +0200)]
Add some options for J1939 support

This commit add some options for the support of the J1939.

Signed-off-by: Arthur Guyader <arthur.guyader@iot.bzh>
Change-Id: I9baee6a7319c8e8effa988d940a67e45ab64496d

4 years agomain.cc: Fix the default decoder using "states" 01/21801/1 7.99.3 8.0.0 8.0.1 8.0.2 8.0.3 halibut/7.99.3 halibut/8.0.0 halibut/8.0.1 halibut/8.0.2 halibut/8.0.3 halibut_7.99.3 halibut_8.0.0 halibut_8.0.1 halibut_8.0.2 halibut_8.0.3
Romain Forlot [Mon, 1 Jul 2019 16:20:04 +0000 (18:20 +0200)]
main.cc: Fix the default decoder using "states"

This fix the decoder to use when a signal has states.

Bug-AGL: SPEC-2582

Change-Id: I9d0ddf23cc9ab4ca6f447b62a22482f2b772a027
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
5 years agoAdd gitreview 7.90.0 7.99.1 7.99.2 halibut/7.90.0 halibut/7.99.1 halibut/7.99.2 halibut_7.90.0 halibut_7.99.1 halibut_7.99.2
Jan-Simon Möller [Wed, 6 Feb 2019 15:53:54 +0000 (16:53 +0100)]
Add gitreview

Change-Id: I8abbf804d0b136c02f56025e1aa12c421c9c094c
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
5 years agoGet rid of usage of CMake module 85/19085/1 6.99.3 6.99.4 guppy/6.99.3 guppy/6.99.4 guppy_6.99.3 guppy_6.99.4
Romain Forlot [Wed, 19 Dec 2018 15:08:25 +0000 (16:08 +0100)]
Get rid of usage of CMake module

The CMake apps module isn't required here, this isn't a binding
or nothing to do with the Application Framework. Usage of the CMake
module impl property and commands that we don't want to be handled by
it like a default install directory.

Change-Id: Iba68b9e6802320069fda2f5a563536b39900dd3c
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
5 years agoAdds CAN FD flag on message object. 59/18659/3
Romain Forlot [Wed, 28 Nov 2018 12:49:08 +0000 (13:49 +0100)]
Adds CAN FD flag on message object.

Adds CAN FD flag on message object when generating CPP file for the
low-can service. So with this commit you are now able to use a new flags
in your JSON CAN message definitions. This will imply that messages
received from a certain CAN ID will be handled as CAN FD.

Bug-AGL: SPEC-1980

Change-Id: Ia5fb573711742591c068928aee914ba708c802df
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
5 years agoAbility to use custom encoder for CAN signals 93/18093/2 6.99.1 6.99.2 guppy/6.99.1 guppy/6.99.2 guppy_6.99.1 guppy_6.99.2
Romain Forlot [Tue, 20 Nov 2018 17:04:51 +0000 (18:04 +0100)]
Ability to use custom encoder for CAN signals

Adds the encoder header file that hold the default encoding functions

Bug-AGL: SPEC-1965

Change-Id: I13fe90b515cde04894ba45c9cce72477b56d924b
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
5 years agoMigrate app-templates to CMake module 05/17605/2
Romain Forlot [Tue, 23 Oct 2018 14:29:57 +0000 (16:29 +0200)]
Migrate app-templates to CMake module

Bug-AGL SPEC-1682

Change-Id: I040a1bbd51e4920ffd24f9b0db6611a1513d89e7
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoAdd boolean to set receive state of diagnostic message. 95/13795/1 flounder 5.99.1 5.99.2 5.99.3 5.99.4 5.99.5 5.99.6 5.99.7 6.0.0 6.0.1 6.0.2 6.0.3 6.0.4 6.0.5 6.90.0 flounder/5.99.1 flounder/5.99.2 flounder/5.99.3 flounder/5.99.4 flounder/5.99.5 flounder/5.99.6 flounder/5.99.7 flounder/6.0.0 flounder/6.0.1 flounder/6.0.2 flounder/6.0.3 flounder/6.0.4 flounder/6.0.5 flounder_5.99.1 flounder_5.99.2 flounder_5.99.3 flounder_5.99.4 flounder_5.99.5 flounder_5.99.6 flounder_5.99.7 flounder_6.0.0 flounder_6.0.1 flounder_6.0.2 flounder_6.0.3 flounder_6.0.4 flounder_6.0.5 guppy/6.90.0 guppy_6.90.0
Jonathan Aillet [Tue, 17 Apr 2018 07:48:28 +0000 (09:48 +0200)]
Add boolean to set receive state of diagnostic message.

Add boolean to set receive state at initialisation of a
diagnostic message object.

Bug-AGL: SPEC-1347

Change-Id: I5b9a1367f08441387664cd6d9ff53a1c23d0b4f7
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
6 years agoFix: git repo url in documentation.
Romain Forlot [Tue, 16 Jan 2018 08:21:20 +0000 (09:21 +0100)]
Fix: git repo url in documentation.

Change-Id: I5d428d553a9ec38e391ff49799fca08aab468dc3
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoChange default installation directory eel 4.99.1 4.99.2 4.99.3 4.99.4 4.99.5 5.0.0 5.0.1 5.0.2 5.0.3 5.1.0 eel/4.99.1 eel/4.99.2 eel/4.99.3 eel/4.99.4 eel/4.99.5 eel/5.0.0 eel/5.0.1 eel/5.0.2 eel/5.0.3 eel/5.1.0 eel_4.99.1 eel_4.99.2 eel_4.99.3 eel_4.99.4 eel_4.99.5 eel_5.0.0 eel_5.0.1 eel_5.0.2 eel_5.0.3 eel_5.1.0
Romain Forlot [Tue, 11 Jul 2017 10:06:50 +0000 (12:06 +0200)]
Change default installation directory

Change-Id: I78d0f0cfa27a17a5d951610b30b2d1bc8f70212e
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoFix wrong build deps
Romain Forlot [Mon, 10 Jul 2017 21:27:45 +0000 (23:27 +0200)]
Fix wrong build deps

Change-Id: I86b38949e15fffe5af237ff23f78238f41a3027b
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoChange default install directory of the executable
Romain Forlot [Mon, 10 Jul 2017 14:33:41 +0000 (14:33 +0000)]
Change default install directory of the executable

Change-Id: I07dccad3e66fde09651221371f0078d397af153b
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoFix Config & compile errors to get built in Yocto
Romain Forlot [Mon, 10 Jul 2017 13:28:59 +0000 (13:28 +0000)]
Fix Config & compile errors to get built in Yocto

Change-Id: Idea29459f2de40fbed7f5df11088ec11e5e6fd11
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoUpdating README
Romain Forlot [Tue, 13 Jun 2017 15:27:13 +0000 (17:27 +0200)]
Updating README

Change-Id: I6257a79b3f663c38a23d4c5400c53b4f70654999
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoImport CAN generator from low-level-can-service
Romain Forlot [Tue, 13 Jun 2017 15:20:05 +0000 (17:20 +0200)]
Import CAN generator from low-level-can-service

Also use the app-templates CMake helpers.

Change-Id: I034e5efa9baa0f686a081f60df5c3588e4b3bd51
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoInitial empty repository
Jan-Simon Moeller [Mon, 12 Jun 2017 08:54:17 +0000 (08:54 +0000)]
Initial empty repository