有没有办法编程不关心Python的嵌入式系统?

发布于 2025-02-09 08:10:21 字数 98 浏览 0 评论 0原文

我正在写Python中DDS(AD9959,模拟设备)芯片的驱动程序。数据表中写的一些模式要求不在乎编写寄存器位。实施相同的正确方法是什么?我试图使用“ X”,但碎片没有写在芯片上。

I am writing a driver for a DDS(AD9959, analog devices) chip in python. Some of the modes written in the datasheet require writing the register bits as do not care. What is the correct way to implement the same? I tried to use 'x', but the bits are not being written on the chip.

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

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

发布评论

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

评论(1

凌乱心跳 2025-02-16 08:10:21

“不在乎”一词并不意味着一些特殊的价值。一点只能是0或1。

在阅读时,意味着您可以忽略该值。通常,您将其掩盖。

写作时,意味着您可以自由选择任何值。大多数开发人员写0。

The term "don't care" does not mean some special value for a bit. A bit can only be 0 or 1.

When reading it means that you can ignore the value. Commonly you mask it away.

When writing it means that you are free to choose any value. Most developers write a 0.

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