This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] TMS320F28379D:如何定义 uint8_t 数据类型的指针?

Guru**** 2595805 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/674880/tms320f28379d-how-to-define-pointer-to-uint8_t-data-type

器件型号:TMS320F28379D

您好!

我一直在使用 C2000 Delfino 电路板、并尝试在其中实现之前开发的 C 库。

问题是,库使用 uint8_t 数据类型,也使用此数据类型上的数组和指针算术。 我已经看到有一个__byte 内在函数可用于访问 uint8_t 数据类型。 但是、如何使用此函数实现所有指针操作、如解除引用等?

此致、

奥 poorv

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好、Apporv、

    在 C2000中、字节为16位。 没有数据类型可以与 uint8使用相同。 但有一种使用__byte 内在函数访问 uint8数据类型的规定。 有关详细信息、请参阅 processors.wiki.ti.com/.../Byte_Accesses_with_the_C28x_CPU 和 http://www.ti.com/lit/spru514。

    请查看这些示例、如果您有更多问题、请告知我们。

    谢谢、
    Katta