ESPHome 2025.5.0
Loading...
Searching...
No Matches
msa3xx.h File Reference

Go to the source code of this file.

Data Structures

union  esphome::msa3xx::Orientation
 
union  esphome::msa3xx::RegMotionInterrupt
 
union  esphome::msa3xx::RegOrientationStatus
 
union  esphome::msa3xx::RegRangeResolution
 
union  esphome::msa3xx::RegOutputDataRate
 
union  esphome::msa3xx::RegPowerModeBandwidth
 
union  esphome::msa3xx::RegSwapPolarity
 
union  esphome::msa3xx::RegTapDuration
 
class  esphome::msa3xx::MSA3xxComponent
 

Namespaces

namespace  esphome
 Providing packet encoding functions for exchanging data with a remote host.
 
namespace  esphome::msa3xx
 

Enumerations

enum class  esphome::msa3xx::Model : uint8_t { esphome::msa3xx::MSA301 = 0x26 , esphome::msa3xx::MSA311 = 0x62 }
 
enum class  esphome::msa3xx::RegisterMap : uint8_t {
  esphome::msa3xx::SOFT_RESET = 0x00 , esphome::msa3xx::PART_ID = 0x01 , esphome::msa3xx::ACC_X_LSB = 0x02 , esphome::msa3xx::ACC_X_MSB = 0x03 ,
  esphome::msa3xx::ACC_Y_LSB = 0x04 , esphome::msa3xx::ACC_Y_MSB = 0x05 , esphome::msa3xx::ACC_Z_LSB = 0x06 , esphome::msa3xx::ACC_Z_MSB = 0x07 ,
  esphome::msa3xx::MOTION_INTERRUPT = 0x09 , esphome::msa3xx::DATA_INTERRUPT = 0x0A , esphome::msa3xx::TAP_ACTIVE_STATUS = 0x0B , esphome::msa3xx::ORIENTATION_STATUS = 0x0C ,
  esphome::msa3xx::RESOLUTION_RANGE_CONFIG = 0x0D , esphome::msa3xx::RANGE_RESOLUTION = 0x0F , esphome::msa3xx::ODR = 0x10 , esphome::msa3xx::POWER_MODE_BANDWIDTH = 0x11 ,
  esphome::msa3xx::SWAP_POLARITY = 0x12 , esphome::msa3xx::INT_SET_0 = 0x16 , esphome::msa3xx::INT_SET_1 = 0x17 , esphome::msa3xx::INT_MAP_0 = 0x19 ,
  esphome::msa3xx::INT_MAP_1 = 0x1A , esphome::msa3xx::INT_CONFIG = 0x20 , esphome::msa3xx::INT_LATCH = 0x21 , esphome::msa3xx::FREEFALL_DURATION = 0x22 ,
  esphome::msa3xx::FREEFALL_THRESHOLD = 0x23 , esphome::msa3xx::FREEFALL_HYSTERESIS = 0x24 , esphome::msa3xx::ACTIVE_DURATION = 0x27 , esphome::msa3xx::ACTIVE_THRESHOLD = 0x28 ,
  esphome::msa3xx::TAP_DURATION = 0x2A , esphome::msa3xx::TAP_THRESHOLD = 0x2B , esphome::msa3xx::ORIENTATION_CONFIG = 0x2C , esphome::msa3xx::Z_BLOCK = 0x2D ,
  esphome::msa3xx::OFFSET_COMP_X = 0x38 , esphome::msa3xx::OFFSET_COMP_Y = 0x39 , esphome::msa3xx::OFFSET_COMP_Z = 0x3A
}
 
enum class  esphome::msa3xx::Range : uint8_t { esphome::msa3xx::RANGE_2G = 0b00 , esphome::msa3xx::RANGE_4G = 0b01 , esphome::msa3xx::RANGE_8G = 0b10 , esphome::msa3xx::RANGE_16G = 0b11 }
 
enum class  esphome::msa3xx::Resolution : uint8_t { esphome::msa3xx::RES_14BIT = 0b00 , esphome::msa3xx::RES_12BIT = 0b01 , esphome::msa3xx::RES_10BIT = 0b10 , esphome::msa3xx::RES_8BIT = 0b11 }
 
enum class  esphome::msa3xx::PowerMode : uint8_t { esphome::msa3xx::NORMAL = 0b00 , esphome::msa3xx::LOW_POWER = 0b01 , esphome::msa3xx::SUSPEND = 0b11 }
 
enum class  esphome::msa3xx::Bandwidth : uint8_t {
  esphome::msa3xx::BW_1_95HZ = 0b0000 , esphome::msa3xx::BW_3_9HZ = 0b0011 , esphome::msa3xx::BW_7_81HZ = 0b0100 , esphome::msa3xx::BW_15_63HZ = 0b0101 ,
  esphome::msa3xx::BW_31_25HZ = 0b0110 , esphome::msa3xx::BW_62_5HZ = 0b0111 , esphome::msa3xx::BW_125HZ = 0b1000 , esphome::msa3xx::BW_250HZ = 0b1001 ,
  esphome::msa3xx::BW_500HZ = 0b1010
}
 
enum class  esphome::msa3xx::DataRate : uint8_t {
  esphome::msa3xx::ODR_1HZ = 0b0000 , esphome::msa3xx::ODR_1_95HZ = 0b0001 , esphome::msa3xx::ODR_3_9HZ = 0b0010 , esphome::msa3xx::ODR_7_81HZ = 0b0011 ,
  esphome::msa3xx::ODR_15_63HZ = 0b0100 , esphome::msa3xx::ODR_31_25HZ = 0b0101 , esphome::msa3xx::ODR_62_5HZ = 0b0110 , esphome::msa3xx::ODR_125HZ = 0b0111 ,
  esphome::msa3xx::ODR_250HZ = 0b1000 , esphome::msa3xx::ODR_500HZ = 0b1001 , esphome::msa3xx::ODR_1000HZ = 0b1010
}
 
enum class  esphome::msa3xx::OrientationXY : uint8_t { esphome::msa3xx::PORTRAIT_UPRIGHT = 0b00 , esphome::msa3xx::PORTRAIT_UPSIDE_DOWN = 0b01 , esphome::msa3xx::LANDSCAPE_LEFT = 0b10 , esphome::msa3xx::LANDSCAPE_RIGHT = 0b11 }
 

Variables

OrientationXY xy
 
bool z
 
uint8_t reserved
 
bool freefall_interrupt
 
bool reserved_1
 
bool active_interrupt
 
bool reserved_3
 
bool double_tap_interrupt
 
bool single_tap_interrupt
 
bool orientation_interrupt
 
bool reserved_7
 
uint8_t reserved_0_3
 
OrientationXY orient_xy
 
bool orient_z
 
Range range
 
Resolution resolution
 
uint8_t reserved_2
 
DataRate odr
 
uint8_t reserved_4
 
bool z_axis_disable
 
bool y_axis_disable
 
bool x_axis_disable
 
uint8_t reserved_0
 
Bandwidth low_power_bandwidth
 
uint8_t reserved_5
 
PowerMode power_mode
 
bool x_y_swap
 
bool z_polarity
 
bool y_polarity
 
bool x_polarity
 
uint8_t duration
 
bool tap_shock
 
bool tap_quiet
 

Variable Documentation

◆ active_interrupt

bool active_interrupt

Definition at line 2 of file msa3xx.h.

◆ double_tap_interrupt

bool double_tap_interrupt

Definition at line 4 of file msa3xx.h.

◆ duration

uint8_t duration

Definition at line 0 of file msa3xx.h.

◆ freefall_interrupt

bool freefall_interrupt

Definition at line 0 of file msa3xx.h.

◆ low_power_bandwidth

Bandwidth low_power_bandwidth

Definition at line 1 of file msa3xx.h.

◆ odr

DataRate odr

Definition at line 0 of file msa3xx.h.

◆ orient_xy

OrientationXY orient_xy

Definition at line 1 of file msa3xx.h.

◆ orient_z

bool orient_z

Definition at line 2 of file msa3xx.h.

◆ orientation_interrupt

bool orientation_interrupt

Definition at line 6 of file msa3xx.h.

◆ power_mode

PowerMode power_mode

Definition at line 3 of file msa3xx.h.

◆ range

Range range

Definition at line 0 of file msa3xx.h.

◆ reserved

uint8_t reserved

Definition at line 2 of file msa3xx.h.

◆ reserved_0

uint8_t reserved_0

Definition at line 0 of file msa3xx.h.

◆ reserved_0_3

uint8_t reserved_0_3

Definition at line 0 of file msa3xx.h.

◆ reserved_1

bool reserved_1

Definition at line 1 of file msa3xx.h.

◆ reserved_2

uint8_t reserved_2

Definition at line 2 of file msa3xx.h.

◆ reserved_3

bool reserved_3

Definition at line 3 of file msa3xx.h.

◆ reserved_4

uint8_t reserved_4

Definition at line 1 of file msa3xx.h.

◆ reserved_5

uint8_t reserved_5

Definition at line 2 of file msa3xx.h.

◆ reserved_7

uint8_t reserved_7

Definition at line 7 of file msa3xx.h.

◆ resolution

Resolution resolution

Definition at line 1 of file msa3xx.h.

◆ single_tap_interrupt

bool single_tap_interrupt

Definition at line 5 of file msa3xx.h.

◆ tap_quiet

bool tap_quiet

Definition at line 3 of file msa3xx.h.

◆ tap_shock

bool tap_shock

Definition at line 2 of file msa3xx.h.

◆ x_axis_disable

bool x_axis_disable

Definition at line 4 of file msa3xx.h.

◆ x_polarity

bool x_polarity

Definition at line 3 of file msa3xx.h.

◆ x_y_swap

bool x_y_swap

Definition at line 0 of file msa3xx.h.

◆ xy

OrientationXY xy

Definition at line 0 of file msa3xx.h.

◆ y_axis_disable

bool y_axis_disable

Definition at line 3 of file msa3xx.h.

◆ y_polarity

bool y_polarity

Definition at line 2 of file msa3xx.h.

◆ z

bool z

Definition at line 1 of file msa3xx.h.

◆ z_axis_disable

bool z_axis_disable

Definition at line 2 of file msa3xx.h.

◆ z_polarity

bool z_polarity

Definition at line 1 of file msa3xx.h.