如何配置编码器以生成恒定指针到常数变量?

发布于 2025-01-27 11:37:55 字数 540 浏览 2 评论 0原文

我的目的是配置Simulink编码器/嵌入式编码器以生成全局参数的结果:

extern const real32_T* const globalParameter;

使用自定义存储类设计器工具( cscdesigner )我设法部分实现了目标,目前我会生成以下结果:

extern const real32_T* globalParameter;

我如何配置我如何配置编码器生成丢失的部分IE,即常数变量:

const globalParameter

感谢您的支持!

最好的问候,

路易斯

My objective is to configure the Simulink Coder/Embedded Coder to generate for global parameters the following result:

extern const real32_T* const globalParameter;

Using the Custom Storage Class Designer tool (cscdesigner) I managed to partially achieve my goal, currently I generate the following result:

extern const real32_T* globalParameter;

How can I can I configure the coder to generate the missing part i.e., the constant variable:

const globalParameter

Thanks for your support!

Best regards,

Luis

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

信仰 2025-02-03 11:37:55

您始终可以将TLC用于CSC,以进行进一步的自定义,以防普通选项为您提供所需的选项。从我的头顶上,我不知道使用“正常” CSC是否可以做什么。

You can always use TLC for your CSC, for further customizations in case the normal options do not provide you the options you need. From the top of my head I do not know if what you want is possible using "normal" CSC.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文