![]() |
LibDriver MPU6050
1.0.0
MPU6050 full-featured driver
|
driver mpu6050 header file More...
#include <stdio.h>
#include <stdint.h>
#include <string.h>
Go to the source code of this file.
Data Structures | |
struct | mpu6050_handle_s |
mpu6050 handle structure definition More... | |
struct | mpu6050_info_s |
mpu6050 information structure definition More... | |
Macros | |
#define | DRIVER_MPU6050_LINK_INIT(HANDLE, STRUCTURE) memset(HANDLE, 0, sizeof(STRUCTURE)) |
initialize mpu6050_handle_t structure More... | |
#define | DRIVER_MPU6050_LINK_IIC_INIT(HANDLE, FUC) (HANDLE)->iic_init = FUC |
link iic_init function More... | |
#define | DRIVER_MPU6050_LINK_IIC_DEINIT(HANDLE, FUC) (HANDLE)->iic_deinit = FUC |
link iic_deinit function More... | |
#define | DRIVER_MPU6050_LINK_IIC_READ(HANDLE, FUC) (HANDLE)->iic_read = FUC |
link iic_read function More... | |
#define | DRIVER_MPU6050_LINK_IIC_WRITE(HANDLE, FUC) (HANDLE)->iic_write = FUC |
link iic_write function More... | |
#define | DRIVER_MPU6050_LINK_DELAY_MS(HANDLE, FUC) (HANDLE)->delay_ms = FUC |
link delay_ms function More... | |
#define | DRIVER_MPU6050_LINK_DEBUG_PRINT(HANDLE, FUC) (HANDLE)->debug_print = FUC |
link debug_print function More... | |
#define | DRIVER_MPU6050_LINK_RECEIVE_CALLBACK(HANDLE, FUC) (HANDLE)->receive_callback = FUC |
link receive_callback function More... | |
Typedefs | |
typedef struct mpu6050_handle_s | mpu6050_handle_t |
mpu6050 handle structure definition | |
typedef struct mpu6050_info_s | mpu6050_info_t |
mpu6050 information structure definition | |
Functions | |
uint8_t | mpu6050_info (mpu6050_info_t *info) |
get the chip's information More... | |
uint8_t | mpu6050_set_addr_pin (mpu6050_handle_t *handle, mpu6050_address_t addr_pin) |
set the chip address pin More... | |
uint8_t | mpu6050_get_addr_pin (mpu6050_handle_t *handle, mpu6050_address_t *addr_pin) |
get the chip address pin More... | |
uint8_t | mpu6050_irq_handler (mpu6050_handle_t *handle) |
irq handler More... | |
uint8_t | mpu6050_init (mpu6050_handle_t *handle) |
initialize the chip More... | |
uint8_t | mpu6050_deinit (mpu6050_handle_t *handle) |
close the chip More... | |
uint8_t | mpu6050_read (mpu6050_handle_t *handle, int16_t(*accel_raw)[3], float(*accel_g)[3], int16_t(*gyro_raw)[3], float(*gyro_dps)[3], uint16_t *len) |
read the data More... | |
uint8_t | mpu6050_read_temperature (mpu6050_handle_t *handle, int16_t(*raw), float *degrees) |
read the temperature More... | |
uint8_t | mpu6050_set_fifo (mpu6050_handle_t *handle, mpu6050_bool_t enable) |
enable or disable fifo More... | |
uint8_t | mpu6050_get_fifo (mpu6050_handle_t *handle, mpu6050_bool_t *enable) |
get the fifo status More... | |
uint8_t | mpu6050_force_fifo_reset (mpu6050_handle_t *handle) |
force reset the fifo More... | |
uint8_t | mpu6050_set_iic_master (mpu6050_handle_t *handle, mpu6050_bool_t enable) |
enable or disable the iic master mode More... | |
uint8_t | mpu6050_get_iic_master (mpu6050_handle_t *handle, mpu6050_bool_t *enable) |
get the iic master status More... | |
uint8_t | mpu6050_fifo_reset (mpu6050_handle_t *handle) |
reset the fifo More... | |
uint8_t | mpu6050_get_fifo_reset (mpu6050_handle_t *handle, mpu6050_bool_t *enable) |
get the fifo reset status More... | |
uint8_t | mpu6050_iic_master_reset (mpu6050_handle_t *handle) |
reset the iic master controller More... | |
uint8_t | mpu6050_get_iic_master_reset (mpu6050_handle_t *handle, mpu6050_bool_t *enable) |
get the iic master reset status More... | |
uint8_t | mpu6050_sensor_reset (mpu6050_handle_t *handle) |
reset all sensors More... | |
uint8_t | mpu6050_get_sensor_reset (mpu6050_handle_t *handle, mpu6050_bool_t *enable) |
get the sensor reset status More... | |
uint8_t | mpu6050_device_reset (mpu6050_handle_t *handle) |
reset the chip More... | |
uint8_t | mpu6050_get_device_reset (mpu6050_handle_t *handle, mpu6050_bool_t *enable) |
get the device reset status More... | |
uint8_t | mpu6050_set_clock_source (mpu6050_handle_t *handle, mpu6050_clock_source_t clock_source) |
set the chip clock source More... | |
uint8_t | mpu6050_get_clock_source (mpu6050_handle_t *handle, mpu6050_clock_source_t *clock_source) |
get the chip clock source More... | |
uint8_t | mpu6050_set_temperature_sensor (mpu6050_handle_t *handle, mpu6050_bool_t enable) |
enable or disable the temperature sensor More... | |
uint8_t | mpu6050_get_temperature_sensor (mpu6050_handle_t *handle, mpu6050_bool_t *enable) |
get the temperature sensor status More... | |
uint8_t | mpu6050_set_cycle_wake_up (mpu6050_handle_t *handle, mpu6050_bool_t enable) |
enable or disable the cycle wake up mode More... | |
uint8_t | mpu6050_get_cycle_wake_up (mpu6050_handle_t *handle, mpu6050_bool_t *enable) |
get the cycle wake up mode status More... | |
uint8_t | mpu6050_set_sleep (mpu6050_handle_t *handle, mpu6050_bool_t enable) |
enable or disable the sleep mode More... | |
uint8_t | mpu6050_get_sleep (mpu6050_handle_t *handle, mpu6050_bool_t *enable) |
get the sleep status More... | |
uint8_t | mpu6050_set_standby_mode (mpu6050_handle_t *handle, mpu6050_source_t source, mpu6050_bool_t enable) |
set source into standby mode More... | |
uint8_t | mpu6050_get_standby_mode (mpu6050_handle_t *handle, mpu6050_source_t source, mpu6050_bool_t *enable) |
get the source mode More... | |
uint8_t | mpu6050_set_wake_up_frequency (mpu6050_handle_t *handle, mpu6050_wake_up_frequency_t frequency) |
set the wake up frequency More... | |
uint8_t | mpu6050_get_wake_up_frequency (mpu6050_handle_t *handle, mpu6050_wake_up_frequency_t *frequency) |
get the wake up frequency More... | |
uint8_t | mpu6050_get_fifo_count (mpu6050_handle_t *handle, uint16_t *count) |
get the fifo counter value More... | |
uint8_t | mpu6050_fifo_get (mpu6050_handle_t *handle, uint8_t *buf, uint16_t len) |
fifo read bytes More... | |
uint8_t | mpu6050_fifo_set (mpu6050_handle_t *handle, uint8_t *buf, uint16_t len) |
fifo write bytes More... | |
uint8_t | mpu6050_set_signal_path_reset (mpu6050_handle_t *handle, mpu6050_signal_path_reset_t path) |
set the signal path reset More... | |
uint8_t | mpu6050_set_sample_rate_divider (mpu6050_handle_t *handle, uint8_t d) |
set the sample rate divider More... | |
uint8_t | mpu6050_get_sample_rate_divider (mpu6050_handle_t *handle, uint8_t *d) |
get the sample rate divider More... | |
uint8_t | mpu6050_set_extern_sync (mpu6050_handle_t *handle, mpu6050_extern_sync_t sync) |
set the extern sync type More... | |
uint8_t | mpu6050_get_extern_sync (mpu6050_handle_t *handle, mpu6050_extern_sync_t *sync) |
get the extern sync type More... | |
uint8_t | mpu6050_set_low_pass_filter (mpu6050_handle_t *handle, mpu6050_low_pass_filter_t filter) |
set the low pass filter More... | |
uint8_t | mpu6050_get_low_pass_filter (mpu6050_handle_t *handle, mpu6050_low_pass_filter_t *filter) |
get the low pass filter More... | |
uint8_t | mpu6050_set_gyroscope_test (mpu6050_handle_t *handle, mpu6050_axis_t axis, mpu6050_bool_t enable) |
set the gyroscope test More... | |
uint8_t | mpu6050_get_gyroscope_test (mpu6050_handle_t *handle, mpu6050_axis_t axis, mpu6050_bool_t *enable) |
get the gyroscope test More... | |
uint8_t | mpu6050_set_gyroscope_range (mpu6050_handle_t *handle, mpu6050_gyroscope_range_t range) |
set the gyroscope range More... | |
uint8_t | mpu6050_get_gyroscope_range (mpu6050_handle_t *handle, mpu6050_gyroscope_range_t *range) |
get the gyroscope range More... | |
uint8_t | mpu6050_set_accelerometer_test (mpu6050_handle_t *handle, mpu6050_axis_t axis, mpu6050_bool_t enable) |
set the accelerometer test More... | |
uint8_t | mpu6050_get_accelerometer_test (mpu6050_handle_t *handle, mpu6050_axis_t axis, mpu6050_bool_t *enable) |
get the accelerometer test More... | |
uint8_t | mpu6050_set_accelerometer_range (mpu6050_handle_t *handle, mpu6050_accelerometer_range_t range) |
set the accelerometer range More... | |
uint8_t | mpu6050_get_accelerometer_range (mpu6050_handle_t *handle, mpu6050_accelerometer_range_t *range) |
get the accelerometer range More... | |
uint8_t | mpu6050_set_fifo_enable (mpu6050_handle_t *handle, mpu6050_fifo_t fifo, mpu6050_bool_t enable) |
enable or disable the fifo function More... | |
uint8_t | mpu6050_get_fifo_enable (mpu6050_handle_t *handle, mpu6050_fifo_t fifo, mpu6050_bool_t *enable) |
get the fifo function status More... | |
uint8_t | mpu6050_set_interrupt_level (mpu6050_handle_t *handle, mpu6050_pin_level_t level) |
set the interrupt level More... | |
uint8_t | mpu6050_get_interrupt_level (mpu6050_handle_t *handle, mpu6050_pin_level_t *level) |
get the interrupt level More... | |
uint8_t | mpu6050_set_interrupt_pin_type (mpu6050_handle_t *handle, mpu6050_pin_type_t type) |
set the interrupt pin type More... | |
uint8_t | mpu6050_get_interrupt_pin_type (mpu6050_handle_t *handle, mpu6050_pin_type_t *type) |
get the interrupt pin type More... | |
uint8_t | mpu6050_set_interrupt_latch (mpu6050_handle_t *handle, mpu6050_bool_t enable) |
enable or disable the interrupt latch More... | |
uint8_t | mpu6050_get_interrupt_latch (mpu6050_handle_t *handle, mpu6050_bool_t *enable) |
get the interrupt latch status More... | |
uint8_t | mpu6050_set_interrupt_read_clear (mpu6050_handle_t *handle, mpu6050_bool_t enable) |
enable or disable the interrupt reading clear More... | |
uint8_t | mpu6050_get_interrupt_read_clear (mpu6050_handle_t *handle, mpu6050_bool_t *enable) |
get the interrupt reading clear status More... | |
uint8_t | mpu6050_set_fsync_interrupt_level (mpu6050_handle_t *handle, mpu6050_pin_level_t level) |
set the fsync interrupt level More... | |
uint8_t | mpu6050_get_fsync_interrupt_level (mpu6050_handle_t *handle, mpu6050_pin_level_t *level) |
get the fsync interrupt level More... | |
uint8_t | mpu6050_set_fsync_interrupt (mpu6050_handle_t *handle, mpu6050_bool_t enable) |
enable or disable the fsync interrupt More... | |
uint8_t | mpu6050_get_fsync_interrupt (mpu6050_handle_t *handle, mpu6050_bool_t *enable) |
get the fsync interrupt status More... | |
uint8_t | mpu6050_set_iic_bypass (mpu6050_handle_t *handle, mpu6050_bool_t enable) |
enable or disable the iic bypass More... | |
uint8_t | mpu6050_get_iic_bypass (mpu6050_handle_t *handle, mpu6050_bool_t *enable) |
get the iic bypass status More... | |
uint8_t | mpu6050_set_interrupt (mpu6050_handle_t *handle, mpu6050_interrupt_t type, mpu6050_bool_t enable) |
enable or disable the interrupt More... | |
uint8_t | mpu6050_get_interrupt (mpu6050_handle_t *handle, mpu6050_interrupt_t type, mpu6050_bool_t *enable) |
get the interrupt status More... | |
uint8_t | mpu6050_get_interrupt_status (mpu6050_handle_t *handle, uint8_t *status) |
get the interrupt status More... | |
uint8_t | mpu6050_set_gyroscope_x_test (mpu6050_handle_t *handle, uint8_t data) |
set the gyroscope x test More... | |
uint8_t | mpu6050_get_gyroscope_x_test (mpu6050_handle_t *handle, uint8_t *data) |
get the gyroscope x test More... | |
uint8_t | mpu6050_set_gyroscope_y_test (mpu6050_handle_t *handle, uint8_t data) |
set the gyroscope y test More... | |
uint8_t | mpu6050_get_gyroscope_y_test (mpu6050_handle_t *handle, uint8_t *data) |
get the gyroscope y test More... | |
uint8_t | mpu6050_set_gyroscope_z_test (mpu6050_handle_t *handle, uint8_t data) |
set the gyroscope z test More... | |
uint8_t | mpu6050_get_gyroscope_z_test (mpu6050_handle_t *handle, uint8_t *data) |
get the gyroscope z test More... | |
uint8_t | mpu6050_set_accelerometer_x_test (mpu6050_handle_t *handle, uint8_t data) |
set the accelerometer x test More... | |
uint8_t | mpu6050_get_accelerometer_x_test (mpu6050_handle_t *handle, uint8_t *data) |
get the accelerometer x test More... | |
uint8_t | mpu6050_set_accelerometer_y_test (mpu6050_handle_t *handle, uint8_t data) |
set the accelerometer y test More... | |
uint8_t | mpu6050_get_accelerometer_y_test (mpu6050_handle_t *handle, uint8_t *data) |
get the accelerometer y test More... | |
uint8_t | mpu6050_set_accelerometer_z_test (mpu6050_handle_t *handle, uint8_t data) |
set the accelerometer z test More... | |
uint8_t | mpu6050_get_accelerometer_z_test (mpu6050_handle_t *handle, uint8_t *data) |
get the accelerometer z test More... | |
uint8_t | mpu6050_set_motion_threshold (mpu6050_handle_t *handle, uint8_t threshold) |
set the motion_threshold More... | |
uint8_t | mpu6050_get_motion_threshold (mpu6050_handle_t *handle, uint8_t *threshold) |
get the motion_threshold More... | |
uint8_t | mpu6050_motion_threshold_convert_to_register (mpu6050_handle_t *handle, float mg, uint8_t *reg) |
convert the motion threshold to the register raw data More... | |
uint8_t | mpu6050_motion_threshold_convert_to_data (mpu6050_handle_t *handle, uint8_t reg, float *mg) |
convert the register raw data to the motion threshold More... | |
uint8_t | mpu6050_set_motion_duration (mpu6050_handle_t *handle, uint8_t duration) |
set the motion duration More... | |
uint8_t | mpu6050_get_motion_duration (mpu6050_handle_t *handle, uint8_t *duration) |
get the motion duration More... | |
uint8_t | mpu6050_motion_duration_convert_to_register (mpu6050_handle_t *handle, uint8_t ms, uint8_t *reg) |
convert the motion duration to the register raw data More... | |
uint8_t | mpu6050_motion_duration_convert_to_data (mpu6050_handle_t *handle, uint8_t reg, uint8_t *ms) |
convert the register raw data to the motion duration More... | |
uint8_t | mpu6050_set_force_accel_sample (mpu6050_handle_t *handle, mpu6050_bool_t enable) |
enable or disable force accel sample More... | |
uint8_t | mpu6050_self_test (mpu6050_handle_t *handle, int32_t gyro_offset_raw[3], int32_t accel_offset_raw[3]) |
run the self test More... | |
uint8_t | mpu6050_set_iic_clock (mpu6050_handle_t *handle, mpu6050_iic_clock_t clk) |
set the iic clock More... | |
uint8_t | mpu6050_get_iic_clock (mpu6050_handle_t *handle, mpu6050_iic_clock_t *clk) |
get the iic clock More... | |
uint8_t | mpu6050_set_iic_multi_master (mpu6050_handle_t *handle, mpu6050_bool_t enable) |
enable or disable iic multi master More... | |
uint8_t | mpu6050_get_iic_multi_master (mpu6050_handle_t *handle, mpu6050_bool_t *enable) |
get the iic multi master status More... | |
uint8_t | mpu6050_set_iic_wait_for_external_sensor (mpu6050_handle_t *handle, mpu6050_bool_t enable) |
enable or disable iic wait for external sensor More... | |
uint8_t | mpu6050_get_iic_wait_for_external_sensor (mpu6050_handle_t *handle, mpu6050_bool_t *enable) |
get the iic wait for external sensor status More... | |
uint8_t | mpu6050_set_iic_read_mode (mpu6050_handle_t *handle, mpu6050_iic_read_mode_t mode) |
set the iic read mode More... | |
uint8_t | mpu6050_get_iic_read_mode (mpu6050_handle_t *handle, mpu6050_iic_read_mode_t *mode) |
get the iic read mode More... | |
uint8_t | mpu6050_set_iic_fifo_enable (mpu6050_handle_t *handle, mpu6050_iic_slave_t slave, mpu6050_bool_t enable) |
enable or disable the iic fifo More... | |
uint8_t | mpu6050_get_iic_fifo_enable (mpu6050_handle_t *handle, mpu6050_iic_slave_t slave, mpu6050_bool_t *enable) |
get the iic fifo status More... | |
uint8_t | mpu6050_set_iic_mode (mpu6050_handle_t *handle, mpu6050_iic_slave_t slave, mpu6050_iic_mode_t mode) |
set the iic mode More... | |
uint8_t | mpu6050_get_iic_mode (mpu6050_handle_t *handle, mpu6050_iic_slave_t slave, mpu6050_iic_mode_t *mode) |
get the iic mode More... | |
uint8_t | mpu6050_set_iic_address (mpu6050_handle_t *handle, mpu6050_iic_slave_t slave, uint8_t addr_7bit) |
set the iic address More... | |
uint8_t | mpu6050_get_iic_address (mpu6050_handle_t *handle, mpu6050_iic_slave_t slave, uint8_t *addr_7bit) |
get the iic address More... | |
uint8_t | mpu6050_set_iic_register (mpu6050_handle_t *handle, mpu6050_iic_slave_t slave, uint8_t reg) |
set the iic register More... | |
uint8_t | mpu6050_get_iic_register (mpu6050_handle_t *handle, mpu6050_iic_slave_t slave, uint8_t *reg) |
get the iic register More... | |
uint8_t | mpu6050_set_iic_data_out (mpu6050_handle_t *handle, mpu6050_iic_slave_t slave, uint8_t data) |
set the iic data out More... | |
uint8_t | mpu6050_get_iic_data_out (mpu6050_handle_t *handle, mpu6050_iic_slave_t slave, uint8_t *data) |
get the iic data out More... | |
uint8_t | mpu6050_set_iic_enable (mpu6050_handle_t *handle, mpu6050_iic_slave_t slave, mpu6050_bool_t enable) |
enable or disable the iic More... | |
uint8_t | mpu6050_get_iic_enable (mpu6050_handle_t *handle, mpu6050_iic_slave_t slave, mpu6050_bool_t *enable) |
get the iic status More... | |
uint8_t | mpu6050_set_iic_byte_swap (mpu6050_handle_t *handle, mpu6050_iic_slave_t slave, mpu6050_bool_t enable) |
enable or disable the iic byte swap More... | |
uint8_t | mpu6050_get_iic_byte_swap (mpu6050_handle_t *handle, mpu6050_iic_slave_t slave, mpu6050_bool_t *enable) |
get the iic byte swap status More... | |
uint8_t | mpu6050_set_iic_transaction_mode (mpu6050_handle_t *handle, mpu6050_iic_slave_t slave, mpu6050_iic_transaction_mode_t mode) |
set the iic transaction mode More... | |
uint8_t | mpu6050_get_iic_transaction_mode (mpu6050_handle_t *handle, mpu6050_iic_slave_t slave, mpu6050_iic_transaction_mode_t *mode) |
get the iic transaction mode More... | |
uint8_t | mpu6050_set_iic_group_order (mpu6050_handle_t *handle, mpu6050_iic_slave_t slave, mpu6050_iic_group_order_t order) |
set the iic group order More... | |
uint8_t | mpu6050_get_iic_group_order (mpu6050_handle_t *handle, mpu6050_iic_slave_t slave, mpu6050_iic_group_order_t *order) |
get the iic group order More... | |
uint8_t | mpu6050_set_iic_transferred_len (mpu6050_handle_t *handle, mpu6050_iic_slave_t slave, uint8_t len) |
set the iic transferred length More... | |
uint8_t | mpu6050_get_iic_transferred_len (mpu6050_handle_t *handle, mpu6050_iic_slave_t slave, uint8_t *len) |
get the iic transferred length More... | |
uint8_t | mpu6050_get_iic_status (mpu6050_handle_t *handle, uint8_t *status) |
get the iic status More... | |
uint8_t | mpu6050_set_iic_delay_enable (mpu6050_handle_t *handle, mpu6050_iic_delay_t delay, mpu6050_bool_t enable) |
enable or disable the iic delay More... | |
uint8_t | mpu6050_get_iic_delay_enable (mpu6050_handle_t *handle, mpu6050_iic_delay_t delay, mpu6050_bool_t *enable) |
get the iic delay status More... | |
uint8_t | mpu6050_set_iic4_enable (mpu6050_handle_t *handle, mpu6050_bool_t enable) |
enable or disable the iic4 More... | |
uint8_t | mpu6050_get_iic4_enable (mpu6050_handle_t *handle, mpu6050_bool_t *enable) |
get the iic4 status More... | |
uint8_t | mpu6050_set_iic4_interrupt (mpu6050_handle_t *handle, mpu6050_bool_t enable) |
enable or disable the iic4 interrupt More... | |
uint8_t | mpu6050_get_iic4_interrupt (mpu6050_handle_t *handle, mpu6050_bool_t *enable) |
get the iic4 interrupt status More... | |
uint8_t | mpu6050_set_iic4_transaction_mode (mpu6050_handle_t *handle, mpu6050_iic4_transaction_mode_t mode) |
set the iic4 transaction mode More... | |
uint8_t | mpu6050_get_iic4_transaction_mode (mpu6050_handle_t *handle, mpu6050_iic4_transaction_mode_t *mode) |
get the iic4 transaction mode More... | |
uint8_t | mpu6050_set_iic_delay (mpu6050_handle_t *handle, uint8_t delay) |
set the iic delay More... | |
uint8_t | mpu6050_get_iic_delay (mpu6050_handle_t *handle, uint8_t *delay) |
get the iic delay More... | |
uint8_t | mpu6050_set_iic4_data_out (mpu6050_handle_t *handle, uint8_t data) |
set the iic4 data out More... | |
uint8_t | mpu6050_get_iic4_data_out (mpu6050_handle_t *handle, uint8_t *data) |
get the iic4 data out More... | |
uint8_t | mpu6050_set_iic4_data_in (mpu6050_handle_t *handle, uint8_t data) |
set the iic4 data in More... | |
uint8_t | mpu6050_get_iic4_data_in (mpu6050_handle_t *handle, uint8_t *data) |
get the iic4 data in More... | |
uint8_t | mpu6050_read_extern_sensor_data (mpu6050_handle_t *handle, uint8_t *data, uint8_t len) |
read the extern sensor data More... | |
uint8_t | mpu6050_dmp_load_firmware (mpu6050_handle_t *handle) |
load the dmp firmware More... | |
uint8_t | mpu6050_dmp_set_pedometer_walk_time (mpu6050_handle_t *handle, uint32_t ms) |
dmp set the pedometer walk time More... | |
uint8_t | mpu6050_dmp_get_pedometer_walk_time (mpu6050_handle_t *handle, uint32_t *ms) |
dmp get the pedometer walk time More... | |
uint8_t | mpu6050_dmp_set_pedometer_step_count (mpu6050_handle_t *handle, uint32_t count) |
dmp set the pedometer step count More... | |
uint8_t | mpu6050_dmp_get_pedometer_step_count (mpu6050_handle_t *handle, uint32_t *count) |
dmp get the pedometer step count More... | |
uint8_t | mpu6050_dmp_set_shake_reject_timeout (mpu6050_handle_t *handle, uint16_t ms) |
dmp set the shake reject timeout More... | |
uint8_t | mpu6050_dmp_get_shake_reject_timeout (mpu6050_handle_t *handle, uint16_t *ms) |
dmp get the shake reject timeout More... | |
uint8_t | mpu6050_dmp_set_shake_reject_time (mpu6050_handle_t *handle, uint16_t ms) |
dmp set the shake reject time More... | |
uint8_t | mpu6050_dmp_get_shake_reject_time (mpu6050_handle_t *handle, uint16_t *ms) |
dmp get the shake reject time More... | |
uint8_t | mpu6050_dmp_set_shake_reject_thresh (mpu6050_handle_t *handle, uint16_t dps) |
dmp set the shake reject thresh More... | |
uint8_t | mpu6050_dmp_get_shake_reject_thresh (mpu6050_handle_t *handle, uint16_t *dps) |
dmp get the shake reject thresh More... | |
uint8_t | mpu6050_dmp_set_tap_time_multi (mpu6050_handle_t *handle, uint16_t ms) |
dmp set max time between taps to register as a multi tap More... | |
uint8_t | mpu6050_dmp_get_tap_time_multi (mpu6050_handle_t *handle, uint16_t *ms) |
dmp get max time between taps to register as a multi tap More... | |
uint8_t | mpu6050_dmp_set_tap_time (mpu6050_handle_t *handle, uint16_t ms) |
dmp set the tap time More... | |
uint8_t | mpu6050_dmp_get_tap_time (mpu6050_handle_t *handle, uint16_t *ms) |
dmp get the tap time More... | |
uint8_t | mpu6050_dmp_set_min_tap_count (mpu6050_handle_t *handle, uint8_t cnt) |
dmp set the min tap count More... | |
uint8_t | mpu6050_dmp_get_min_tap_count (mpu6050_handle_t *handle, uint8_t *cnt) |
dmp get the min tap count More... | |
uint8_t | mpu6050_dmp_set_tap_axes (mpu6050_handle_t *handle, mpu6050_axis_t axis, mpu6050_bool_t enable) |
dmp enable or disable the tap axes More... | |
uint8_t | mpu6050_dmp_get_tap_axes (mpu6050_handle_t *handle, mpu6050_axis_t axis, mpu6050_bool_t *enable) |
dmp get the tap axes status More... | |
uint8_t | mpu6050_dmp_set_tap_thresh (mpu6050_handle_t *handle, mpu6050_axis_t axis, uint16_t mg_ms) |
dmp set the tap thresh More... | |
uint8_t | mpu6050_dmp_get_tap_thresh (mpu6050_handle_t *handle, mpu6050_axis_t axis, uint16_t *mg_ms) |
dmp get the tap thresh More... | |
uint8_t | mpu6050_dmp_set_fifo_rate (mpu6050_handle_t *handle, uint16_t rate) |
dmp set the fifo rate More... | |
uint8_t | mpu6050_dmp_get_fifo_rate (mpu6050_handle_t *handle, uint16_t *rate) |
dmp get the fifo rate More... | |
uint8_t | mpu6050_dmp_set_gyro_calibrate (mpu6050_handle_t *handle, mpu6050_bool_t enable) |
dmp enable or disable gyro calibrate More... | |
uint8_t | mpu6050_dmp_set_3x_quaternion (mpu6050_handle_t *handle, mpu6050_bool_t enable) |
dmp enable or disable generate 3 axis quaternions from dmp More... | |
uint8_t | mpu6050_dmp_set_6x_quaternion (mpu6050_handle_t *handle, mpu6050_bool_t enable) |
dmp enable or disable generate 6 axis quaternions from dmp More... | |
uint8_t | mpu6050_dmp_set_interrupt_mode (mpu6050_handle_t *handle, mpu6050_dmp_interrupt_mode_t mode) |
dmp set the interrupt mode More... | |
uint8_t | mpu6050_dmp_set_gyro_bias (mpu6050_handle_t *handle, int32_t bias[3]) |
dmp set the gyro bias More... | |
uint8_t | mpu6050_dmp_set_accel_bias (mpu6050_handle_t *handle, int32_t bias[3]) |
dmp set the accel bias More... | |
uint8_t | mpu6050_dmp_set_orientation (mpu6050_handle_t *handle, int8_t mat[9]) |
dmp set the orientation More... | |
uint8_t | mpu6050_dmp_set_feature (mpu6050_handle_t *handle, uint16_t mask) |
dmp enable or disable the dmp feature More... | |
uint8_t | mpu6050_dmp_read (mpu6050_handle_t *handle, int16_t(*accel_raw)[3], float(*accel_g)[3], int16_t(*gyro_raw)[3], float(*gyro_dps)[3], int32_t(*quat)[4], float *pitch, float *roll, float *yaw, uint16_t *l) |
dmp read the data More... | |
uint8_t | mpu6050_dmp_set_tap_callback (mpu6050_handle_t *handle, void(*callback)(uint8_t count, uint8_t direction)) |
dmp set the tap callback More... | |
uint8_t | mpu6050_dmp_set_orient_callback (mpu6050_handle_t *handle, void(*callback)(uint8_t orientation)) |
dmp set the orient callback More... | |
uint8_t | mpu6050_dmp_set_enable (mpu6050_handle_t *handle, mpu6050_bool_t enable) |
enable or disable the dmp More... | |
uint8_t | mpu6050_dmp_gyro_accel_raw_offset_convert (mpu6050_handle_t *handle, int32_t gyro_offset_raw[3], int32_t accel_offset_raw[3], int32_t gyro_offset[3], int32_t accel_offset[3]) |
dmp gyro accel raw offset convert More... | |
uint8_t | mpu6050_set_reg (mpu6050_handle_t *handle, uint8_t reg, uint8_t *buf, uint16_t len) |
set the chip register More... | |
uint8_t | mpu6050_get_reg (mpu6050_handle_t *handle, uint8_t reg, uint8_t *buf, uint16_t len) |
get the chip register More... | |
driver mpu6050 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.
Date | Version | Author | Description |
---|---|---|---|
2022/06/30 | 1.0 | Shifeng Li | first upload |