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.

[参考译文] TM4C1294NCPDT:I2C 驱动程序是否支持从模式?

Guru**** 2609285 points


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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1328671/tm4c1294ncpdt-does-the-i2c-driver-support-slave-mode

器件型号:TM4C1294NCPDT

大家好、我得到了包  tirtos_tivac_2_16_01_14中的 I2C 驱动器(路径:...\tirtos_tivac_2_16_01_14\products\tirds_tivac_2_16_01_13\packages\ti\drivers)。

但我发现 I2C 驱动程序用于模式、我希望它在从模式下工作。 在 TM4C1294系统中从模式下从何处获取 I2C 驱动器?

感谢您的支持。

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

    您好!

     用于 Tiva 的 TI-RTOS I2C 驱动程序只支持主模式。   有关详细信息、请参阅 software-dl.ti.com/.../_i2_c_8h.html。 我认为、如果您想在从模式下操作、则需要直接使用 TivaWare SDK 中提供的 driverlib。  

    TivaWare SDK 中有一些 I2C 主/从示例。 它们可以在 C:\ti\TivaWare_C_Series-2.2.0.295\examples\peripherals\i2c 中找到。 您可以从 TI-RTOS 内调用 I2C drivelib API。