M5UnitUnified 0.1.2 git rev:98f967c
Loading...
Searching...
No Matches
types.hpp File Reference

Type and enumerator definitions. More...

#include <cstdint>
#include <type_traits>
#include "identify_functions.hpp"
#include <driver/rmt_types.h>
#include <driver/gpio.h>

Go to the source code of this file.

Classes

struct  m5::unit::gpio::adapter_config_t
 Common pinMode, RMT v1 and v2 settings. More...
 
struct  m5::unit::gpio::adapter_config_t::config_t
 

Namespaces

namespace  m5
 Top level namespace of M5stack.
 
namespace  types
 Type and enumerator definitions.
 

Typedefs

using m5::unit::types::uid_t = uint32_t
 Component unique identifier.
 
using m5::unit::types::attr_t = uint32_t
 Component attribute bits.
 
using m5::unit::types::elapsed_time_t = unsigned long
 Elapsed time unit (ms)
 
using m5::unit::gpio::m5_rmt_item_t = rmt_symbol_word_t
 

Enumerations

enum class  m5::unit::gpio::Mode : uint8_t {
  Input , Output , Pullup , InputPullup ,
  Pulldown , InputPulldown , OpenDrain , OutputOpenDrain ,
  Analog , RmtRX = 0x80 , RmtTX , RmtRXTX
}
 Pin mode.
 

Variables

Attribute
constexpr attr_t m5::unit::types::attribute::AccessI2C = 0x00000001
 I2C Accessible Unit.
 
constexpr attr_t m5::unit::types::attribute::AccessGPIO = 0x00000002
 GPIO Accessible Unit.
 

Detailed Description

Type and enumerator definitions.