Skip to content

Commit 17a7a68

Browse files
committed
Release v3.0
Squashed commit of the following: commit 023fd99 Author: astand <ast.and@bk.ru> Date: Mon Oct 9 16:11:57 2023 +0300 Set version v3.0 commit 1229bd9 Author: astand <ast.and@bk.ru> Date: Tue Aug 15 22:27:22 2023 +0300 Changed include files quatation (quotes instead of angle brackets) Added empty frame to be remove from driver in next commit Frames with no signals are almost fully ignored New features regarding DLC handling, initial byte value Added more explicit type casting commit cc7b413 Author: astand <ast.and@bk.ru> Date: Wed May 3 22:40:35 2023 +0200 New release notes format, style config in file. Fixed readme Include stdint before using uint8_t Fix Assertion '!empty()' failed Fix Assertion '__pos <= size()' failed Fixes from PR#25 updated commit 4823582 Author: astand <ast.and@bk.ru> Date: Fri Aug 5 11:25:04 2022 +0300 New readme 1st edition. Readme update. commit 0553e92 Author: astand <ast.and@bk.ru> Date: Sun Feb 26 15:39:50 2023 +0100 Unique pointers removed. commit b73bd36 Author: astand <ast.and@bk.ru> Date: Sun Feb 26 14:54:04 2023 +0100 Comment fixes. commit 3cd9bb8 Author: astand <ast.and@bk.ru> Date: Mon Jan 30 20:17:41 2023 +0100 Style and naming improvements. commit 962d6ed Merge: 3961129 f419459 Author: astand <ast.and@bk.ru> Date: Thu May 4 21:10:16 2023 +0200 Merge release v2.9 back commit 3961129 Author: astand <ast.and@bk.ru> Date: Fri Jan 27 22:28:17 2023 +0100 Refactored ptr_double. commit 1f47c93 Author: astand <ast.and@bk.ru> Date: Fri Jan 27 22:20:20 2023 +0100 Build fixes (v2.8). commit 5648e4a Author: Alex Ch <axch@mail.ru> Date: Wed Jan 25 21:04:58 2023 +0300 prt_double fix (astand#21) * prt_double fix (for e.g. '-20.47') * generator updated * Styling and doxy fixes * astyle script corrected * RELEASES file updated * Rebased with master * DBC line test fixed Co-authored-by: Alexey Chernobaev <aachernobaev@sberautotech.ru> commit 286b76c Author: astand <ast.and@bk.ru> Date: Wed Jan 18 20:58:10 2023 +0100 Style script handles 'src' directory only commit 17218df Author: astand <ast.and@bk.ru> Date: Tue Jan 17 22:17:07 2023 +0100 Fixed bug in prt_double commit b89d2ee Author: astand <ast.and@bk.ru> Date: Sun Jan 15 14:55:58 2023 +0100 Fixed floating parsing, better printing, removed duplication. commit d63b36a Author: astand <ast.and@bk.ru> Date: Thu Sep 29 22:40:32 2022 +0300 Fixed long line reading from istream. commit 9fbe4fd Author: Astakhov Andrey <ast.and@bk.ru> Date: Tue Jul 26 22:51:21 2022 +0300 New monitor impl (astand#14) * Added build configuration for generated files. * Hash and SysTick monitor function wrapped to macros. * Release editing. App version printing. commit 5504578 Merge: 4c4bf72 f93b297 Author: Astakhov Andrey <ast.and@bk.ru> Date: Sun Jul 24 23:45:28 2022 +0300 Merge pull request astand#13 from astand/gen-options Optional sources generation commit f93b297 Author: astand <ast.and@bk.ru> Date: Sun Jul 24 23:44:55 2022 +0300 Update release notes. commit d95209a Author: astand <ast.and@bk.ru> Date: Sun Jul 24 23:37:24 2022 +0300 Fixed astyle script. commit 630e4eb Author: astand <ast.and@bk.ru> Date: Sun Jul 24 23:36:15 2022 +0300 Added script to remove all generated code. commit aad15d4 Author: astand <ast.and@bk.ru> Date: Sun Jul 24 23:36:01 2022 +0300 Added option to disable some sources generation. commit 54ff5c0 Author: astand <ast.and@bk.ru> Date: Sun Jul 24 23:01:27 2022 +0300 Extended bitext test. commit f8848a3 Author: astand <ast.and@bk.ru> Date: Sat Jul 23 21:28:19 2022 +0300 Removed unuseful things. commit c05ee54 Author: astand <ast.and@bk.ru> Date: Sat Jul 23 17:12:25 2022 +0300 Added versions to FS gen config. commit 2ae8673 Author: astand <ast.and@bk.ru> Date: Sat Jul 23 16:52:47 2022 +0300 Removed overhead in fs-creator. commit 792423e Author: astand <ast.and@bk.ru> Date: Sat Jul 23 16:33:24 2022 +0300 Added tests for bitext function (from gen code). commit e0b0d41 Author: astand <ast.and@bk.ru> Date: Sat Jul 23 15:49:46 2022 +0300 Small enhancement, commit 0f95aae Author: astand <ast.and@bk.ru> Date: Thu Jul 21 22:19:26 2022 +0300 Tests updated. commit e3d732f Author: astand <ast.and@bk.ru> Date: Thu Jul 21 22:06:31 2022 +0300 New config in new config parser class. commit 92d1b94 Author: astand <ast.and@bk.ru> Date: Wed Jul 20 23:39:22 2022 +0300 Arguments parsing in separated class. commit b6cb000 Author: astand <ast.and@bk.ru> Date: Tue Jul 19 11:39:31 2022 +0300 New generation options are introduced in help message. commit 4c4bf72 Author: astand <ast.and@bk.ru> Date: Wed Jul 20 00:16:42 2022 +0300 Added GTEST support. commit 677efdf Merge: f986286 322becf Author: Astakhov Andrey <ast.and@bk.ru> Date: Tue Jul 19 11:04:37 2022 +0300 Merge pull request astand#12 from astand/fix-opt Structural refactoring and changes in fmon-* source code for making fmon-* driver's support a bit easier. commit 322becf Author: astand <ast.and@bk.ru> Date: Sat Jul 2 21:05:09 2022 +0300 Updates in fmon-* source code, some inner optimizations etc. Some service level improvements. New fmon generator and fmon model. Config section for MONO fmon mode. FS splitted to gen and file settings. Direct appending to fwriter. Removed useless methods. FileWriter API update. Mon generator with new FWriter API. Update in FWriter API. All users use new API. Added main header with empty lines in comments of some signals. Ignore vscode config. Driver compilation config printer as separated driver. AStyle format to all sources. Update realese notes. commit f986286 Merge: 9100dba 2e104d4 Author: Astakhov Andrey <ast.and@bk.ru> Date: Sat May 7 21:05:08 2022 +0300 Merge pull request astand#10 from astand/valtables Issue#9 and other things commit 2e104d4 Author: astand <ast.and@bk.ru> Date: Sat May 7 21:01:06 2022 +0300 Config update for windows using. commit 6fbb51b Author: astand <ast.and@bk.ru> Date: Sat May 7 21:00:48 2022 +0300 Fixed incompleted square brakets migration. commit 3319138 Author: astand <ast.and@bk.ru> Date: Sat May 7 20:52:09 2022 +0300 Release notes editing. commit 4c13d07 Author: astand <ast.and@bk.ru> Date: Sat May 7 20:29:07 2022 +0300 Test DBC generation with square brakets includes. commit dcce732 Author: astand <ast.and@bk.ru> Date: Sat May 7 20:28:45 2022 +0300 Files which is presumed to be in __include__ in square brackets. commit 1d163c6 Author: astand <ast.and@bk.ru> Date: Sat May 7 13:21:25 2022 +0300 WTF was that? commit 500427f Author: astand <ast.and@bk.ru> Date: Sat May 7 13:21:07 2022 +0300 Minor style change. commit a14407a Author: astand <ast.and@bk.ru> Date: Sat May 7 13:20:28 2022 +0300 Added test on binutil souce code version (compare with main lib). commit 556c072 Author: astand <ast.and@bk.ru> Date: Sat May 7 12:44:32 2022 +0300 Added test on source code versions (main driver h/c). commit 739870b Author: astand <ast.and@bk.ru> Date: Sat May 7 12:17:55 2022 +0300 Remove extra empty comment line generation. commit 230933f Author: astand <ast.and@bk.ru> Date: Sat May 7 12:07:25 2022 +0300 Minor improvement in signal's info comments. commit e4fd53f Author: astand <ast.and@bk.ru> Date: Sat May 7 11:58:10 2022 +0300 Added more info about sign extending function. commit 013b993 Author: astand <ast.and@bk.ru> Date: Sat May 7 11:57:55 2022 +0300 Test DBC with new val table macros generated. commit 6661cdd Author: astand <ast.and@bk.ru> Date: Sat May 7 11:02:17 2022 +0300 Added value table's macros printing to main driver header. commit 961c15b Author: astand <ast.and@bk.ru> Date: Sat May 7 11:01:19 2022 +0300 Added more specific value tables handling. commit cb9137e Author: astand <ast.and@bk.ru> Date: Fri May 6 22:42:51 2022 +0300 Main dbc driver name stripped by C-name checker. commit 3eff250 Author: astand <ast.and@bk.ru> Date: Fri May 6 22:41:47 2022 +0300 Added helper for valid C-identifier stripper. commit 9100dba Author: astand <ast.and@bk.ru> Date: Fri Mar 11 23:10:16 2022 +0300 Removed unused line. commit 323d2a8 Author: astand <ast.and@bk.ru> Date: Fri Mar 11 23:06:29 2022 +0300 Added test DBC CAN matrix and generation scripts. commit 45209db Author: astand <ast.and@bk.ru> Date: Fri Mar 11 22:50:17 2022 +0300 Gitignore and gitattribute unused content removed. commit 75b5813 Author: astand <ast.and@bk.ru> Date: Sat Feb 19 23:21:41 2022 +0300 Changelog editing. commit 634b4b7 Author: astand <ast.and@bk.ru> Date: Sat Feb 19 23:17:11 2022 +0300 Added signature extension for signed signal types. commit ad43ded Author: astand <ast.and@bk.ru> Date: Sat Feb 19 23:16:34 2022 +0300 Target signals type selection optimized. commit 83d894d Author: astand <ast.and@bk.ru> Date: Wed Feb 2 16:10:35 2022 +0300 Updated docs. commit bdef03c Author: astand <ast.and@bk.ru> Date: Wed Feb 2 11:25:02 2022 +0300 Minor fixes. commit b29a47a Author: astand <ast.and@bk.ru> Date: Wed Feb 2 11:18:16 2022 +0300 Version update (v2.0). commit f470bbc Author: astand <ast.and@bk.ru> Date: Wed Feb 2 11:18:09 2022 +0300 Change way of passing calling arguments. commit 7d42aec Author: astand <ast.and@bk.ru> Date: Wed Feb 2 09:28:07 2022 +0300 Explicit cast from int64 to uint32. commit 196b17d Author: astand <ast.and@bk.ru> Date: Wed Feb 2 00:02:39 2022 +0300 Fixed error in with bitutil wrong dir generation. commit 770bb9b Author: astand <ast.and@bk.ru> Date: Tue Feb 1 22:15:23 2022 +0300 Added filter for local test infrustructure. commit 57f3863 Author: astand <ast.and@bk.ru> Date: Tue Feb 1 22:15:04 2022 +0300 Simple fix problem with too long lines. commit 5d9a5a7 Author: astand <ast.and@bk.ru> Date: Mon Jan 24 11:37:19 2022 +0300 Changelog editing. commit d199361 Author: astand <ast.and@bk.ru> Date: Mon Jan 17 21:50:24 2022 +0300 Added astyle bin and format script. commit 8526c87 Author: astand <ast.and@bk.ru> Date: Mon Jan 17 09:11:02 2022 +0300 Enhanced directory structure for generated files. commit ebe6786 Author: astand <ast.and@bk.ru> Date: Fri Dec 17 23:32:32 2021 +0300 Fixed extra line for ValTable parsed lines. commit f80fb2a Author: Astakhov Andrey <quater873@gmail.com> Date: Tue Nov 9 21:50:22 2021 +0300 Update README.md commit 25eae41 Author: Astakhov Andrey <quater873@gmail.com> Date: Tue Nov 9 14:45:37 2021 +0300 Update README.md commit 4e3f22f Author: astand <ast.and@bk.ru> Date: Tue Nov 9 13:58:23 2021 +0300 Updated readme. commit 2938aa6 Author: astand <ast.and@bk.ru> Date: Tue Nov 9 10:14:23 2021 +0300 Releases updated for v1.9. commit 3d3605f Author: astand <ast.and@bk.ru> Date: Tue Nov 9 09:43:55 2021 +0300 All sources processed by code style tool. commit 2f22c2e Author: astand <ast.and@bk.ru> Date: Tue Nov 9 09:40:12 2021 +0300 Fixed: closing comment in -config.h, minor code style. commit 3b6b7bc Author: astand <ast.and@bk.ru> Date: Mon Nov 1 22:14:28 2021 +0300 Release updated for v1.8. commit 906b274 Author: astand <ast.and@bk.ru> Date: Mon Oct 25 20:58:58 2021 +0300 Fixed wrong way of rewriting CSM signal. commit 48556b3 Author: astand <ast.and@bk.ru> Date: Sun Oct 10 21:35:48 2021 +0300 Releases updated for v1.7. commit c5bbd7f Author: astand <ast.and@bk.ru> Date: Sun Oct 10 21:32:55 2021 +0300 Added suppot for multi Transmiters. commit 02d1e28 Author: astand <ast.and@bk.ru> Date: Sun Oct 10 21:31:36 2021 +0300 Fixed potential bug. Missing node adding on RecS item matching. commit 9af49b0 Author: astand <ast.and@bk.ru> Date: Sun Oct 10 21:30:01 2021 +0300 Changes on style guide. commit a2c0079 Author: astand <ast.and@bk.ru> Date: Thu Sep 9 22:50:54 2021 +0300 Releases updated for v1.6. commit f918d01 Author: astand <ast.and@bk.ru> Date: Thu Sep 9 22:45:43 2021 +0300 Fixed issue with 1 frame in RX struct. commit 6439bcc Author: astand <ast.and@bk.ru> Date: Wed Sep 8 23:19:21 2021 +0300 Added optional binutil generation for each node in DBC. commit 6481e7e Author: astand <ast.and@bk.ru> Date: Thu Aug 26 23:38:09 2021 +0300 Fixed some issues. commit 75f0193 Author: astand <quater873@gmail.com> Date: Tue Jul 13 21:56:13 2021 +0300 Removed test info. Edited README.md. commit ff67c1f Author: astand <ast.and@bk.ru> Date: Sun Jul 11 22:07:48 2021 +0300 Hotfixed README layout. commit 002c86b Author: astand <ast.and@bk.ru> Date: Sun Jul 11 22:04:23 2021 +0300 v1.3 commit 2ba501e Author: astand <ast.and@bk.ru> Date: Sun Jul 11 22:04:10 2021 +0300 Added template file generation. Refactored config comment text. commit f604b88 Author: astand <ast.and@bk.ru> Date: Sun Jul 11 17:59:17 2021 +0300 Readme updated. commit e7a4cab Author: astand <ast.and@bk.ru> Date: Sun Jul 11 13:19:53 2021 +0300 v1.2 commit 0ad29f6 Author: astand <ast.and@bk.ru> Date: Sun Jul 11 13:19:39 2021 +0300 Added LICENSE and README. commit 0628848 Author: astand <ast.and@bk.ru> Date: Sun Jul 11 13:18:20 2021 +0300 Improved help message text. commit 64745a1 Author: astand <ast.and@bk.ru> Date: Sun Jul 11 12:20:54 2021 +0300 Application executable name changed - coderdbc. commit 3376c58 Author: astand <ast.and@bk.ru> Date: Sat Jul 10 17:10:18 2021 +0300 Fixed type casting warning. commit 84601a9 Author: astand <ast.and@bk.ru> Date: Sat Jul 10 17:05:18 2021 +0300 Removed useless files and settings. commit 359da55 Author: astand <ast.and@bk.ru> Date: Sat Jul 10 15:41:38 2021 +0300 Added help message. commit eca35e0 Author: astand <ast.and@bk.ru> Date: Sat Jul 10 15:22:25 2021 +0300 Project became executable (CLI). commit 1d168d9 Author: astand <ast.and@bk.ru> Date: Sat Jul 10 15:21:30 2021 +0300 Added option for rewriting source output files. commit 8456d4c Author: astand <ast.and@bk.ru> Date: Sat Jul 10 15:20:45 2021 +0300 Fixed windows related issues. commit 776a05a Author: astand <ast.and@bk.ru> Date: Sat May 15 12:59:49 2021 +0300 Added DBC version info parsing. commit e06f777 Author: astand <ast.and@bk.ru> Date: Sun Apr 4 13:40:01 2021 +0300 Added start info as user defined text. commit 12c735f Author: astand <ast.and@bk.ru> Date: Thu Apr 1 20:13:05 2021 +0300 Fixed value table first pair skipping. commit 1ff121b Author: astand <ast.and@bk.ru> Date: Tue Mar 30 21:38:02 2021 +0300 Fixed GetFrameHash call syntax. commit abfcc41 Author: astand <ast.and@bk.ru> Date: Sat Mar 27 14:17:25 2021 +0300 True fix issue with big comment section. commit b714eb0 Author: astand <ast.and@bk.ru> Date: Sun Mar 14 22:50:22 2021 +0300 Fixed issue with big comment and localization. commit 2ccb121 Author: astand <ast.and@bk.ru> Date: Sat Mar 6 19:10:51 2021 +0300 Fixed macros for *_phys <-> *_ro signal conversion. commit d15afe6 Author: astand <ast.and@bk.ru> Date: Thu Mar 4 13:08:48 2021 +0300 Updated comment text in drv_conf.h file. commit b5a687b Author: astand <ast.and@bk.ru> Date: Thu Mar 4 13:08:31 2021 +0300 Fixed integer x = ***_toS(x) issue. Added postfix *_ro to non simple signals. commit 43730ed Author: astand <ast.and@bk.ru> Date: Thu Mar 4 12:33:20 2021 +0300 Changed comments in gen code. commit 1e837ce Author: astand <ast.and@bk.ru> Date: Thu Mar 4 12:32:55 2021 +0300 Fixed issue when DLC is less then actual Message layout takes. commit b67759b Author: astand <ast.and@bk.ru> Date: Sun Feb 28 16:03:41 2021 +0300 GetSystemTick func name. commit ab5ccec Author: astand <ast.and@bk.ru> Date: Thu Feb 18 22:19:48 2021 +0300 Fixed grammar errors. commit 0cc9b3e Author: astand <ast.and@bk.ru> Date: Wed Feb 17 14:46:17 2021 +0300 Removed cmake dir. commit 60abfec Author: astand <ast.and@bk.ru> Date: Wed Feb 17 14:13:04 2021 +0300 Added template ***-config.h generation. commit cf4ac28 Author: astand <ast.and@bk.ru> Date: Wed Feb 17 11:56:42 2021 +0300 Simple support for multiplexed signals. commit b952fab Author: astand <ast.and@bk.ru> Date: Wed Feb 17 10:48:37 2021 +0300 Fixed issue with comment text for message. commit 051df8e Author: astand <ast.and@bk.ru> Date: Wed Feb 17 10:48:17 2021 +0300 Fixed value table code printing issue. commit c369336 Author: astand <ast.and@bk.ru> Date: Wed Feb 17 10:38:43 2021 +0300 resplit has more param - type of pslit strategy. (was only NOT matched). commit b3af676 Author: astand <ast.and@bk.ru> Date: Sun Feb 14 00:18:39 2021 +0300 Added cmake building. commit 4fd5116 Author: astand <ast.and@bk.ru> Date: Sat Feb 13 23:48:24 2021 +0300 Added util source print. commit c0bc4b1 Author: astand <ast.and@bk.ru> Date: Wed Feb 10 20:01:58 2021 +0300 Fixed minor issues (warnings). commit 147994a Author: astand <ast.and@bk.ru> Date: Wed Feb 10 19:50:20 2021 +0300 Removed unused code. commit 00748b3 Author: astand <ast.and@bk.ru> Date: Wed Feb 10 19:48:11 2021 +0300 Added util header print. Some additional improvements. commit ad787bc Author: astand <ast.and@bk.ru> Date: Wed Feb 10 12:14:09 2021 +0300 Added first variant of util generator. commit bc72a4f Author: astand <ast.and@bk.ru> Date: Wed Feb 10 10:18:36 2021 +0300 Formatter function for printf. commit 9e400db Author: astand <ast.and@bk.ru> Date: Sun Feb 7 17:49:35 2021 +0300 On ubuntu getline puts (or shows) '\r' at the end of line. commit 9cd3049 Author: astand <ast.and@bk.ru> Date: Sun Feb 7 17:48:36 2021 +0300 Fixed some issues. commit 79fc48e Author: astand <ast.and@bk.ru> Date: Sun Feb 7 16:41:05 2021 +0300 Fixed comment printing. commit 0947ebf Author: astand <ast.and@bk.ru> Date: Sat Feb 6 14:50:38 2021 +0300 Added CSM calc and pack in both Pack functions. commit 6798987 Author: astand <ast.and@bk.ru> Date: Wed Feb 3 18:53:47 2021 +0300 Added CSM check in unpack function. commit e56d43c Author: astand <ast.and@bk.ru> Date: Wed Feb 3 18:41:18 2021 +0300 Added Checksum signal detection. commit a7d6cf0 Author: astand <ast.and@bk.ru> Date: Wed Feb 3 17:01:54 2021 +0300 Common refactoring and bug fix (field width). commit d7fdcaf Author: astand <ast.and@bk.ru> Date: Wed Feb 3 16:59:49 2021 +0300 Added auto rolling handling code. commit 362a4d1 Author: astand <ast.and@bk.ru> Date: Wed Feb 3 16:57:30 2021 +0300 Removed empty phys macro in pack functions. commit 69e9687 Author: astand <ast.and@bk.ru> Date: Sun Jan 31 23:47:51 2021 +0300 Added changed for Linux building. commit a719f72 Author: astand <quater873@gmail.com> Date: Sun Jan 31 18:58:44 2021 +0300 Added fmon-source file generation. commit e634227 Author: astand <quater873@gmail.com> Date: Sun Jan 31 18:37:08 2021 +0300 Added fmon-header file generation. commit 25ba556 Author: astand <quater873@gmail.com> Date: Sun Jan 31 17:46:19 2021 +0300 Source files filling moved to dedicated functions. commit d6b8c46 Author: astand <quater873@gmail.com> Date: Sun Jan 31 17:35:25 2021 +0300 Small refactoring. commit ba88964 Author: astand <quater873@gmail.com> Date: Mon Jan 25 20:55:01 2021 +0300 Fixed comment style. CYC value bug. commit 950ed79 Author: astand <quater873@gmail.com> Date: Mon Jan 25 20:53:37 2021 +0300 Fixed warning on unused param (dlc) in Unpack function. commit bd87a48 Author: astand <quater873@gmail.com> Date: Mon Jan 25 13:17:53 2021 +0300 Fixed generator formatting bugs. commit 22ea2f1 Author: astand <quater873@gmail.com> Date: Mon Jan 25 13:17:35 2021 +0300 Fixed bug in sign of sigfloat type signal. commit 2cd8af4 Author: astand <quater873@gmail.com> Date: Mon Jan 25 11:32:02 2021 +0300 Added "*_phys" sigs and auto toS/fromS conversion. commit e95d50a Author: astand <quater873@gmail.com> Date: Mon Jan 25 11:31:15 2021 +0300 Fixed "fromS" macro - type cast must be skipped. commit d4e1603 Author: astand <quater873@gmail.com> Date: Mon Jan 25 11:30:17 2021 +0300 Added more signal type class (3 classes for now). commit 11426cc Author: astand <ast.and@bk.ru> Date: Thu Jan 21 21:53:17 2021 +0300 Added print toS and fromS macros. commit 3d57bbe Author: astand <ast.and@bk.ru> Date: Thu Jan 21 21:51:59 2021 +0300 Do not make signal conversation inside unpack function. commit b8ad3cb Author: astand <ast.and@bk.ru> Date: Thu Jan 21 21:51:24 2021 +0300 Helpers added. commit 4c18e40 Author: astand <ast.and@bk.ru> Date: Thu Jan 21 21:50:36 2021 +0300 Fixed minor issues. commit bdd4061 Author: astand <ast.and@bk.ru> Date: Thu Jan 21 17:26:33 2021 +0300 Signal type detection refactored. commit 981b25a Author: astand <ast.and@bk.ru> Date: Thu Jan 21 11:49:30 2021 +0300 Added 2-Pack functions bodies. commit 1557550 Author: astand <ast.and@bk.ru> Date: Mon Jan 11 20:37:43 2021 +0300 Basic struct and unpack func in -c main source code. commit bf0ed04 Author: astand <ast.and@bk.ru> Date: Mon Jan 11 20:10:42 2021 +0300 Fs creator keeps lowcase drvname in separated field. commit 246a2b9 Author: astand <ast.and@bk.ru> Date: Mon Jan 11 20:09:16 2021 +0300 Style format. commit 30edc79 Author: astand <ast.and@bk.ru> Date: Mon Jan 11 20:08:53 2021 +0300 Renamed variable for clarificatin. commit c7ae93e Author: astand <ast.and@bk.ru> Date: Mon Jan 11 20:08:30 2021 +0300 Fixed unpack sig format bug. commit ff267a4 Author: astand <quater873@gmail.com> Date: Mon Jan 11 16:58:20 2021 +0300 PrintF refactored completely. commit b0856e0 Author: astand <quater873@gmail.com> Date: Mon Jan 11 16:46:14 2021 +0300 Using fsd filelds for #ifdef selection. commit fc9663a Author: astand <ast.and@bk.ru> Date: Sun Dec 13 01:08:31 2020 +0300 Added separated common attributes creator. commit 74b4b2d Author: astand <ast.and@bk.ru> Date: Sat Dec 12 00:40:04 2020 +0300 Added printF optimization. commit 98c8eda Author: astand <ast.and@bk.ru> Date: Sat Dec 12 00:30:42 2020 +0300 Added Functions prototypes printing. commit c620841 Author: astand <ast.and@bk.ru> Date: Fri Dec 11 23:54:15 2020 +0300 Added mon1 field if defined setting. commit 2a2ff62 Author: astand <ast.and@bk.ru> Date: Mon Dec 7 12:58:05 2020 +0300 Added c++17 in project option. commit 14f7017 Author: astand <ast.and@bk.ru> Date: Mon Dec 7 12:57:33 2020 +0300 Added part of main .h file writer. Added filewriter. commit 7b13500 Author: astand <ast.and@bk.ru> Date: Thu Nov 26 22:17:48 2020 +0300 Added minimal struct of main code generator. commit 26cf3f3 Author: astand <ast.and@bk.ru> Date: Thu Nov 26 22:12:57 2020 +0300 SigPrinter minor refactoring. Income Msgs as const. commit 44e2db2 Author: astand <ast.and@bk.ru> Date: Thu Nov 26 14:45:56 2020 +0300 Added offset calculation in to_signal expression. commit 4915ed1 Author: astand <ast.and@bk.ru> Date: Thu Nov 26 11:58:18 2020 +0300 Added core signals/message expression printer code. commit 45a85ac Author: astand <ast.and@bk.ru> Date: Thu Nov 26 10:12:28 2020 +0300 Added sig-expression and sig-printer base code. commit 6350af4 Author: astand <ast.and@bk.ru> Date: Thu Nov 26 10:11:47 2020 +0300 Code dir migration. commit ab769a9 Author: astand <ast.and@bk.ru> Date: Sun Nov 22 22:30:17 2020 +0300 Added value table parsing. commit 7bd24c5 Author: astand <ast.and@bk.ru> Date: Sat Nov 21 22:44:01 2020 +0300 Added basic dbcscanner core code.
1 parent f419459 commit 17a7a68

34 files changed

+1052
-856
lines changed

README.md

+51-71
Original file line numberDiff line numberDiff line change
@@ -1,97 +1,77 @@
1-
# CODERDBC
1+
# CODERDBC
22

3-
## What is it
4-
5-
CLI utilty for generating C code from dbc (CAN matrix) files
6-
7-
## Build and run
8-
9-
This manual works on Ubuntu 20.04 and Windows 10. You need to ensure that your system has
10-
C++ compile and builing toolchain (**c++17**)
11-
12-
To build coderdbc you need to make next steps:
13-
14-
1 install cmake
15-
16-
2 download source code:
17-
18-
`git clone https://github.com/astand/c-coderdbc.git coderdbc`
19-
20-
3 goto source code directory:
21-
22-
`cd coderdbc`
23-
24-
4 run cmake configuration to 'build' directory:
25-
26-
`cmake -S src -B build`
27-
28-
5 run cmake build:
29-
30-
`cmake --build build --config release`
31-
32-
6 goto to build directory and run:
33-
34-
`cd build`
35-
36-
`./coderdbc`
37-
38-
Call without argument will print instruction how to pass DBC file for generation
39-
40-
## Driver functionality description
41-
42-
The full pack of source code (both generated and manually edited) will be looked this
43-
(presuming that the dbc driver name is "ecudb"):
3+
Coderdbc is a CLI utility for generating C code from DBC CAN matrix files
4+
5+
### Features
6+
- ***Pack*** and ***Unpack*** functions for conversion signals to CAN payload raw data and vice verse
7+
- ***Node based*** Receive function _(each node (ECU) has its own ***Receive*** function according to its DBC configuration)_
8+
- Automation on monitoring functions: CRC, counter and missing tests
9+
- Optional source code generation _(the generation of readonly and configuration files can be avoided)_
10+
- Flexible setup via driver configuration _(see comments in source code for details)_
11+
12+
## Build and run
13+
14+
For building project you need to have cmake and c++ development toolkit in your system
15+
1 download source code:
16+
```sh
17+
git clone https://github.com/astand/c-coderdbc.git coderdbc
18+
```
19+
Go to the source code directory:
20+
```sh
21+
cd coderdbc
22+
```
23+
Run cmake configuration to 'build' directory:
24+
```sh
25+
cmake -S src -B build
26+
```
27+
Run cmake build:
28+
```sh
29+
cmake --build build --config release
30+
```
31+
Go to the build directory and run:
32+
```sh
33+
cd build
34+
./coderdbc --help
35+
```
36+
37+
Help information with main instructions about using the tool will be printed
38+
39+
## Driver functionality description
40+
41+
The source code package includes the following source files (presuming that the dbc driver name is "ecudb"):
4442
45-
ecudb.c / ecudb.h (1) RO / lib
46-
47-
Main driver which has all dbc frames structs / pack functions / unpack functions these
48-
source files preferably to place in lib level directory because they are RO using model
49-
and can be
50-
shared among few separated projects.
43+
ecudb.c / ecudb.h (1) RO / lib
5144

45+
Pair of the main driver which contains all dbc frames structs / pack functions / unpack functions declarations. These source files preferably to place in the share/library directory. This part of the package is non-changable and has no any data, so can be used across multi projects.
46+
5247
ecudb-fmon.h (2) RO / lib
5348

54-
Contains monitoring functions signatures which can be optionally called from unpack frame.
55-
Best option to place file beside Main driver files (1).
49+
Fmon header is a readonly part of monitoring part of the package. It contains the list of functions for CAN message validation. Those functions should be defined in the scope of user code and can be optionally used in unpack messages. This file is preferably to place in the share/library directory next to the main driver source files.
5650

5751
ecudb-fmon.c (3) app
5852

59-
User defined functions with diagnostic purpose. DLC, rolling, checksum errors can be handled
60-
automatically if specific configuration enabled. This file is user level source code.
53+
User specific part of monitoring functionality. If monitoring is fully enabled user code must define all the monitoring functions. This file is a part of the scope of user code.
6154

6255
ecudb-config.h (4) app / inc*
6356

64-
This is application specific configuration file. If you have a few projects (applications)
65-
which referenced on single main driver (1,2) then each project have to have own copy of this
66-
configuration. Source code (1,2) includes this configuration. If a few dbc matrix is in use
67-
in your application then for each of (1,2) specific configuration file must be presented.
57+
An application specific configuration file for enabling features in the main driver. If there are a few projects (applications) which include a single main driver (1,2) then each project has to have its own copy of this configuration. Source code (1,2) includes this configuration. If a few dbc matrix is in use in your application then for each of (1,2) specific configuration file must be presented.
6858

6959
dbccodeconf.h (5) app / inc
7060

71-
This is application specific configuration file. This file may include "CanFrame" definition,
72-
sigfloat_t typedef and binutil macros which enables rx and tx structures allocation inside
73-
ecudb-binutil.c. This file must be single for application (see template dbccodeconf.h), source
74-
code (4,6) includes this configuration.
61+
Application specific configuration file. This file might include "CanFrame" definition, sigfloat_t typedef and binutil macros which enables rx and tx structures allocation inside ecudb-binutil.c. Each project has to have its own copy of this configuration (see template dbccodeconf.h). Source code (4,6) includes this configuration.
7562

7663
ecudb-binutil.c / ecudb-binutil.h (6) RO / app
7764

78-
Basically this is application specific file. This driver has one function which intakes CAN
79-
message data and calls dedicated unpacking function. Function selection based on binary search.
65+
The part which is used for generalization CAN frame flow receiving and unpacking. It also optionally can allocate CAN frame tx/rx structs.
8066

8167
canmonitorutil.h (7) lib
8268

83-
This is lib level source code. This file is basic for all automatic monitoring functions.
84-
This configuration file location have to be added to project include path.
69+
General definitions for monitoring feature. The source file can be place to the share/library directory.
8570

8671
-----------------------------------------------------------------------------------------------
8772

8873
*inc - file location have to be added to project include path.
8974

90-
## "-nodeutils" option
75+
## generation options
9176

92-
If your matrix has strict routing setup, where each CAN device (node) has defined collection
93-
of TX frames as well as defined collection of RX frames the "-nodeutils" option may be used.
94-
In this mode all the nodes defined in CAN matrix will be handled as specific ECU and
95-
for each of these specific ECUs dedicated "###-binutil.c/h" pair of source code will be generated.
96-
97-
See help output using details.
77+
There are several available generation option, use '-help' option for details

astyle-all.sh

+1-24
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,6 @@
11
#!/bin/bash
2-
# cd {root_of_repo}
3-
# ln -s ${PWD}/utl/format/pre-commit-astyle.sh .git/hooks/pre-commit
4-
# chmod u+x utl/format/pre-commit-astyle.sh
52

6-
OPTIONS="--suffix=none \
7-
--style=allman \
8-
--attach-inlines \
9-
--indent-switches \
10-
--indent-preproc-define \
11-
--indent=spaces=2 \
12-
--min-conditional-indent=2 \
13-
--break-blocks \
14-
--pad-oper \
15-
--pad-header \
16-
--unpad-paren \
17-
--align-pointer=type \
18-
--align-reference=type \
19-
--indent-modifiers \
20-
--attach-classes \
21-
--break-after-logical \
22-
--keep-one-line-statements \
23-
--indent-after-parens \
24-
--add-braces \
25-
--max-code-length=120 \
26-
--max-continuation-indent=120"
3+
OPTIONS="--options=conf/astylerc"
274

285
RETURN=0
296
ASTYLE='./astyle'

conf/astylerc

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
--suffix=none
2+
--style=allman
3+
--attach-inlines
4+
--indent-switches
5+
--indent-preproc-define
6+
--indent=spaces=2
7+
--min-conditional-indent=2
8+
--break-blocks
9+
--pad-oper
10+
--pad-header
11+
--unpad-paren
12+
--align-pointer=type
13+
--align-reference=type
14+
--indent-modifiers
15+
--attach-classes
16+
--break-after-logical
17+
--keep-one-line-statements
18+
--indent-after-parens
19+
--add-braces
20+
--max-code-length=120
21+
--max-continuation-indent=120

0 commit comments

Comments
 (0)