8 #ifndef COMPONENTS_CPP_UTILS_RMT_H_
9 #define COMPONENTS_CPP_UTILS_RMT_H_
10 #include <driver/rmt.h>
18 RMT(gpio_num_t pin, rmt_channel_t channel = RMT_CHANNEL_0);
20 void add(
bool level, uint32_t duration);
29 rmt_channel_t channel;
30 std::vector<rmt_item32_t> items;
Drive the RMT peripheral.
Definition: RMT.h:16
void rxStop()
Stop receiving.
Definition: RMT.cpp:60
virtual ~RMT()
Class destructor.
Definition: RMT.cpp:44
void write()
Write the items out through the RMT.
Definition: RMT.cpp:88
void add(bool level, uint32_t duration)
Add a level/duration to the transaction to be written.
Definition: RMT.cpp:101
void clear()
Clear any previously written level/duration pairs that have not been sent.
Definition: RMT.cpp:118
void rxStart()
Start receiving.
Definition: RMT.cpp:52
void txStop()
Stop transmitting.
Definition: RMT.cpp:76
void txStart()
Start transmitting.
Definition: RMT.cpp:68
RMT(gpio_num_t pin, rmt_channel_t channel=RMT_CHANNEL_0)
Create a class instance.
Definition: RMT.cpp:19