-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6334767
commit b85e460
Showing
11 changed files
with
2,932 additions
and
1,253 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
48 changes: 48 additions & 0 deletions
48
scripts/code_generation/jsoncan/src/codegen/c_generation/template/app_canTx.h.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/** | ||
* @note This file is auto-generated. Do not modify! | ||
*/ | ||
// clang-format off | ||
|
||
#pragma once | ||
|
||
/* ------------------------------- Includes ------------------------------- */ | ||
|
||
#include "app_canUtils.h" | ||
|
||
/* ------------------------- Function Prototypes -------------------------- */ | ||
|
||
/** | ||
* Initialize TX signals to their starting values. | ||
*/ | ||
void app_canTx_init(void); | ||
|
||
|
||
|
||
{% for msg in messages -%} | ||
{%- for signal in msg.signals -%} | ||
/** | ||
* Update value stored in TX table of signal {{ signal.name }} in msg {{ msg.name }}. | ||
*/ | ||
void app_canTx_{{ signal.name }}_set({{ signal.datatype() }} value); | ||
{% endfor -%} | ||
{% endfor %} | ||
|
||
{% for msg in messages -%} | ||
{%- for signal in msg.signals -%} | ||
/** | ||
* Get value stored in TX table of signal {{ signal.name }} in msg {{ msg.name }}. | ||
*/ | ||
{{ signal.datatype() }} app_canTx_{{ msg.name }}_{{ signal.name }}_get(void); | ||
{% endfor -%} | ||
{% endfor %} | ||
|
||
{% for msg in messages -%} | ||
/** | ||
* Get pointer to value stored in TX table of msg {{ msg.name }}. | ||
*/ | ||
{{ msg.c_type() }}* app_canTx_{{ msg.name }}_getData(); | ||
{% endfor %} | ||
|
||
|
||
|
||
|
Oops, something went wrong.