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.

[参考译文] CCS/LAUNCHXL-CC26X2R1:GPIO 驱动程序配置代码

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

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/898796/ccs-launchxl-cc26x2r1-gpio-driver-configuration-code

器件型号:LAUNCHXL-CC26X2R1

工具/软件:Code Composer Studio

大家好、

我发现很难对这个编码惯例进行解密、点(.)是什么 每个赋值都表示前缀。 例如".pinconfig"  

这个 ".pinConfigs =(GPIO_PinConfig *) gpioPinConfigs"是指什么?

CONST GPIOCC26XX_Config GPIOCC26XX_CONFIG ={
.pinConfigs =(GPIO_PinConfig *) gpioPinConfigs、
.callback =(GPIO_CallbackFxn *) gpioCallbackFuncions、
numberOfPinConfigs = 2、
numberOfCallbacks = 2、
.intPriority =(~0)

}

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

    大家好、Pawnesh、

    这只是在 C 语言编程中使用设定的值来定义一个对象的编码惯例。