#include "owb.h"
#include "driver/rmt.h"
#include "driver/gpio.h"
#include "sdkconfig.h"
#include "esp_log.h"
Go to the source code of this file.
◆ info_of_driver
◆ MAX_BITS_PER_SLOT
| #define MAX_BITS_PER_SLOT (8) |
◆ OW_DURATION_0_HIGH
◆ OW_DURATION_0_LOW
| #define OW_DURATION_0_LOW 65 |
◆ OW_DURATION_1_HIGH
◆ OW_DURATION_1_LOW
| #define OW_DURATION_1_LOW 2 |
◆ OW_DURATION_RESET
| #define OW_DURATION_RESET 480 |
◆ OW_DURATION_RX_IDLE
◆ OW_DURATION_SAMPLE
| #define OW_DURATION_SAMPLE (15 - 2) |
◆ OW_DURATION_SLOT
| #define OW_DURATION_SLOT 75 |
◆ owb_rmt_initialize()
Initialise the RMT driver.
- Parameters
-
| [in] | info | Pointer to an uninitialized owb_rmt_driver_info structure. Note: the structure must remain in scope for the lifetime of this component. |
| [in] | gpio_num | The GPIO number to use as the One Wire bus data line. |
| [in] | tx_channel | The RMT channel to use for transmitting data to bus devices. |
| [in] | rx_channel | the RMT channel to use for receiving data from bus devices. |
- Returns
- OneWireBus *, pass this into the other OneWireBus public API functions
Definition at line 453 of file owb_rmt.c.