mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-30 19:19:21 +00:00
Merge branch 'master' into driver_merge_tmp/merge_pcnt
# Conflicts: # components/driver/include/driver/periph_ctrl.h
This commit is contained in:
@@ -9,15 +9,19 @@ Overview
|
||||
Application Example
|
||||
-------------------
|
||||
|
||||
`Instructions`_
|
||||
Check `/examples <https://github.com/espressif/esp-idf/tree/master/examples>`_ folder of `espressif/esp-idf <https://github.com/espressif/esp-idf/>`_ repository, that contains the following example:
|
||||
|
||||
API Reference
|
||||
-------------
|
||||
`05_ble_adv <https://github.com/espressif/esp-idf/blob/master/examples/05_ble_adv/main/app_bt.c>`_
|
||||
|
||||
This is a BLE advertising demo with virtual HCI interface. Send Reset/ADV_PARAM/ADV_DATA/ADV_ENABLE HCI command for BLE advertising.
|
||||
|
||||
`Instructions`_
|
||||
|
||||
.. _Instructions: template.html
|
||||
|
||||
API Reference
|
||||
-------------
|
||||
|
||||
Header Files
|
||||
^^^^^^^^^^^^
|
||||
|
||||
@@ -35,4 +39,3 @@ Functions
|
||||
.. doxygenfunction:: API_vhci_host_register_callback
|
||||
.. doxygenfunction:: API_vhci_host_send_packet
|
||||
.. doxygenfunction:: bt_controller_init
|
||||
|
||||
|
@@ -27,7 +27,10 @@ Data Structures
|
||||
^^^^^^^^^^^^^^^
|
||||
|
||||
.. doxygenstruct:: ledc_channel_config_t
|
||||
:members:
|
||||
|
||||
.. doxygenstruct:: ledc_timer_config_t
|
||||
:members:
|
||||
|
||||
Macros
|
||||
^^^^^^
|
||||
|
@@ -5,8 +5,23 @@ Application Example
|
||||
|
||||
Two examples are provided in ESP-IDF examples directory:
|
||||
|
||||
- `07_nvs_rw_value <https://github.com/espressif/esp-idf/tree/master/examples/07_nvs_rw_value>`_ demostrates how to read and write integer values
|
||||
- `08_nvs_rw_blob <https://github.com/espressif/esp-idf/tree/master/examples/08_nvs_rw_blob>`_ demostrates how to read and write variable length binary values
|
||||
`07_nvs_rw_value <https://github.com/espressif/esp-idf/blob/master/examples/07_nvs_rw_value/main/nvs_rw_value.c>`_
|
||||
|
||||
Demonstrates how to read and write a single integer value using NVS.
|
||||
|
||||
The value holds the number of ESP32 module restarts. Since it is written to NVS, the value is preserved between restarts.
|
||||
|
||||
Example also shows how to check if read / write operation was successful, or certain value is not initialized in NVS. Diagnostic is provided in plain text to help track program flow and capture any issues on the way.
|
||||
|
||||
`08_nvs_rw_blob <https://github.com/espressif/esp-idf/blob/master/examples/08_nvs_rw_blob/main/nvs_rw_blob.c>`_
|
||||
|
||||
Demonstrates how to read and write a single integer value and a blob (binary large object) using NVS to preserve them between ESP32 module restarts.
|
||||
|
||||
* value - tracks number of ESP32 module soft and hard restarts.
|
||||
* blob - contains a table with module run times. The table is read from NVS to dynamically allocated RAM. New run time is added to the table on each manually triggered soft restart and written back to NVS. Triggering is done by pulling down GPIO0.
|
||||
|
||||
Example also shows how to implement diagnostics if read / write operation was successful.
|
||||
|
||||
|
||||
API Reference
|
||||
-------------
|
||||
|
93
docs/api/rmt.rst
Normal file
93
docs/api/rmt.rst
Normal file
@@ -0,0 +1,93 @@
|
||||
RMT
|
||||
========
|
||||
|
||||
Overview
|
||||
--------
|
||||
|
||||
The RMT (Remote Control) module driver can be used to send and receive infrared remote control signals. Due to flexibility of RMT module, the driver can also be used to generate many other types of signals.
|
||||
|
||||
Application Example
|
||||
-------------------
|
||||
|
||||
NEC remote control TX and RX example: `examples/11_rmt_nec_tx_rx <https://github.com/espressif/esp-idf/tree/master/examples/11_rmt_nec_tx_rx>`_.
|
||||
|
||||
API Reference
|
||||
-------------
|
||||
|
||||
Header Files
|
||||
^^^^^^^^^^^^
|
||||
|
||||
* `driver/rmt.h <https://github.com/espressif/esp-idf/blob/master/components/driver/include/driver/rmt.h>`_
|
||||
|
||||
Macros
|
||||
^^^^^^
|
||||
|
||||
.. doxygendefine:: RMT_MEM_BLOCK_BYTE_NUM
|
||||
.. doxygendefine:: RMT_MEM_ITEM_NUM
|
||||
|
||||
Enumerations
|
||||
^^^^^^^^^^^^
|
||||
|
||||
.. doxygenenum:: rmt_channel_t
|
||||
.. doxygenenum:: rmt_mem_owner_t
|
||||
.. doxygenenum:: rmt_source_clk_t
|
||||
.. doxygenenum:: rmt_data_mode_t
|
||||
.. doxygenenum:: rmt_mode_t
|
||||
.. doxygenenum:: rmt_idle_level_t
|
||||
.. doxygenenum:: rmt_carrier_level_t
|
||||
|
||||
Structures
|
||||
^^^^^^^^^^
|
||||
|
||||
.. doxygenstruct:: rmt_tx_config_t
|
||||
:members:
|
||||
|
||||
.. doxygenstruct:: rmt_rx_config_t
|
||||
:members:
|
||||
|
||||
.. doxygenstruct:: rmt_config_t
|
||||
:members:
|
||||
|
||||
|
||||
Functions
|
||||
^^^^^^^^^
|
||||
|
||||
.. doxygenfunction:: rmt_set_clk_div
|
||||
.. doxygenfunction:: rmt_get_clk_div
|
||||
.. doxygenfunction:: rmt_set_rx_idle_thresh
|
||||
.. doxygenfunction:: rmt_get_rx_idle_thresh
|
||||
.. doxygenfunction:: rmt_set_mem_block_num
|
||||
.. doxygenfunction:: rmt_get_mem_block_num
|
||||
.. doxygenfunction:: rmt_set_tx_carrier
|
||||
.. doxygenfunction:: rmt_set_mem_pd
|
||||
.. doxygenfunction:: rmt_get_mem_pd
|
||||
.. doxygenfunction:: rmt_tx_start
|
||||
.. doxygenfunction:: rmt_tx_stop
|
||||
.. doxygenfunction:: rmt_rx_start
|
||||
.. doxygenfunction:: rmt_rx_stop
|
||||
.. doxygenfunction:: rmt_memory_rw_rst
|
||||
.. doxygenfunction:: rmt_set_memory_owner
|
||||
.. doxygenfunction:: rmt_get_memory_owner
|
||||
.. doxygenfunction:: rmt_set_tx_loop_mode
|
||||
.. doxygenfunction:: rmt_get_tx_loop_mode
|
||||
.. doxygenfunction:: rmt_set_rx_filter
|
||||
.. doxygenfunction:: rmt_set_source_clk
|
||||
.. doxygenfunction:: rmt_get_source_clk
|
||||
.. doxygenfunction:: rmt_set_idle_level
|
||||
.. doxygenfunction:: rmt_get_status
|
||||
.. doxygenfunction:: rmt_set_intr_enable_mask
|
||||
.. doxygenfunction:: rmt_clr_intr_enable_mask
|
||||
.. doxygenfunction:: rmt_set_rx_intr_en
|
||||
.. doxygenfunction:: rmt_set_err_intr_en
|
||||
.. doxygenfunction:: rmt_set_tx_intr_en
|
||||
.. doxygenfunction:: rmt_set_evt_intr_en
|
||||
.. doxygenfunction:: rmt_set_pin
|
||||
.. doxygenfunction:: rmt_config
|
||||
.. doxygenfunction:: rmt_isr_register
|
||||
.. doxygenfunction:: rmt_fill_tx_items
|
||||
.. doxygenfunction:: rmt_driver_install
|
||||
.. doxygenfunction:: rmt_driver_uninstall
|
||||
.. doxygenfunction:: rmt_write_items
|
||||
.. doxygenfunction:: rmt_wait_tx_done
|
||||
.. doxygenfunction:: rmt_get_ringbuf_handler
|
||||
|
@@ -25,6 +25,7 @@ Structures
|
||||
^^^^^^^^^^
|
||||
|
||||
.. doxygenstruct:: esp_vfs_t
|
||||
:members:
|
||||
|
||||
Functions
|
||||
^^^^^^^^^
|
||||
|
Reference in New Issue
Block a user