forked from espressif/esp-idf
docs: Add a note about TWAI multiple instances install
This commit is contained in:
@@ -404,6 +404,8 @@ The usage of macro initializers is not mandatory and each of the configuration s
|
|||||||
Install Multiple TWAI Instances
|
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.
|
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
|
.. code-block:: c
|
||||||
|
@@ -404,6 +404,8 @@ TWAI 驱动程序通过 :cpp:type:`twai_message_t` 结构体的不同位字段
|
|||||||
安装多个 TWAI 实例
|
安装多个 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 实例。
|
以下代码片段演示了如何使用 :cpp:func:`twai_driver_install_v2` 函数来安装多个 TWAI 实例。
|
||||||
|
|
||||||
.. code-block:: c
|
.. code-block:: c
|
||||||
|
Reference in New Issue
Block a user