docs: Add a note about TWAI multiple instances install

This commit is contained in:
Zhang Shuxian
2025-03-21 17:26:29 +08:00
parent 459165827a
commit c8cc3c1ea6
2 changed files with 4 additions and 0 deletions

View File

@@ -404,6 +404,8 @@ The usage of macro initializers is not mandatory and each of the configuration s
Install Multiple TWAI Instances
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
**Note:** You can create {IDF_TARGET_CONFIG_SOC_TWAI_CONTROLLER_NUM} functional TWAI instance(s) because the {IDF_TARGET_NAME} has {IDF_TARGET_CONFIG_SOC_TWAI_CONTROLLER_NUM} physical TWAI controller(s).
The following code snippet demonstrates how to install multiple TWAI instances via the use of the :cpp:func:`twai_driver_install_v2` function.
.. code-block:: c

View File

@@ -404,6 +404,8 @@ TWAI 驱动程序通过 :cpp:type:`twai_message_t` 结构体的不同位字段
安装多个 TWAI 实例
^^^^^^^^^^^^^^^^^^
**注意:** {IDF_TARGET_NAME} 包含 {IDF_TARGET_CONFIG_SOC_TWAI_CONTROLLER_NUM} 个 TWAI 控制器,因此可创建 {IDF_TARGET_CONFIG_SOC_TWAI_CONTROLLER_NUM} 个 TWAI 实例。
以下代码片段演示了如何使用 :cpp:func:`twai_driver_install_v2` 函数来安装多个 TWAI 实例。
.. code-block:: c