Skip to content

Understanding the Trice code #503

Answered by rokath
rokath asked this question in Q&A
Sep 24, 2024 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

In the differences of the macros trice8, trice16, trice32 and trice64. Their activation depends on the maximum size of the arguments that we want: TRICE_DEFAULT_PARAMETER_BIT_WIDTH. But when writing to the buffer, data must always be format to fit a 32 bit size?

The macros trice8, trice16, trice32 and trice64 are always usable and the number 8, 16, 32, 64 specifies the parameter width. They are partially disabled, when the value TRICE_SINGLE_MAX_SIZE is defined to be smaller than 104. That's mainly to get compiler errors rather than runtime errors. The value TRICE_DEFAULT_PARAMETER_BIT_WIDTH is the parameter bit with for the macro trice (without number). It can make sense to set this va…

Replies: 2 comments 1 reply

Comment options

rokath
Sep 24, 2024
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by rokath
Comment options

You must be logged in to vote
1 reply
@rokath
Comment options

rokath Jun 2, 2025
Maintainer Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
documentation Improvements or additions to documentation quality improve code quality
2 participants