21 #ifndef COSA_MPU6050_HH 22 #define COSA_MPU6050_HH 195 } __attribute__((packed));
204 uint8_t EXT_SYNC_SET:3;
287 uint8_t SLV0_FIFO_EN:1;
288 uint8_t SLV1_FIFO_EN:1;
289 uint8_t SLV2_FIFO_EN:1;
290 uint8_t ACCEL_FIFO_EN:1;
291 uint8_t ZG_FIFO_EN:1;
292 uint8_t YG_FIFO_EN:1;
293 uint8_t XG_FIFO_EN:1;
294 uint8_t TEMP_FIFO_EN:1;
313 uint8_t I2C_BYPASS_EN:1;
314 uint8_t FSYNC_INT_EN:1;
315 uint8_t FSYNC_INT_LEVEL:1;
316 uint8_t INT_RD_CLEAR:1;
317 uint8_t LATCH_INT_EN:1;
337 uint8_t DATA_RDY_EN:1;
339 uint8_t I2C_MST_INT_EN:1;
340 uint8_t FIFO_OFLOW_EN:1;
359 uint8_t DATA_RDY_INT:1;
361 uint8_t I2C_MST_INT:1;
362 uint8_t FIFO_OFLOW_INT:1;
381 uint8_t TEMP_RESET:1;
382 uint8_t ACCEL_RESET:1;
383 uint8_t GYRO_RESET:1;
402 uint8_t SIG_COND_RESET:1;
403 uint8_t I2C_MST_RESET:1;
404 uint8_t FIFO_RESET:1;
406 uint8_t I2C_IF_DIS:1;
407 uint8_t I2C_MST_EN:1;
432 uint8_t DEVICE_RESET:1;
470 uint8_t LP_WAKE_CTRL:2;
uint8_t as_uint8
As a byte.
bool begin(uint8_t clksel=CLKSEL_PLL_GYRO_X_REF)
uint8_t as_uint8
As a byte.
I2C Master Delay Control.
config_t(uint8_t value=0)
uint8_t as_uint8
As a byte.
FIFO Count Registers MSB.
FIFO Count Registers LSB.
fifo_en_t(uint8_t value=0)
MPU6050(uint8_t subaddr=0)
IOStream & operator<<(IOStream &outs, MPU6050 &mpu)
int_enable_t(uint8_t value=0)
uint8_t read(Register reg)
int_status_t(uint8_t value=0)
void read_gyroscope(sample_t &s)
uint8_t as_uint8
As a byte.
user_ctrl_t(uint8_t value=0)
gyro_config_t(uint8_t value=0)
void write(Register reg, uint8_t value)
INT Pin/Bypass Enable Configuration.
accel_config_t(uint8_t value=0)
uint8_t as_uint8
As a byte.
uint8_t as_uint8
As a byte.
int_pin_cfg_t(uint8_t value=0)
uint8_t as_uint8
As a byte.
Accelerometer Configuration.
Accelerometer Measurements.
void read_motion(motion_t &m)
uint8_t as_uint8
As a byte.
uint8_t as_uint8
As a byte.
pwr_mgmt_2_t(uint8_t value=0)
pwr_mgmt_1_t(uint8_t value=0)
int16_t read_temperature()
uint8_t as_uint8
As a byte.
uint8_t as_uint8
As a byte.
signal_path_reset_t(uint8_t value=0)
void read_accelerometer(sample_t &s)