M5Unified
m5 Namespace Reference

Classes

class  M5Unified
 
class  AXP192_Class
 
class  AXP2101_Class
 
class  Button_Class
 
class  I2C_Class
 
class  I2C_Device
 
class  AK8963_Class
 
class  BMI270_Class
 
class  BMM150_Class
 
class  IMU_Base
 
class  MPU6886_Class
 
class  SH200Q_Class
 
class  IMU_Class
 
class  INA3221_Class
 
class  IP5306_Class
 
class  Log_Class
 
struct  mic_config_t
 
class  Mic_Class
 
class  Power_Class
 
class  RTC8563_Class
 
struct  speaker_config_t
 
class  Speaker_Class
 
class  Touch_Class
 

Typedefs

using board_t = m5gfx::board_t
 
using touch_point_t = m5gfx::touch_point_t
 
using touch_detail_t = Touch_Class::touch_detail_t
 
typedef IMU_Class::imu_3d_t imu_3d_t
 
typedef IMU_Class::imu_data_t imu_data_t
 

Enumerations

enum  pin_name_t {
  in_i2c_scl , in_i2c_sda , port_a_pin1 , port_a_scl = port_a_pin1 ,
  ex_i2c_scl = port_a_pin1 , port_a_pin2 , port_a_sda = port_a_pin2 , ex_i2c_sda = port_a_pin2 ,
  port_b_pin1 , port_b_in = port_b_pin1 , port_b_pin2 , port_b_out = port_b_pin2 ,
  port_c_pin1 , port_c_rxd = port_c_pin1 , port_c_pin2 , port_c_txd = port_c_pin2 ,
  port_d_pin1 , port_d_rxd = port_d_pin1 , port_b2_pin1 = port_d_pin1 , port_d_pin2 ,
  port_d_txd = port_d_pin2 , port_b2_pin2 = port_d_pin2 , port_e_pin1 , port_e_rxd = port_e_pin1 ,
  port_c2_pin1 = port_e_pin1 , port_e_pin2 , port_e_txd = port_e_pin2 , port_c2_pin2 = port_e_pin2 ,
  sd_spi_sclk , sd_spi_copi , sd_spi_mosi = sd_spi_copi , sd_spi_cipo ,
  sd_spi_miso = sd_spi_cipo , sd_spi_cs , sd_spi_ss = sd_spi_cs , rgb_led ,
  pin_name_max
}
 
enum  imu_t {
  imu_none , imu_unknown , imu_sh200q , imu_mpu6050 ,
  imu_mpu6886 , imu_mpu9250 , imu_bmi270
}
 
enum  log_target_t : uint8_t { log_target_serial , log_target_display , log_target_callback , log_target_max }
 
enum  ext_port_mask_t {
  ext_none = 0 , ext_PA = 0b00000001 , ext_PB1 = 0b00000010 , ext_PB2 = 0b00000100 ,
  ext_PC1 = 0b00001000 , ext_PC2 = 0b00010000 , ext_USB = 0b00100000 , ext_MAIN = 0b10000000
}
 
enum  touch_state_t {
  none = 0b0000 , touch = 0b0001 , touch_end = 0b0010 , touch_begin = 0b0011 ,
  hold = 0b0101 , hold_end = 0b0110 , hold_begin = 0b0111 , flick = 0b1001 ,
  flick_end = 0b1010 , flick_begin = 0b1011 , drag = 0b1101 , drag_end = 0b1110 ,
  drag_begin = 0b1111 , mask_touch = 0b0001 , mask_change = 0b0010 , mask_holding = 0b0100 ,
  mask_moving = 0b1000
}
 

Functions

struct __attribute__ ((packed)) rtc_time_t
 

Variables

I2C_Class In_I2C
 for internal I2C device More...
 
I2C_Class Ex_I2C
 for external I2C device More...
 

Typedef Documentation

◆ board_t

using m5::board_t = typedef m5gfx::board_t

Definition at line 23 of file M5Unified.hpp.

◆ imu_3d_t

Definition at line 260 of file IMU_Class.hpp.

◆ imu_data_t

Definition at line 261 of file IMU_Class.hpp.

◆ touch_detail_t

Definition at line 66 of file M5Unified.hpp.

◆ touch_point_t

using m5::touch_point_t = typedef m5gfx::touch_point_t

Definition at line 24 of file M5Unified.hpp.

Enumeration Type Documentation

◆ ext_port_mask_t

Enumerator
ext_none 
ext_PA 
ext_PB1 
ext_PB2 
ext_PC1 
ext_PC2 
ext_USB 
ext_MAIN 

Definition at line 24 of file Power_Class.hpp.

◆ imu_t

enum m5::imu_t
Enumerator
imu_none 
imu_unknown 
imu_sh200q 
imu_mpu6050 
imu_mpu6886 
imu_mpu9250 
imu_bmi270 

Definition at line 13 of file IMU_Class.hpp.

◆ log_target_t

enum m5::log_target_t : uint8_t
Enumerator
log_target_serial 
log_target_display 
log_target_callback 
log_target_max 

Definition at line 40 of file Log_Class.hpp.

◆ pin_name_t

Enumerator
in_i2c_scl 
in_i2c_sda 
port_a_pin1 
port_a_scl 
ex_i2c_scl 
port_a_pin2 
port_a_sda 
ex_i2c_sda 
port_b_pin1 
port_b_in 
port_b_pin2 
port_b_out 
port_c_pin1 
port_c_rxd 
port_c_pin2 
port_c_txd 
port_d_pin1 
port_d_rxd 
port_b2_pin1 
port_d_pin2 
port_d_txd 
port_b2_pin2 
port_e_pin1 
port_e_rxd 
port_c2_pin1 
port_e_pin2 
port_e_txd 
port_c2_pin2 
sd_spi_sclk 
sd_spi_copi 
sd_spi_mosi 
sd_spi_cipo 
sd_spi_miso 
sd_spi_cs 
sd_spi_ss 
rgb_led 
pin_name_max 

Definition at line 26 of file M5Unified.hpp.

◆ touch_state_t

Enumerator
none 
touch 
touch_end 
touch_begin 
hold 
hold_end 
hold_begin 
flick 
flick_end 
flick_begin 
drag 
drag_end 
drag_begin 
mask_touch 
mask_change 
mask_holding 
mask_moving 

Definition at line 13 of file Touch_Class.hpp.

Function Documentation

◆ __attribute__()

struct m5::__attribute__ ( (packed)  )

year 1900-2099

month 1-12

date 1-31

weekDay 0:sun / 1:mon / 2:tue / 3:wed / 4:thu / 5:fri / 6:sat

year 1900-2099

month 1-12

date 1-31

weekDay 0:sun / 1:mon / 2:tue / 3:wed / 4:thu / 5:fri / 6:sat

Definition at line 14 of file RTC8563_Class.hpp.

Here is the caller graph for this function:

Variable Documentation

◆ Ex_I2C

I2C_Class m5::Ex_I2C

for external I2C device

Definition at line 11 of file I2C_Class.cpp.

◆ In_I2C

I2C_Class m5::In_I2C

for internal I2C device

Definition at line 10 of file I2C_Class.cpp.