types.hpp
Go to the documentation of this file.
156 uint8_t accel_on_delay :2;
180 uint8_t accel_on_delay :2;
279 uint8_t sample_delay :5;
309 uint8_t addr :7;
321 uint8_t rxlength :4;
388 static constexpr int_en_t INT_EN_I2C_MST_FSYNC{1 << regs::INT_ENABLE_I2C_MST_FSYNC_BIT}; // int from I2C_MST_STATUS
404 static constexpr int_stat_t INT_STAT_I2C_MST_FSYNC{1 << regs::INT_STATUS_I2C_MST_BIT}; // int from I2C_MST_STATUS
538 static constexpr mag_stat2_t MAG_STAT2_BIT_OUTPUT_SETTING{1 << regs::mag::STATUS2_BIT_OUTPUT_M_BIT};
553 static constexpr auxi2c_slv_t MAG_SLAVE_CHG_MODE = AUXI2C_SLAVE_1; // change mode to single measure
static constexpr stby_en_t STBY_EN_LOWPWR_GYRO_PLL_ON
This is a low power mode that allows quick enabling of the gyros.
Definition: types.hpp:215
Definition: types.hpp:27
uint8_t time
Duration in milliseconds that the accel data must exceed the threshold before motion is reported...
Definition: types.hpp:154
constexpr uint8_t I2CMST_STAT_SLV4_NACK_BIT
Definition: registers.hpp:126
Definition: types.hpp:220
static constexpr int_en_t INT_EN_FIFO_OVERFLOW
Definition: types.hpp:387
Definition: types.hpp:119
Definition: types.hpp:257
uint8_t auxi2c_stat_t
Auxiliary I2C master status register data.
Definition: types.hpp:330
Definition: types.hpp:109
Indicates slave register addresses 0 and 1 are grouped together (odd numbered register ends the word)...
Definition: types.hpp:269
constexpr uint8_t I2CMST_STAT_SLV2_NACK_BIT
Definition: registers.hpp:128
constexpr uint8_t I2CMST_STAT_LOST_ARB_BIT
Definition: registers.hpp:125
mpu_i2caddr_t mpu_addr_handle_t
MPU Address/Handle type, mpu_i2caddr_t or spi_device_handle_t
Definition: types.hpp:34
constexpr uint8_t INT_STATUS_RAW_DATA_RDY_BIT
Definition: registers.hpp:168
ON state, the high pass filter will pass signals above the cut off frequency.
Definition: types.hpp:130
Definition: types.hpp:69
Definition: types.hpp:249
static constexpr mot_stat_t MOT_STAT_ZEROMOTION
Definition: types.hpp:198
This effectively disables the high pass filter.
Definition: types.hpp:128
static constexpr auxi2c_stat_t AUXI2C_STAT_SLV2_NACK
Definition: types.hpp:336
ON state, the high pass filter will pass signals above the cut off frequency.
Definition: types.hpp:133
static constexpr mag_stat1_t MAG_STAT1_DATA_OVERRUN
Definition: types.hpp:531
Definition: types.hpp:250
Definition: types.hpp:351
constexpr uint8_t INT_STATUS_MOTION_BIT
Definition: registers.hpp:162
constexpr uint8_t INT_STATUS_ZEROMOT_BIT
Definition: registers.hpp:163
constexpr uint8_t INT_STATUS_PLL_RDY_BIT
Definition: registers.hpp:166
lp_accel_rate_t
Low-Power Accelerometer wake-up rates.
Definition: types.hpp:104
Definition: types.hpp:426
constexpr uint8_t STATUS1_DATA_OVERRUN_BIT
Definition: registers.hpp:407
Definition: types.hpp:356
accel_dhpf_t
Accelerometer Digital High Pass Filter (only for motion detection modules)
Definition: types.hpp:127
Definition: types.hpp:419
static constexpr mpu_i2caddr_t MPU_DEFAULT_I2CADDRESS
Definition: types.hpp:30
static constexpr auxi2c_stat_t AUXI2C_STAT_SLV4_DONE
Definition: types.hpp:333
Definition: types.hpp:240
Definition: types.hpp:521
When set, any non-qualifying sample will reset the corresponding counter to 0.
Definition: types.hpp:141
Definition: types.hpp:517
Definition: types.hpp:222
constexpr uint8_t INT_STATUS_FIFO_OFLOW_BIT
Definition: registers.hpp:164
Definition: types.hpp:516
Definition: types.hpp:417
Definition: types.hpp:118
fchoice_t
Fchoice (Frequency choice maybe ?) [MPU6500 and MPU9250 only].
Definition: types.hpp:95
static constexpr int_stat_t INT_STAT_DMP_READY
Definition: types.hpp:406
Definition: types.hpp:73
static constexpr int_stat_t INT_STAT_FREE_FALL
Definition: types.hpp:409
Definition: types.hpp:97
constexpr uint8_t STATUS1_DATA_RDY_BIT
Definition: registers.hpp:367
ON state, the high pass filter will pass signals above the cut off frequency.
Definition: types.hpp:132
Definition: types.hpp:223
constexpr uint8_t STATUS2_BIT_OUTPUT_M_BIT
Definition: registers.hpp:408
Definition: types.hpp:219
static constexpr int_en_t INT_EN_I2C_MST_FSYNC
Definition: types.hpp:388
constexpr uint8_t INT_STATUS_FREEFALL_BIT
Definition: registers.hpp:161
Definition: types.hpp:350
Definition: types.hpp:28
uint8_t int_en_t
Enable features to generate signal at Interrupt pin.
Definition: types.hpp:384
Definition: types.hpp:233
Definition: types.hpp:368
static constexpr int_en_t INT_EN_MOTION_DETECT
Definition: types.hpp:386
static constexpr int_stat_t INT_STAT_ZERO_MOTION
Definition: types.hpp:410
uint8_t time
Duration in milliseconds that the accel data must exceed the threshold before motion is reported...
Definition: types.hpp:178
Definition: types.hpp:363
static constexpr int_stat_t INT_STAT_PLL_READY
Definition: types.hpp:405
Definition: types.hpp:227
static constexpr auxi2c_stat_t AUXI2C_STAT_LOST_ARB
Definition: types.hpp:332
Sensors struct for fast reading all sensors at once.
Definition: types.hpp:496
static constexpr fifo_config_t FIFO_CFG_TEMPERATURE
Definition: types.hpp:441
Definition: types.hpp:344
static constexpr uint8_t COMPASS_SAMPLE_RATE_MAX
Definition: types.hpp:512
axes_t< float > float_axes_t
Axes type to hold converted sensor data.
Definition: types.hpp:493
Definition: types.hpp:224
constexpr uint8_t I2CMST_STAT_PASS_THROUGH_BIT
Definition: registers.hpp:123
uint8_t threshold
Motion threshold in LSB.
Definition: types.hpp:168
constexpr uint8_t INT_ENABLE_DMP_RDY_BIT
Definition: registers.hpp:149
static constexpr int_stat_t INT_STAT_RAWDATA_READY
Definition: types.hpp:407
constexpr uint8_t INT_STATUS_DMP_RDY_BIT
Definition: registers.hpp:167
static constexpr mpu_addr_handle_t MPU_DEFAULT_ADDR_HANDLE
Definition: types.hpp:36
Definition: types.hpp:221
uint8_t threshold
Motion threshold in LSB.
Definition: types.hpp:177
constexpr uint8_t INT_ENABLE_RAW_DATA_RDY_BIT
Definition: registers.hpp:150
Definition: types.hpp:230
Definition: types.hpp:108
Internal oscillator: 20MHz for MPU6500 and 8MHz for MPU6050.
Definition: types.hpp:84
static constexpr auxi2c_slv_t MAG_SLAVE_READ_DATA
Definition: types.hpp:552
static constexpr auxi2c_stat_t AUXI2C_STAT_SLV3_NACK
Definition: types.hpp:335
constexpr uint8_t INT_STATUS_I2C_MST_BIT
Definition: registers.hpp:165
Definition: types.hpp:226
constexpr uint8_t I2CMST_STAT_SLV3_NACK_BIT
Definition: registers.hpp:127
constexpr uint8_t I2CMST_STAT_SLV4_DONE_BIT
Definition: registers.hpp:124
constexpr uint8_t INT_ENABLE_FIFO_OFLOW_BIT
Definition: registers.hpp:146
Definition: types.hpp:229
static constexpr int_stat_t INT_STAT_MOTION_DETECT
Definition: types.hpp:402
Definition: types.hpp:96
axes_t< int16_t > raw_axes_t
Axes type to hold gyroscope, accelerometer, magnetometer raw data.
Definition: types.hpp:492
uint8_t mot_stat_t
Motion Detection Status (MPU6000, MPU6050, MPU9150)
Definition: types.hpp:191
Definition: types.hpp:115
static constexpr int_en_t INT_EN_RAWDATA_READY
Definition: types.hpp:391
ON state, the high pass filter will pass signals above the cut off frequency.
Definition: types.hpp:131
Definition: types.hpp:369
Definition: types.hpp:231
static constexpr auxi2c_stat_t AUXI2C_STAT_SLV4_NACK
Definition: types.hpp:334
Definition: types.hpp:228
Definition: types.hpp:70
static constexpr auxi2c_slv_t MAG_SLAVE_CHG_MODE
Definition: types.hpp:553
Definition: types.hpp:116
static constexpr int_stat_t INT_STAT_FIFO_OVERFLOW
Definition: types.hpp:403
static constexpr selftest_t SELF_TEST_ACCEL_FAIL
Definition: types.hpp:563
mot_counter_t
Motion Detection counter decrement rate (Motion and FreeFall)
Definition: types.hpp:140
Definition: types.hpp:99
Definition: types.hpp:71
Stops the clock and keeps timing generator in reset.
Definition: types.hpp:90
Definition: types.hpp:112
Definition: types.hpp:107
Definition: types.hpp:106
I2C_t mpu_bus_t
Communication bus type, I2Cbus or SPIbus.
Definition: types.hpp:33
constexpr uint8_t INT_ENABLE_ZEROMOT_BIT
Definition: registers.hpp:145
static constexpr fifo_config_t FIFO_CFG_COMPASS
Definition: types.hpp:447
Definition: types.hpp:518
Define registers' for all MPU models.
uint8_t txdata
Data to transfer when slave is set to write.
Definition: types.hpp:324
constexpr uint8_t STATUS2_DATA_ERROR_BIT
Definition: registers.hpp:400
auxvddio_lvl_t
Auxiliary I2C bus VDDIO level [MPU6050 / MPU9150 only].
Definition: types.hpp:342
Definition: types.hpp:343
Definition: types.hpp:113
Definition: types.hpp:362
Indicates slave register addresses 1 and 2 are grouped together (even numbered register ends the word...
Definition: types.hpp:271
static constexpr mag_stat2_t MAG_STAT2_DATA_ERROR
Definition: types.hpp:540
constexpr uint8_t INT_ENABLE_PLL_RDY_BIT
Definition: registers.hpp:148
Definition: types.hpp:425
constexpr uint8_t INT_ENABLE_I2C_MST_FSYNC_BIT
Definition: registers.hpp:147
Definition: types.hpp:239
Definition: types.hpp:522
when fifo full, additional writes will not be written to fifo.
Definition: types.hpp:432
Definition: types.hpp:98
static constexpr mag_stat2_t MAG_STAT2_SENSOR_OVERFLOW
Definition: types.hpp:536
Definition: types.hpp:519
auxi2c_eow_t
Auxiliary I2C, EOW = end of word, use for swap.
Definition: types.hpp:268
Definition: types.hpp:234
static constexpr selftest_t SELF_TEST_GYRO_FAIL
Definition: types.hpp:562
Definition: types.hpp:76
Definition: types.hpp:120
Definition: types.hpp:122
Definition: types.hpp:117
constexpr uint8_t STATUS2_OVERFLOW_BIT
Definition: registers.hpp:377
Definition: types.hpp:72
static constexpr mag_stat2_t MAG_STAT2_BIT_OUTPUT_SETTING
Definition: types.hpp:538
static constexpr auxi2c_stat_t AUXI2C_STAT_FSYNC
Definition: types.hpp:331
auxi2c_clock_t
Auxiliary I2C Master clock speed.
Definition: types.hpp:218
Definition: types.hpp:258
Definition: types.hpp:74
static constexpr auxi2c_stat_t AUXI2C_STAT_SLV0_NACK
Definition: types.hpp:338
Definition: types.hpp:232
Definition: types.hpp:418
Definition: types.hpp:225
Definition: types.hpp:523
Definition: types.hpp:121
uint16_t fifo_config_t
FIFO configuration, enable sensors to be written to FIFO.
Definition: types.hpp:436
constexpr uint8_t INT_ENABLE_MOTION_BIT
Definition: registers.hpp:144
Definition: types.hpp:357
constexpr uint8_t I2CMST_STAT_SLV0_NACK_BIT
Definition: registers.hpp:130
static constexpr auxi2c_stat_t AUXI2C_STAT_SLV1_NACK
Definition: types.hpp:337
constexpr uint8_t I2CMST_STAT_SLV1_NACK_BIT
Definition: registers.hpp:129
static constexpr mag_stat1_t MAG_STAT1_DATA_RDY
Definition: types.hpp:529
uint8_t threshold
Motion threshold in LSB.
Definition: types.hpp:150
Definition: types.hpp:416
Definition: types.hpp:252
Definition: types.hpp:251
static constexpr int_en_t INT_EN_ZERO_MOTION
Definition: types.hpp:394
when fifo full, additional writes will be written to fifo, replacing the oldest data.
Definition: types.hpp:431
Definition: types.hpp:68
static constexpr int_stat_t INT_STAT_I2C_MST_FSYNC
Definition: types.hpp:404
uint8_t time
Duration in milliseconds that the accel data must exceed the threshold before motion is reported...
Definition: types.hpp:169
Definition: types.hpp:114
auxi2c_trans_t
Auxiliary I2C Master’s transition from one slave read to the next slave read.
Definition: types.hpp:238
uint8_t reg_addr
Register address to read/write to.
Definition: types.hpp:311
constexpr uint8_t INT_ENABLE_FREEFALL_BIT
Definition: registers.hpp:143