LibDriver MPU6050  1.0.0
MPU6050 full-featured driver
driver_mpu6050_basic.h File Reference

driver mpu6050 basic header file More...

Go to the source code of this file.

Macros

#define MPU6050_BASIC_DEFAULT_CLOCK_SOURCE   MPU6050_CLOCK_SOURCE_PLL_X_GYRO
 mpu6050 basic example default definition More...
 
#define MPU6050_BASIC_DEFAULT_RATE   50
 
#define MPU6050_BASIC_DEFAULT_LOW_PASS_FILTER   MPU6050_LOW_PASS_FILTER_3
 
#define MPU6050_BASIC_DEFAULT_CYCLE_WAKE_UP   MPU6050_BOOL_FALSE
 
#define MPU6050_BASIC_DEFAULT_WAKE_UP_FREQUENCY   MPU6050_WAKE_UP_FREQUENCY_1P25_HZ
 
#define MPU6050_BASIC_DEFAULT_INTERRUPT_PIN_LEVEL   MPU6050_PIN_LEVEL_LOW
 
#define MPU6050_BASIC_DEFAULT_INTERRUPT_PIN_TYPE   MPU6050_PIN_TYPE_PUSH_PULL
 
#define MPU6050_BASIC_DEFAULT_ACCELEROMETER_RANGE   MPU6050_ACCELEROMETER_RANGE_2G
 
#define MPU6050_BASIC_DEFAULT_GYROSCOPE_RANGE   MPU6050_GYROSCOPE_RANGE_2000DPS
 
#define MPU6050_BASIC_DEFAULT_INTERRUPT_MOTION   MPU6050_BOOL_FALSE
 
#define MPU6050_BASIC_DEFAULT_INTERRUPT_FIFO_OVERFLOW   MPU6050_BOOL_FALSE
 
#define MPU6050_BASIC_DEFAULT_INTERRUPT_DMP   MPU6050_BOOL_FALSE
 
#define MPU6050_BASIC_DEFAULT_INTERRUPT_I2C_MAST   MPU6050_BOOL_FALSE
 
#define MPU6050_BASIC_DEFAULT_INTERRUPT_DATA_READY   MPU6050_BOOL_FALSE
 
#define MPU6050_BASIC_DEFAULT_INTERRUPT_LATCH   MPU6050_BOOL_TRUE
 
#define MPU6050_BASIC_DEFAULT_INTERRUPT_READ_CLEAR   MPU6050_BOOL_TRUE
 
#define MPU6050_BASIC_DEFAULT_EXTERN_SYNC   MPU6050_EXTERN_SYNC_INPUT_DISABLED
 
#define MPU6050_BASIC_DEFAULT_FSYNC_INTERRUPT   MPU6050_BOOL_FALSE
 
#define MPU6050_BASIC_DEFAULT_FSYNC_INTERRUPT_LEVEL   MPU6050_PIN_LEVEL_LOW
 
#define MPU6050_BASIC_DEFAULT_IIC_MASTER   MPU6050_BOOL_FALSE
 
#define MPU6050_BASIC_DEFAULT_IIC_BYPASS   MPU6050_BOOL_FALSE
 

Functions

uint8_t mpu6050_basic_init (mpu6050_address_t addr_pin)
 basic example init More...
 
uint8_t mpu6050_basic_deinit (void)
 basic example deinit More...
 
uint8_t mpu6050_basic_read (float g[3], float dps[3])
 basic example read More...
 
uint8_t mpu6050_basic_read_temperature (float *degrees)
 basic example read temperature More...
 

Detailed Description

driver mpu6050 basic header file

Copyright (c) 2015 - present LibDriver All rights reserved

The MIT License (MIT)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Version
1.0.0
Author
Shifeng Li
Date
2022-06-30

history

Date Version Author Description
2022/06/30 1.0 Shifeng Li first upload