ESPHome  2025.3.1
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
Data Structures | Namespaces | Enumerations | Variables
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

 esphome
 Implementation of SPI Controller mode.
 
 esphome::msa3xx
 

Enumerations

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

◆ double_tap_interrupt

bool double_tap_interrupt

Definition at line 405 of file msa3xx.h.

◆ duration

uint8_t duration

Definition at line 430 of file msa3xx.h.

◆ freefall_interrupt

bool freefall_interrupt

Definition at line 401 of file msa3xx.h.

◆ low_power_bandwidth

Bandwidth low_power_bandwidth

Definition at line 422 of file msa3xx.h.

◆ odr

DataRate odr

Definition at line 416 of file msa3xx.h.

◆ orient_xy

OrientationXY orient_xy

Definition at line 410 of file msa3xx.h.

◆ orient_z

bool orient_z

Definition at line 411 of file msa3xx.h.

◆ orientation_interrupt

bool orientation_interrupt

Definition at line 407 of file msa3xx.h.

◆ power_mode

PowerMode power_mode

Definition at line 424 of file msa3xx.h.

◆ range

Range range

Definition at line 413 of file msa3xx.h.

◆ reserved

uint8_t reserved

Definition at line 400 of file msa3xx.h.

◆ reserved_0

uint8_t reserved_0

Definition at line 421 of file msa3xx.h.

◆ reserved_0_3

uint8_t reserved_0_3

Definition at line 409 of file msa3xx.h.

◆ reserved_1

bool reserved_1

Definition at line 402 of file msa3xx.h.

◆ reserved_2

uint8_t reserved_2

Definition at line 415 of file msa3xx.h.

◆ reserved_3

bool reserved_3

Definition at line 404 of file msa3xx.h.

◆ reserved_4

uint8_t reserved_4

Definition at line 417 of file msa3xx.h.

◆ reserved_5

uint8_t reserved_5

Definition at line 423 of file msa3xx.h.

◆ reserved_7

uint8_t reserved_7

Definition at line 408 of file msa3xx.h.

◆ resolution

Resolution resolution

Definition at line 414 of file msa3xx.h.

◆ single_tap_interrupt

bool single_tap_interrupt

Definition at line 406 of file msa3xx.h.

◆ tap_quiet

bool tap_quiet

Definition at line 433 of file msa3xx.h.

◆ tap_shock

bool tap_shock

Definition at line 432 of file msa3xx.h.

◆ x_axis_disable

bool x_axis_disable

Definition at line 420 of file msa3xx.h.

◆ x_polarity

bool x_polarity

Definition at line 428 of file msa3xx.h.

◆ x_y_swap

bool x_y_swap

Definition at line 425 of file msa3xx.h.

◆ xy

OrientationXY xy

Definition at line 398 of file msa3xx.h.

◆ y_axis_disable

bool y_axis_disable

Definition at line 419 of file msa3xx.h.

◆ y_polarity

bool y_polarity

Definition at line 427 of file msa3xx.h.

◆ z

bool z

Definition at line 399 of file msa3xx.h.

◆ z_axis_disable

bool z_axis_disable

Definition at line 418 of file msa3xx.h.

◆ z_polarity

bool z_polarity

Definition at line 426 of file msa3xx.h.