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.

[参考译文] RTOS/CC2650EM-7ID-RD:如果 I2C 在块模式下工作、则连接到 I2C 的器件停止工作、任务被阻止。 如何在回调模式下访问 CC2650中的 I2C。

Guru**** 2587455 points
Other Parts Discussed in Thread: FDC2214, CC2650

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

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/599851/rtos-cc2650em-7id-rd-the-device-connected-to-i2c-stops-working-and-the-task-is-blocked-if-i2c-works-in-block-mode-how-to-access-the-i2c-in-cc2650-in-callback-mode

器件型号:CC2650EM-7ID-RD
主题中讨论的其他器件:FDC2214CC2650

工具/软件:TI-RTOS

大家好。  

我需要通过 I2C 总线将 FDC2214连接到 BLE CC2650。

如果我在阻塞模式下使用 I2C、在某些情况下、访问数据会导致我挂起访问器件的任务。

如果我尝试在回调模式下配置 I2C、器件将不会启动。  

如何在回调模式下运行它。

 I2C_Params 结构具有 void *自定义数据变量。 这是什么。

回调函数具有以下三种类型的三个参数:

"I2C_Handle"、"I2C_Transaction *" 和 "bool

什么是 best 参数?

此致

Boris Fridman

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

    您好!  

    您可以查看 sensortag 项目以获取有关如何设置 i2c 的示例:

    C:\ti_tirtos_cc13xx_cc26xx_2_20_01_08\products\tidrivers_cc13xx_cc26xx_2_20_01_10\packages/ti\mw\sensor\SensorI2C.c

    祝你一切顺利