M5UnitUnified 0.6.3 git rev:e38fc73
Loading...
Searching...
No Matches
types.hpp File Reference

Type and enumerator definitions. More...

#include <cstdint>
#include <type_traits>
#include "identify_functions.hpp"

Go to the source code of this file.

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), same type as m5::utility::elapsed_time_t.
 

Enumerations

enum class  m5::unit::types::category_t { None , UnitLED }
 Unit category (used for static class determination) More...
 

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.
 
constexpr attr_t m5::unit::types::attribute::AccessUART = 0x00000004
 UART Accessible Unit.
 
constexpr attr_t m5::unit::types::attribute::AccessSPI = 0x00000008
 SPI Accessible Unit.
 

Detailed Description

Type and enumerator definitions.

Enumeration Type Documentation

◆ category_t

enum class m5::unit::types::category_t
strong

Unit category (used for static class determination)

Enumerator
UnitLED 

Derived from UnitLED.