10#ifndef M5_UNIT_COMPONENT_TYPES_HPP
11#define M5_UNIT_COMPONENT_TYPES_HPP
16#if defined(ESP_PLATFORM)
17#if defined(M5_UNIT_UNIFIED_USING_RMT_V2)
18#include <driver/rmt_types.h>
20#include <soc/rmt_struct.h>
22#include <driver/gpio.h>
58#if defined(ESP_PLATFORM)
64enum class Mode : uint8_t {
84struct adapter_config_t {
88 gpio_num_t gpio_num{};
95 struct tx_config_t : config_t {
96 uint16_t loop_count{1};
97 bool idle_output_enabled{};
98 bool idle_level_high{};
103 struct rx_config_t : config_t {
104 uint16_t ring_buffer_size{};
105 uint16_t filter_ticks_threshold{};
106 uint16_t idle_ticks_threshold{};
107 bool filter_enabled{};
117#if defined(M5_UNIT_UNIFIED_USING_RMT_V2)
118using m5_rmt_item_t = rmt_symbol_word_t;
120using m5_rmt_item_t = rmt_item32_t;
Identification of functions to be used.
Top level namespace of M5Stack.
Definition test_helper.hpp:20
Type and enumerator definitions.
unsigned long elapsed_time_t
Elapsed time unit (ms), same type as m5::utility::elapsed_time_t.
Definition types.hpp:44
constexpr attr_t AccessSPI
SPI Accessible Unit.
Definition types.hpp:52
uint32_t attr_t
Component attribute bits.
Definition types.hpp:43
uint32_t uid_t
Component unique identifier.
Definition types.hpp:42
constexpr attr_t AccessUART
UART Accessible Unit.
Definition types.hpp:51
constexpr attr_t AccessGPIO
GPIO Accessible Unit.
Definition types.hpp:50
constexpr attr_t AccessI2C
I2C Accessible Unit.
Definition types.hpp:49
category_t
Unit category (used for static class determination)
Definition types.hpp:37
@ UnitLED
Derived from UnitLED.