5 #ifndef ARUNA_ESP32_RMT_DSHOT_H 6 #define ARUNA_ESP32_RMT_DSHOT_H 7 #define RMT_CHANNEL_FLAGS_ALWAYS_ON 1 10 #include <driver/rmt.h> 75 #endif //ARUNA_ESP32_RMT_DSHOT_H static void * _update_task(void *_this)
static function to help pthead
err_t single_write(uint16_t dshot_frame)
Write a single Dshot frame to the bus.
pthread_mutex_t dshot_frame_lock
void update_task()
updates ESC with current dshot buffer, blocks CPU
void bits_to_dshotFrame(uint16_t bits, rmt_item32_t *frame_buffer)
convert bits to rmt frame
Link * driver
stores the driver.
rmt_config_t driver_config
ESP32_RMT_Dshot(rmt_channel_t channel, gpio_num_t gpio_port)
Dshot150 using RMT hardware.
err_t _write_frame_continuous(uint16_t dshot_frame) override
Write set Dshot frame continuously on the bus.