| LibDriver MPU9250 1.0.0 MPU9250 full function driver

Macros | Functions
mpu9250 example driver function
mpu9250 driver function

mpu9250 example driver modules More...

## Macros
#define | MPU9250_BASIC_DEFAULT_CLOCK_SOURCE MPU9250_CLOCK_SOURCE_PLL
| mpu9250 basic example default definition More...
#define | MPU9250_BASIC_DEFAULT_RATE 50
#define | MPU9250_BASIC_DEFAULT_LOW_PASS_FILTER MPU9250_LOW_PASS_FILTER_3
#define | MPU9250_BASIC_DEFAULT_CYCLE_WAKE_UP MPU9250_BOOL_FALSE
#define | MPU9250_BASIC_DEFAULT_INTERRUPT_PIN_LEVEL MPU9250_PIN_LEVEL_LOW
#define | MPU9250_BASIC_DEFAULT_INTERRUPT_PIN_TYPE MPU9250_PIN_TYPE_PUSH_PULL
#define | MPU9250_BASIC_DEFAULT_ACCELEROMETER_RANGE MPU9250_ACCELEROMETER_RANGE_2G
#define | MPU9250_BASIC_DEFAULT_GYROSCOPE_RANGE MPU9250_GYROSCOPE_RANGE_2000DPS
#define | MPU9250_BASIC_DEFAULT_INTERRUPT_MOTION MPU9250_BOOL_FALSE
#define | MPU9250_BASIC_DEFAULT_INTERRUPT_FIFO_OVERFLOW MPU9250_BOOL_FALSE
#define | MPU9250_BASIC_DEFAULT_INTERRUPT_DMP MPU9250_BOOL_FALSE
#define | MPU9250_BASIC_DEFAULT_INTERRUPT_FSYNC_INT MPU9250_BOOL_FALSE
#define | MPU9250_BASIC_DEFAULT_INTERRUPT_DATA_READY MPU9250_BOOL_FALSE
#define | MPU9250_BASIC_DEFAULT_INTERRUPT_LATCH MPU9250_BOOL_TRUE
#define | MPU9250_BASIC_DEFAULT_INTERRUPT_READ_CLEAR MPU9250_BOOL_TRUE
#define | MPU9250_BASIC_DEFAULT_EXTERN_SYNC MPU9250_EXTERN_SYNC_INPUT_DISABLED
#define | MPU9250_BASIC_DEFAULT_FSYNC_INTERRUPT MPU9250_BOOL_FALSE
#define | MPU9250_BASIC_DEFAULT_FSYNC_INTERRUPT_LEVEL MPU9250_PIN_LEVEL_LOW
#define | MPU9250_BASIC_DEFAULT_IIC_MASTER MPU9250_BOOL_FALSE
#define | MPU9250_BASIC_DEFAULT_IIC_BYPASS MPU9250_BOOL_FALSE
#define | MPU9250_BASIC_DEFAULT_GYROSCOPE_STANDBY MPU9250_BOOL_FALSE
#define | MPU9250_BASIC_DEFAULT_FIFO_MODE MPU9250_FIFO_MODE_NORMAL
#define | MPU9250_BASIC_DEFAULT_GYROSCOPE_CHOICE 0
#define | MPU9250_BASIC_DEFAULT_ACCELEROMETER_CHOICE 0
#define | MPU9250_BASIC_DEFAULT_ACCELEROMETER_LOW_PASS_FILTER MPU9250_ACCELEROMETER_LOW_PASS_FILTER_3
#define | MPU9250_BASIC_DEFAULT_LOW_POWER_ACCEL_OUTPUT_RATE MPU9250_LOW_POWER_ACCEL_OUTPUT_RATE_62P50
#define | MPU9250_BASIC_DEFAULT_WAKE_ON_MOTION MPU9250_BOOL_FALSE
#define | MPU9250_BASIC_DEFAULT_ACCELEROMETER_COMPARE MPU9250_BOOL_TRUE
#define | MPU9250_BASIC_DEFAULT_MAGNETOMETER_MODE MPU9250_MAGNETOMETER_MODE_CONTINUOUS2
#define | MPU9250_BASIC_DEFAULT_MAGNETOMETER_BITS MPU9250_MAGNETOMETER_BITS_16
#define | MPU9250_DMP_DEFAULT_CLOCK_SOURCE MPU9250_CLOCK_SOURCE_PLL
| mpu9250 dmp example default definition More...
#define | MPU9250_DMP_DEFAULT_RATE 50
#define | MPU9250_DMP_DEFAULT_ACCELEROMETER_RANGE MPU9250_ACCELEROMETER_RANGE_2G
#define | MPU9250_DMP_DEFAULT_GYROSCOPE_RANGE MPU9250_GYROSCOPE_RANGE_2000DPS
#define | MPU9250_DMP_DEFAULT_LOW_PASS_FILTER MPU9250_LOW_PASS_FILTER_3
#define | MPU9250_DMP_DEFAULT_CYCLE_WAKE_UP MPU9250_BOOL_FALSE
#define | MPU9250_DMP_DEFAULT_INTERRUPT_PIN_LEVEL MPU9250_PIN_LEVEL_LOW
#define | MPU9250_DMP_DEFAULT_INTERRUPT_PIN_TYPE MPU9250_PIN_TYPE_PUSH_PULL
#define | MPU9250_DMP_DEFAULT_INTERRUPT_MOTION MPU9250_BOOL_TRUE
#define | MPU9250_DMP_DEFAULT_INTERRUPT_FIFO_OVERFLOW MPU9250_BOOL_TRUE
#define | MPU9250_DMP_DEFAULT_INTERRUPT_DMP MPU9250_BOOL_FALSE
#define | MPU9250_DMP_DEFAULT_INTERRUPT_FSYNC_INT MPU9250_BOOL_FALSE
#define | MPU9250_DMP_DEFAULT_INTERRUPT_DATA_READY MPU9250_BOOL_FALSE
#define | MPU9250_DMP_DEFAULT_INTERRUPT_LATCH MPU9250_BOOL_TRUE
#define | MPU9250_DMP_DEFAULT_INTERRUPT_READ_CLEAR MPU9250_BOOL_TRUE
#define | MPU9250_DMP_DEFAULT_EXTERN_SYNC MPU9250_EXTERN_SYNC_INPUT_DISABLED
#define | MPU9250_DMP_DEFAULT_FSYNC_INTERRUPT MPU9250_BOOL_FALSE
#define | MPU9250_DMP_DEFAULT_FSYNC_INTERRUPT_LEVEL MPU9250_PIN_LEVEL_LOW
#define | MPU9250_DMP_DEFAULT_IIC_MASTER MPU9250_BOOL_FALSE
#define | MPU9250_DMP_DEFAULT_IIC_BYPASS MPU9250_BOOL_FALSE
#define | MPU9250_DMP_DEFAULT_PEOMETER_WALK_TIME 200
#define | MPU9250_DMP_DEFAULT_PEOMETER_STEP_COUNT 0
#define | MPU9250_DMP_DEFAULT_SHAKE_REJECT_TIMEOUT 10
#define | MPU9250_DMP_DEFAULT_SHAKE_REJECT_TIME 40
#define | MPU9250_DMP_DEFAULT_SHAKE_REJECT_THRESH 200
#define | MPU9250_DMP_DEFAULT_TAP_TIME_MULTI 200
#define | MPU9250_DMP_DEFAULT_TAP_TIME 100
#define | MPU9250_DMP_DEFAULT_MIN_TAP_COUNT 1
#define | MPU9250_DMP_DEFAULT_TAP_X_THRESH 250
#define | MPU9250_DMP_DEFAULT_TAP_Y_THRESH 250
#define | MPU9250_DMP_DEFAULT_TAP_Z_THRESH 250
#define | MPU9250_DMP_DEFAULT_INTERRUPT_MODE MPU9250_DMP_INTERRUPT_MODE_CONTINUOUS
#define | MPU9250_DMP_DEFAULT_MOTION_THRESHOLD 200
#define | MPU9250_DMP_DEFAULT_GYROSCOPE_STANDBY MPU9250_BOOL_FALSE
#define | MPU9250_DMP_DEFAULT_FIFO_MODE MPU9250_FIFO_MODE_NORMAL
#define | MPU9250_DMP_DEFAULT_GYROSCOPE_CHOICE 0
#define | MPU9250_DMP_DEFAULT_ACCELEROMETER_CHOICE 0
#define | MPU9250_DMP_DEFAULT_ACCELEROMETER_LOW_PASS_FILTER MPU9250_ACCELEROMETER_LOW_PASS_FILTER_3
#define | MPU9250_DMP_DEFAULT_LOW_POWER_ACCEL_OUTPUT_RATE MPU9250_LOW_POWER_ACCEL_OUTPUT_RATE_62P50
#define | MPU9250_DMP_DEFAULT_ACCELEROMETER_COMPARE MPU9250_BOOL_TRUE
#define | MPU9250_DMP_DEFAULT_MAGNETOMETER_MODE MPU9250_MAGNETOMETER_MODE_CONTINUOUS2
#define | MPU9250_DMP_DEFAULT_MAGNETOMETER_BITS MPU9250_MAGNETOMETER_BITS_16
#define | MPU9250_DMP_DEFAULT_IIC_CLOCK MPU9250_IIC_CLOCK_400_KHZ
#define | MPU9250_DMP_DEFAULT_IIC_MULTI_MASTER MPU9250_BOOL_TRUE
#define | MPU9250_DMP_DEFAULT_IIC_WAIT_FOR_EXTERNAL_SENSOR MPU9250_BOOL_FALSE
#define | MPU9250_DMP_DEFAULT_IIC_READ_MODE MPU9250_IIC_READ_MODE_RESTART
#define | MPU9250_DMP_DEFAULT_IIC_DELAY MPU9250_BOOL_FALSE
#define | MPU9250_FIFO_DEFAULT_CLOCK_SOURCE MPU9250_CLOCK_SOURCE_PLL
| mpu9250 fifo example default definition More...
#define | MPU9250_FIFO_DEFAULT_RATE 50
#define | MPU9250_FIFO_DEFAULT_ACCELEROMETER_RANGE MPU9250_ACCELEROMETER_RANGE_2G
#define | MPU9250_FIFO_DEFAULT_GYROSCOPE_RANGE MPU9250_GYROSCOPE_RANGE_2000DPS
#define | MPU9250_FIFO_DEFAULT_LOW_PASS_FILTER MPU9250_LOW_PASS_FILTER_3
#define | MPU9250_FIFO_DEFAULT_CYCLE_WAKE_UP MPU9250_BOOL_FALSE
#define | MPU9250_FIFO_DEFAULT_INTERRUPT_PIN_LEVEL MPU9250_PIN_LEVEL_LOW
#define | MPU9250_FIFO_DEFAULT_INTERRUPT_PIN_TYPE MPU9250_PIN_TYPE_PUSH_PULL
#define | MPU9250_FIFO_DEFAULT_INTERRUPT_MOTION MPU9250_BOOL_FALSE
#define | MPU9250_FIFO_DEFAULT_INTERRUPT_FIFO_OVERFLOW MPU9250_BOOL_TRUE
#define | MPU9250_FIFO_DEFAULT_INTERRUPT_DMP MPU9250_BOOL_FALSE
#define | MPU9250_FIFO_DEFAULT_INTERRUPT_FSYNC_INT MPU9250_BOOL_FALSE
#define | MPU9250_FIFO_DEFAULT_INTERRUPT_DATA_READY MPU9250_BOOL_FALSE
#define | MPU9250_FIFO_DEFAULT_INTERRUPT_LATCH MPU9250_BOOL_TRUE
#define | MPU9250_FIFO_DEFAULT_INTERRUPT_READ_CLEAR MPU9250_BOOL_TRUE
#define | MPU9250_FIFO_DEFAULT_EXTERN_SYNC MPU9250_EXTERN_SYNC_INPUT_DISABLED
#define | MPU9250_FIFO_DEFAULT_FSYNC_INTERRUPT MPU9250_BOOL_FALSE
#define | MPU9250_FIFO_DEFAULT_FSYNC_INTERRUPT_LEVEL MPU9250_PIN_LEVEL_LOW
#define | MPU9250_FIFO_DEFAULT_IIC_MASTER MPU9250_BOOL_FALSE
#define | MPU9250_FIFO_DEFAULT_IIC_BYPASS MPU9250_BOOL_FALSE
#define | MPU9250_FIFO_DEFAULT_GYROSCOPE_STANDBY MPU9250_BOOL_FALSE
#define | MPU9250_FIFO_DEFAULT_FIFO_MODE MPU9250_FIFO_MODE_NORMAL
#define | MPU9250_FIFO_DEFAULT_GYROSCOPE_CHOICE 0
#define | MPU9250_FIFO_DEFAULT_ACCELEROMETER_CHOICE 0
#define | MPU9250_FIFO_DEFAULT_ACCELEROMETER_LOW_PASS_FILTER MPU9250_ACCELEROMETER_LOW_PASS_FILTER_3
#define | MPU9250_FIFO_DEFAULT_LOW_POWER_ACCEL_OUTPUT_RATE MPU9250_LOW_POWER_ACCEL_OUTPUT_RATE_62P50
#define | MPU9250_FIFO_DEFAULT_WAKE_ON_MOTION MPU9250_BOOL_FALSE
#define | MPU9250_FIFO_DEFAULT_ACCELEROMETER_COMPARE MPU9250_BOOL_TRUE
#define | MPU9250_FIFO_DEFAULT_MAGNETOMETER_MODE MPU9250_MAGNETOMETER_MODE_CONTINUOUS2
#define | MPU9250_FIFO_DEFAULT_MAGNETOMETER_BITS MPU9250_MAGNETOMETER_BITS_16
#define | MPU9250_FIFO_DEFAULT_IIC_CLOCK MPU9250_IIC_CLOCK_400_KHZ
#define | MPU9250_FIFO_DEFAULT_IIC_MULTI_MASTER MPU9250_BOOL_TRUE
#define | MPU9250_FIFO_DEFAULT_IIC_WAIT_FOR_EXTERNAL_SENSOR MPU9250_BOOL_FALSE
#define | MPU9250_FIFO_DEFAULT_IIC_READ_MODE MPU9250_IIC_READ_MODE_RESTART
#define | MPU9250_FIFO_DEFAULT_IIC_DELAY MPU9250_BOOL_FALSE

## Functions
uint8_t | mpu9250_basic_init (mpu9250_interface_t interface, mpu9250_address_t addr_pin)
| basic example init More...
uint8_t | mpu9250_basic_deinit (void)
| basic example deinit More...
uint8_t | mpu9250_basic_read (float g[3], float dps[3], float ut[3])
| basic example read More...
uint8_t | mpu9250_basic_read_temperature (float *degrees)
| basic example read temperature More...
uint8_t | mpu9250_dmp_irq_handler (void)
| dmp irq More...
uint8_t | mpu9250_dmp_init (mpu9250_interface_t interface, mpu9250_address_t addr_pin, void(*receive_callback)(uint8_t type), void(*tap_callback)(uint8_t count, uint8_t direction), void(*orient_callback)(uint8_t orientation))
| dmp example init More...
uint8_t | mpu9250_dmp_deinit (void)
| dmp example deinit More...
uint8_t | mpu9250_dmp_read_all (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 example read More...
uint8_t | mpu9250_dmp_get_pedometer_counter (uint32_t *cnt)
| dmp example get pedometer counter More...
uint8_t | mpu9250_fifo_irq_handler (void)
| fifo irq More...
uint8_t | mpu9250_fifo_init (mpu9250_interface_t interface, mpu9250_address_t addr_pin)
| fifo example init More...
uint8_t | mpu9250_fifo_read (int16_t(*accel_raw)[3], float(*accel_g)[3], int16_t(*gyro_raw)[3], float(*gyro_dps)[3], int16_t(*mag_raw)[3], float(*mag_ut)[3], uint16_t *len)
| fifo example read More...
uint8_t | mpu9250_fifo_deinit (void)
| fifo example deinit More...

## Detailed Description

mpu9250 example driver modules

## Macro Definition Documentation

## ◆ MPU9250_BASIC_DEFAULT_ACCELEROMETER_CHOICE

#define MPU9250_BASIC_DEFAULT_ACCELEROMETER_CHOICE 0

0

Definition at line 79 of file driver_mpu9250_basic.h.

## ◆ MPU9250_BASIC_DEFAULT_ACCELEROMETER_COMPARE

#define MPU9250_BASIC_DEFAULT_ACCELEROMETER_COMPARE MPU9250_BOOL_TRUE

enable compare

Definition at line 83 of file driver_mpu9250_basic.h.

## ◆ MPU9250_BASIC_DEFAULT_ACCELEROMETER_LOW_PASS_FILTER

#define MPU9250_BASIC_DEFAULT_ACCELEROMETER_LOW_PASS_FILTER MPU9250_ACCELEROMETER_LOW_PASS_FILTER_3

low pass filter 3

Definition at line 80 of file driver_mpu9250_basic.h.

## ◆ MPU9250_BASIC_DEFAULT_ACCELEROMETER_RANGE

#define MPU9250_BASIC_DEFAULT_ACCELEROMETER_RANGE MPU9250_ACCELEROMETER_RANGE_2G

2g

Definition at line 62 of file driver_mpu9250_basic.h.

## ◆ MPU9250_BASIC_DEFAULT_CLOCK_SOURCE

#define MPU9250_BASIC_DEFAULT_CLOCK_SOURCE MPU9250_CLOCK_SOURCE_PLL

mpu9250 basic example default definition

pll

Definition at line 56 of file driver_mpu9250_basic.h.

## ◆ MPU9250_BASIC_DEFAULT_CYCLE_WAKE_UP

#define MPU9250_BASIC_DEFAULT_CYCLE_WAKE_UP MPU9250_BOOL_FALSE

disable cycle wake up

Definition at line 59 of file driver_mpu9250_basic.h.

## ◆ MPU9250_BASIC_DEFAULT_EXTERN_SYNC

#define MPU9250_BASIC_DEFAULT_EXTERN_SYNC MPU9250_EXTERN_SYNC_INPUT_DISABLED

extern sync input disable

Definition at line 71 of file driver_mpu9250_basic.h.

## ◆ MPU9250_BASIC_DEFAULT_FIFO_MODE

#define MPU9250_BASIC_DEFAULT_FIFO_MODE MPU9250_FIFO_MODE_NORMAL

normal mode

Definition at line 77 of file driver_mpu9250_basic.h.

## ◆ MPU9250_BASIC_DEFAULT_FSYNC_INTERRUPT

#define MPU9250_BASIC_DEFAULT_FSYNC_INTERRUPT MPU9250_BOOL_FALSE

disable fsync interrupt

Definition at line 72 of file driver_mpu9250_basic.h.

## ◆ MPU9250_BASIC_DEFAULT_FSYNC_INTERRUPT_LEVEL

#define MPU9250_BASIC_DEFAULT_FSYNC_INTERRUPT_LEVEL MPU9250_PIN_LEVEL_LOW

low level

Definition at line 73 of file driver_mpu9250_basic.h.

## ◆ MPU9250_BASIC_DEFAULT_GYROSCOPE_CHOICE

#define MPU9250_BASIC_DEFAULT_GYROSCOPE_CHOICE 0

0

Definition at line 78 of file driver_mpu9250_basic.h.

## ◆ MPU9250_BASIC_DEFAULT_GYROSCOPE_RANGE

#define MPU9250_BASIC_DEFAULT_GYROSCOPE_RANGE MPU9250_GYROSCOPE_RANGE_2000DPS

2000dps

Definition at line 63 of file driver_mpu9250_basic.h.

## ◆ MPU9250_BASIC_DEFAULT_GYROSCOPE_STANDBY

#define MPU9250_BASIC_DEFAULT_GYROSCOPE_STANDBY MPU9250_BOOL_FALSE

disable gyro standby

Definition at line 76 of file driver_mpu9250_basic.h.

## ◆ MPU9250_BASIC_DEFAULT_IIC_BYPASS

#define MPU9250_BASIC_DEFAULT_IIC_BYPASS MPU9250_BOOL_FALSE

disable iic bypass

Definition at line 75 of file driver_mpu9250_basic.h.

## ◆ MPU9250_BASIC_DEFAULT_IIC_MASTER

#define MPU9250_BASIC_DEFAULT_IIC_MASTER MPU9250_BOOL_FALSE

disable iic master

Definition at line 74 of file driver_mpu9250_basic.h.

## ◆ MPU9250_BASIC_DEFAULT_INTERRUPT_DATA_READY

#define MPU9250_BASIC_DEFAULT_INTERRUPT_DATA_READY MPU9250_BOOL_FALSE

disable data ready

Definition at line 68 of file driver_mpu9250_basic.h.

## ◆ MPU9250_BASIC_DEFAULT_INTERRUPT_DMP

#define MPU9250_BASIC_DEFAULT_INTERRUPT_DMP MPU9250_BOOL_FALSE

disable dmp

Definition at line 66 of file driver_mpu9250_basic.h.

## ◆ MPU9250_BASIC_DEFAULT_INTERRUPT_FIFO_OVERFLOW

#define MPU9250_BASIC_DEFAULT_INTERRUPT_FIFO_OVERFLOW MPU9250_BOOL_FALSE

disable fifo overflow

Definition at line 65 of file driver_mpu9250_basic.h.

## ◆ MPU9250_BASIC_DEFAULT_INTERRUPT_FSYNC_INT

#define MPU9250_BASIC_DEFAULT_INTERRUPT_FSYNC_INT MPU9250_BOOL_FALSE

disable fsync int

Definition at line 67 of file driver_mpu9250_basic.h.

## ◆ MPU9250_BASIC_DEFAULT_INTERRUPT_LATCH

#define MPU9250_BASIC_DEFAULT_INTERRUPT_LATCH MPU9250_BOOL_TRUE

enable latch

Definition at line 69 of file driver_mpu9250_basic.h.

## ◆ MPU9250_BASIC_DEFAULT_INTERRUPT_MOTION

#define MPU9250_BASIC_DEFAULT_INTERRUPT_MOTION MPU9250_BOOL_FALSE

disable motion

Definition at line 64 of file driver_mpu9250_basic.h.

## ◆ MPU9250_BASIC_DEFAULT_INTERRUPT_PIN_LEVEL

#define MPU9250_BASIC_DEFAULT_INTERRUPT_PIN_LEVEL MPU9250_PIN_LEVEL_LOW

low level

Definition at line 60 of file driver_mpu9250_basic.h.

## ◆ MPU9250_BASIC_DEFAULT_INTERRUPT_PIN_TYPE

#define MPU9250_BASIC_DEFAULT_INTERRUPT_PIN_TYPE MPU9250_PIN_TYPE_PUSH_PULL

push pull

Definition at line 61 of file driver_mpu9250_basic.h.

## ◆ MPU9250_BASIC_DEFAULT_INTERRUPT_READ_CLEAR

#define MPU9250_BASIC_DEFAULT_INTERRUPT_READ_CLEAR MPU9250_BOOL_TRUE

enable interrupt read clear

Definition at line 70 of file driver_mpu9250_basic.h.

## ◆ MPU9250_BASIC_DEFAULT_LOW_PASS_FILTER

#define MPU9250_BASIC_DEFAULT_LOW_PASS_FILTER MPU9250_LOW_PASS_FILTER_3

low pass filter 3

Definition at line 58 of file driver_mpu9250_basic.h.

## ◆ MPU9250_BASIC_DEFAULT_LOW_POWER_ACCEL_OUTPUT_RATE

#define MPU9250_BASIC_DEFAULT_LOW_POWER_ACCEL_OUTPUT_RATE MPU9250_LOW_POWER_ACCEL_OUTPUT_RATE_62P50

62.5Hz

Definition at line 81 of file driver_mpu9250_basic.h.

## ◆ MPU9250_BASIC_DEFAULT_MAGNETOMETER_BITS

#define MPU9250_BASIC_DEFAULT_MAGNETOMETER_BITS MPU9250_MAGNETOMETER_BITS_16

16bits

Definition at line 85 of file driver_mpu9250_basic.h.

## ◆ MPU9250_BASIC_DEFAULT_MAGNETOMETER_MODE

#define MPU9250_BASIC_DEFAULT_MAGNETOMETER_MODE MPU9250_MAGNETOMETER_MODE_CONTINUOUS2

100Hz

Definition at line 84 of file driver_mpu9250_basic.h.

## ◆ MPU9250_BASIC_DEFAULT_RATE

#define MPU9250_BASIC_DEFAULT_RATE 50

50Hz

Definition at line 57 of file driver_mpu9250_basic.h.

## ◆ MPU9250_BASIC_DEFAULT_WAKE_ON_MOTION

#define MPU9250_BASIC_DEFAULT_WAKE_ON_MOTION MPU9250_BOOL_FALSE

disable wake on motion

Definition at line 82 of file driver_mpu9250_basic.h.

## ◆ MPU9250_DMP_DEFAULT_ACCELEROMETER_CHOICE

#define MPU9250_DMP_DEFAULT_ACCELEROMETER_CHOICE 0

0

Definition at line 90 of file driver_mpu9250_dmp.h.

## ◆ MPU9250_DMP_DEFAULT_ACCELEROMETER_COMPARE

#define MPU9250_DMP_DEFAULT_ACCELEROMETER_COMPARE MPU9250_BOOL_TRUE

enable compare

Definition at line 93 of file driver_mpu9250_dmp.h.

## ◆ MPU9250_DMP_DEFAULT_ACCELEROMETER_LOW_PASS_FILTER

#define MPU9250_DMP_DEFAULT_ACCELEROMETER_LOW_PASS_FILTER MPU9250_ACCELEROMETER_LOW_PASS_FILTER_3

low pass filter 3

Definition at line 91 of file driver_mpu9250_dmp.h.

## ◆ MPU9250_DMP_DEFAULT_ACCELEROMETER_RANGE

#define MPU9250_DMP_DEFAULT_ACCELEROMETER_RANGE MPU9250_ACCELEROMETER_RANGE_2G

2g

Definition at line 56 of file driver_mpu9250_dmp.h.

## ◆ MPU9250_DMP_DEFAULT_CLOCK_SOURCE

#define MPU9250_DMP_DEFAULT_CLOCK_SOURCE MPU9250_CLOCK_SOURCE_PLL

mpu9250 dmp example default definition

pll

Definition at line 54 of file driver_mpu9250_dmp.h.

## ◆ MPU9250_DMP_DEFAULT_CYCLE_WAKE_UP

#define MPU9250_DMP_DEFAULT_CYCLE_WAKE_UP MPU9250_BOOL_FALSE

disable cycle wake up

Definition at line 59 of file driver_mpu9250_dmp.h.

## ◆ MPU9250_DMP_DEFAULT_EXTERN_SYNC

#define MPU9250_DMP_DEFAULT_EXTERN_SYNC MPU9250_EXTERN_SYNC_INPUT_DISABLED

extern sync input disable

Definition at line 69 of file driver_mpu9250_dmp.h.

## ◆ MPU9250_DMP_DEFAULT_FIFO_MODE

#define MPU9250_DMP_DEFAULT_FIFO_MODE MPU9250_FIFO_MODE_NORMAL

normal mode

Definition at line 88 of file driver_mpu9250_dmp.h.

## ◆ MPU9250_DMP_DEFAULT_FSYNC_INTERRUPT

#define MPU9250_DMP_DEFAULT_FSYNC_INTERRUPT MPU9250_BOOL_FALSE

disable fsync interrupt

Definition at line 70 of file driver_mpu9250_dmp.h.

## ◆ MPU9250_DMP_DEFAULT_FSYNC_INTERRUPT_LEVEL

#define MPU9250_DMP_DEFAULT_FSYNC_INTERRUPT_LEVEL MPU9250_PIN_LEVEL_LOW

low level

Definition at line 71 of file driver_mpu9250_dmp.h.

## ◆ MPU9250_DMP_DEFAULT_GYROSCOPE_CHOICE

#define MPU9250_DMP_DEFAULT_GYROSCOPE_CHOICE 0

0

Definition at line 89 of file driver_mpu9250_dmp.h.

## ◆ MPU9250_DMP_DEFAULT_GYROSCOPE_RANGE

#define MPU9250_DMP_DEFAULT_GYROSCOPE_RANGE MPU9250_GYROSCOPE_RANGE_2000DPS

2000dps

Definition at line 57 of file driver_mpu9250_dmp.h.

## ◆ MPU9250_DMP_DEFAULT_GYROSCOPE_STANDBY

#define MPU9250_DMP_DEFAULT_GYROSCOPE_STANDBY MPU9250_BOOL_FALSE

disable gyro standby

Definition at line 87 of file driver_mpu9250_dmp.h.

## ◆ MPU9250_DMP_DEFAULT_IIC_BYPASS

#define MPU9250_DMP_DEFAULT_IIC_BYPASS MPU9250_BOOL_FALSE

disable iic bypass

Definition at line 73 of file driver_mpu9250_dmp.h.

## ◆ MPU9250_DMP_DEFAULT_IIC_CLOCK

#define MPU9250_DMP_DEFAULT_IIC_CLOCK MPU9250_IIC_CLOCK_400_KHZ

400KHz

Definition at line 96 of file driver_mpu9250_dmp.h.

## ◆ MPU9250_DMP_DEFAULT_IIC_DELAY

#define MPU9250_DMP_DEFAULT_IIC_DELAY MPU9250_BOOL_FALSE

disable iic delay

Definition at line 100 of file driver_mpu9250_dmp.h.

## ◆ MPU9250_DMP_DEFAULT_IIC_MASTER

#define MPU9250_DMP_DEFAULT_IIC_MASTER MPU9250_BOOL_FALSE

disable iic master

Definition at line 72 of file driver_mpu9250_dmp.h.

## ◆ MPU9250_DMP_DEFAULT_IIC_MULTI_MASTER

#define MPU9250_DMP_DEFAULT_IIC_MULTI_MASTER MPU9250_BOOL_TRUE

enable multi master

Definition at line 97 of file driver_mpu9250_dmp.h.

## ◆ MPU9250_DMP_DEFAULT_IIC_READ_MODE

#define MPU9250_DMP_DEFAULT_IIC_READ_MODE MPU9250_IIC_READ_MODE_RESTART

restart mode

Definition at line 99 of file driver_mpu9250_dmp.h.

## ◆ MPU9250_DMP_DEFAULT_IIC_WAIT_FOR_EXTERNAL_SENSOR

#define MPU9250_DMP_DEFAULT_IIC_WAIT_FOR_EXTERNAL_SENSOR MPU9250_BOOL_FALSE

disable wait for external sensor

Definition at line 98 of file driver_mpu9250_dmp.h.

## ◆ MPU9250_DMP_DEFAULT_INTERRUPT_DATA_READY

#define MPU9250_DMP_DEFAULT_INTERRUPT_DATA_READY MPU9250_BOOL_FALSE

disable data ready

Definition at line 66 of file driver_mpu9250_dmp.h.

## ◆ MPU9250_DMP_DEFAULT_INTERRUPT_DMP

#define MPU9250_DMP_DEFAULT_INTERRUPT_DMP MPU9250_BOOL_FALSE

disable dmp

Definition at line 64 of file driver_mpu9250_dmp.h.

## ◆ MPU9250_DMP_DEFAULT_INTERRUPT_FIFO_OVERFLOW

#define MPU9250_DMP_DEFAULT_INTERRUPT_FIFO_OVERFLOW MPU9250_BOOL_TRUE

enable fifo overflow

Definition at line 63 of file driver_mpu9250_dmp.h.

## ◆ MPU9250_DMP_DEFAULT_INTERRUPT_FSYNC_INT

#define MPU9250_DMP_DEFAULT_INTERRUPT_FSYNC_INT MPU9250_BOOL_FALSE

disable fsync int

Definition at line 65 of file driver_mpu9250_dmp.h.

## ◆ MPU9250_DMP_DEFAULT_INTERRUPT_LATCH

#define MPU9250_DMP_DEFAULT_INTERRUPT_LATCH MPU9250_BOOL_TRUE

enable latch

Definition at line 67 of file driver_mpu9250_dmp.h.

## ◆ MPU9250_DMP_DEFAULT_INTERRUPT_MODE

#define MPU9250_DMP_DEFAULT_INTERRUPT_MODE MPU9250_DMP_INTERRUPT_MODE_CONTINUOUS

interrupt continuous mode

Definition at line 85 of file driver_mpu9250_dmp.h.

## ◆ MPU9250_DMP_DEFAULT_INTERRUPT_MOTION

#define MPU9250_DMP_DEFAULT_INTERRUPT_MOTION MPU9250_BOOL_TRUE

enable motion

Definition at line 62 of file driver_mpu9250_dmp.h.

## ◆ MPU9250_DMP_DEFAULT_INTERRUPT_PIN_LEVEL

#define MPU9250_DMP_DEFAULT_INTERRUPT_PIN_LEVEL MPU9250_PIN_LEVEL_LOW

low level

Definition at line 60 of file driver_mpu9250_dmp.h.

## ◆ MPU9250_DMP_DEFAULT_INTERRUPT_PIN_TYPE

#define MPU9250_DMP_DEFAULT_INTERRUPT_PIN_TYPE MPU9250_PIN_TYPE_PUSH_PULL

push pull

Definition at line 61 of file driver_mpu9250_dmp.h.

## ◆ MPU9250_DMP_DEFAULT_INTERRUPT_READ_CLEAR

#define MPU9250_DMP_DEFAULT_INTERRUPT_READ_CLEAR MPU9250_BOOL_TRUE

enable interrupt read clear

Definition at line 68 of file driver_mpu9250_dmp.h.

## ◆ MPU9250_DMP_DEFAULT_LOW_PASS_FILTER

#define MPU9250_DMP_DEFAULT_LOW_PASS_FILTER MPU9250_LOW_PASS_FILTER_3

low pass filter 3

Definition at line 58 of file driver_mpu9250_dmp.h.

## ◆ MPU9250_DMP_DEFAULT_LOW_POWER_ACCEL_OUTPUT_RATE

#define MPU9250_DMP_DEFAULT_LOW_POWER_ACCEL_OUTPUT_RATE MPU9250_LOW_POWER_ACCEL_OUTPUT_RATE_62P50

62.5Hz

Definition at line 92 of file driver_mpu9250_dmp.h.

## ◆ MPU9250_DMP_DEFAULT_MAGNETOMETER_BITS

#define MPU9250_DMP_DEFAULT_MAGNETOMETER_BITS MPU9250_MAGNETOMETER_BITS_16

16bits

Definition at line 95 of file driver_mpu9250_dmp.h.

## ◆ MPU9250_DMP_DEFAULT_MAGNETOMETER_MODE

#define MPU9250_DMP_DEFAULT_MAGNETOMETER_MODE MPU9250_MAGNETOMETER_MODE_CONTINUOUS2

100Hz

Definition at line 94 of file driver_mpu9250_dmp.h.

## ◆ MPU9250_DMP_DEFAULT_MIN_TAP_COUNT

#define MPU9250_DMP_DEFAULT_MIN_TAP_COUNT 1

1

Definition at line 81 of file driver_mpu9250_dmp.h.

## ◆ MPU9250_DMP_DEFAULT_MOTION_THRESHOLD

#define MPU9250_DMP_DEFAULT_MOTION_THRESHOLD 200

200 mg

Definition at line 86 of file driver_mpu9250_dmp.h.

## ◆ MPU9250_DMP_DEFAULT_PEOMETER_STEP_COUNT

#define MPU9250_DMP_DEFAULT_PEOMETER_STEP_COUNT 0

0

Definition at line 75 of file driver_mpu9250_dmp.h.

## ◆ MPU9250_DMP_DEFAULT_PEOMETER_WALK_TIME

#define MPU9250_DMP_DEFAULT_PEOMETER_WALK_TIME 200

200ms

Definition at line 74 of file driver_mpu9250_dmp.h.

## ◆ MPU9250_DMP_DEFAULT_RATE

#define MPU9250_DMP_DEFAULT_RATE 50

50Hz

Definition at line 55 of file driver_mpu9250_dmp.h.

## ◆ MPU9250_DMP_DEFAULT_SHAKE_REJECT_THRESH

#define MPU9250_DMP_DEFAULT_SHAKE_REJECT_THRESH 200

200dps

Definition at line 78 of file driver_mpu9250_dmp.h.

## ◆ MPU9250_DMP_DEFAULT_SHAKE_REJECT_TIME

#define MPU9250_DMP_DEFAULT_SHAKE_REJECT_TIME 40

40ms

Definition at line 77 of file driver_mpu9250_dmp.h.

## ◆ MPU9250_DMP_DEFAULT_SHAKE_REJECT_TIMEOUT

#define MPU9250_DMP_DEFAULT_SHAKE_REJECT_TIMEOUT 10

10ms

Definition at line 76 of file driver_mpu9250_dmp.h.

## ◆ MPU9250_DMP_DEFAULT_TAP_TIME

#define MPU9250_DMP_DEFAULT_TAP_TIME 100

100ms

Definition at line 80 of file driver_mpu9250_dmp.h.

## ◆ MPU9250_DMP_DEFAULT_TAP_TIME_MULTI

#define MPU9250_DMP_DEFAULT_TAP_TIME_MULTI 200

200ms

Definition at line 79 of file driver_mpu9250_dmp.h.

## ◆ MPU9250_DMP_DEFAULT_TAP_X_THRESH

#define MPU9250_DMP_DEFAULT_TAP_X_THRESH 250

250 mg/ms

Definition at line 82 of file driver_mpu9250_dmp.h.

## ◆ MPU9250_DMP_DEFAULT_TAP_Y_THRESH

#define MPU9250_DMP_DEFAULT_TAP_Y_THRESH 250

250 mg/ms

Definition at line 83 of file driver_mpu9250_dmp.h.

## ◆ MPU9250_DMP_DEFAULT_TAP_Z_THRESH

#define MPU9250_DMP_DEFAULT_TAP_Z_THRESH 250

250 mg/ms

Definition at line 84 of file driver_mpu9250_dmp.h.

## ◆ MPU9250_FIFO_DEFAULT_ACCELEROMETER_CHOICE

#define MPU9250_FIFO_DEFAULT_ACCELEROMETER_CHOICE 0

0

Definition at line 77 of file driver_mpu9250_fifo.h.

## ◆ MPU9250_FIFO_DEFAULT_ACCELEROMETER_COMPARE

#define MPU9250_FIFO_DEFAULT_ACCELEROMETER_COMPARE MPU9250_BOOL_TRUE

enable compare

Definition at line 81 of file driver_mpu9250_fifo.h.

## ◆ MPU9250_FIFO_DEFAULT_ACCELEROMETER_LOW_PASS_FILTER

#define MPU9250_FIFO_DEFAULT_ACCELEROMETER_LOW_PASS_FILTER MPU9250_ACCELEROMETER_LOW_PASS_FILTER_3

low pass filter 3

Definition at line 78 of file driver_mpu9250_fifo.h.

## ◆ MPU9250_FIFO_DEFAULT_ACCELEROMETER_RANGE

#define MPU9250_FIFO_DEFAULT_ACCELEROMETER_RANGE MPU9250_ACCELEROMETER_RANGE_2G

2g

Definition at line 56 of file driver_mpu9250_fifo.h.

## ◆ MPU9250_FIFO_DEFAULT_CLOCK_SOURCE

#define MPU9250_FIFO_DEFAULT_CLOCK_SOURCE MPU9250_CLOCK_SOURCE_PLL

mpu9250 fifo example default definition

pll

Definition at line 54 of file driver_mpu9250_fifo.h.

## ◆ MPU9250_FIFO_DEFAULT_CYCLE_WAKE_UP

#define MPU9250_FIFO_DEFAULT_CYCLE_WAKE_UP MPU9250_BOOL_FALSE

disable cycle wake up

Definition at line 59 of file driver_mpu9250_fifo.h.

## ◆ MPU9250_FIFO_DEFAULT_EXTERN_SYNC

#define MPU9250_FIFO_DEFAULT_EXTERN_SYNC MPU9250_EXTERN_SYNC_INPUT_DISABLED

extern sync input disable

Definition at line 69 of file driver_mpu9250_fifo.h.

## ◆ MPU9250_FIFO_DEFAULT_FIFO_MODE

#define MPU9250_FIFO_DEFAULT_FIFO_MODE MPU9250_FIFO_MODE_NORMAL

normal mode

Definition at line 75 of file driver_mpu9250_fifo.h.

## ◆ MPU9250_FIFO_DEFAULT_FSYNC_INTERRUPT

#define MPU9250_FIFO_DEFAULT_FSYNC_INTERRUPT MPU9250_BOOL_FALSE

disable fsync interrupt

Definition at line 70 of file driver_mpu9250_fifo.h.

## ◆ MPU9250_FIFO_DEFAULT_FSYNC_INTERRUPT_LEVEL

#define MPU9250_FIFO_DEFAULT_FSYNC_INTERRUPT_LEVEL MPU9250_PIN_LEVEL_LOW

low level

Definition at line 71 of file driver_mpu9250_fifo.h.

## ◆ MPU9250_FIFO_DEFAULT_GYROSCOPE_CHOICE

#define MPU9250_FIFO_DEFAULT_GYROSCOPE_CHOICE 0

0

Definition at line 76 of file driver_mpu9250_fifo.h.

## ◆ MPU9250_FIFO_DEFAULT_GYROSCOPE_RANGE

#define MPU9250_FIFO_DEFAULT_GYROSCOPE_RANGE MPU9250_GYROSCOPE_RANGE_2000DPS

2000dps

Definition at line 57 of file driver_mpu9250_fifo.h.

## ◆ MPU9250_FIFO_DEFAULT_GYROSCOPE_STANDBY

#define MPU9250_FIFO_DEFAULT_GYROSCOPE_STANDBY MPU9250_BOOL_FALSE

disable gyro standby

Definition at line 74 of file driver_mpu9250_fifo.h.

## ◆ MPU9250_FIFO_DEFAULT_IIC_BYPASS

#define MPU9250_FIFO_DEFAULT_IIC_BYPASS MPU9250_BOOL_FALSE

disable iic bypass

Definition at line 73 of file driver_mpu9250_fifo.h.

## ◆ MPU9250_FIFO_DEFAULT_IIC_CLOCK

#define MPU9250_FIFO_DEFAULT_IIC_CLOCK MPU9250_IIC_CLOCK_400_KHZ

400KHz

Definition at line 84 of file driver_mpu9250_fifo.h.

## ◆ MPU9250_FIFO_DEFAULT_IIC_DELAY

#define MPU9250_FIFO_DEFAULT_IIC_DELAY MPU9250_BOOL_FALSE

disable iic delay

Definition at line 88 of file driver_mpu9250_fifo.h.

## ◆ MPU9250_FIFO_DEFAULT_IIC_MASTER

#define MPU9250_FIFO_DEFAULT_IIC_MASTER MPU9250_BOOL_FALSE

disable iic master

Definition at line 72 of file driver_mpu9250_fifo.h.

## ◆ MPU9250_FIFO_DEFAULT_IIC_MULTI_MASTER

#define MPU9250_FIFO_DEFAULT_IIC_MULTI_MASTER MPU9250_BOOL_TRUE

enable multi master

Definition at line 85 of file driver_mpu9250_fifo.h.

## ◆ MPU9250_FIFO_DEFAULT_IIC_READ_MODE

#define MPU9250_FIFO_DEFAULT_IIC_READ_MODE MPU9250_IIC_READ_MODE_RESTART

restart mode

Definition at line 87 of file driver_mpu9250_fifo.h.

## ◆ MPU9250_FIFO_DEFAULT_IIC_WAIT_FOR_EXTERNAL_SENSOR

#define MPU9250_FIFO_DEFAULT_IIC_WAIT_FOR_EXTERNAL_SENSOR MPU9250_BOOL_FALSE

disable wait for external sensor

Definition at line 86 of file driver_mpu9250_fifo.h.

## ◆ MPU9250_FIFO_DEFAULT_INTERRUPT_DATA_READY

#define MPU9250_FIFO_DEFAULT_INTERRUPT_DATA_READY MPU9250_BOOL_FALSE

disable data ready

Definition at line 66 of file driver_mpu9250_fifo.h.

## ◆ MPU9250_FIFO_DEFAULT_INTERRUPT_DMP

#define MPU9250_FIFO_DEFAULT_INTERRUPT_DMP MPU9250_BOOL_FALSE

disable dmp

Definition at line 64 of file driver_mpu9250_fifo.h.

## ◆ MPU9250_FIFO_DEFAULT_INTERRUPT_FIFO_OVERFLOW

#define MPU9250_FIFO_DEFAULT_INTERRUPT_FIFO_OVERFLOW MPU9250_BOOL_TRUE

enable fifo overflow

Definition at line 63 of file driver_mpu9250_fifo.h.

## ◆ MPU9250_FIFO_DEFAULT_INTERRUPT_FSYNC_INT

#define MPU9250_FIFO_DEFAULT_INTERRUPT_FSYNC_INT MPU9250_BOOL_FALSE

disable fsync int

Definition at line 65 of file driver_mpu9250_fifo.h.

## ◆ MPU9250_FIFO_DEFAULT_INTERRUPT_LATCH

#define MPU9250_FIFO_DEFAULT_INTERRUPT_LATCH MPU9250_BOOL_TRUE

enable latch

Definition at line 67 of file driver_mpu9250_fifo.h.

## ◆ MPU9250_FIFO_DEFAULT_INTERRUPT_MOTION

#define MPU9250_FIFO_DEFAULT_INTERRUPT_MOTION MPU9250_BOOL_FALSE

disable motion

Definition at line 62 of file driver_mpu9250_fifo.h.

## ◆ MPU9250_FIFO_DEFAULT_INTERRUPT_PIN_LEVEL

#define MPU9250_FIFO_DEFAULT_INTERRUPT_PIN_LEVEL MPU9250_PIN_LEVEL_LOW

low level

Definition at line 60 of file driver_mpu9250_fifo.h.

## ◆ MPU9250_FIFO_DEFAULT_INTERRUPT_PIN_TYPE

#define MPU9250_FIFO_DEFAULT_INTERRUPT_PIN_TYPE MPU9250_PIN_TYPE_PUSH_PULL

push pull

Definition at line 61 of file driver_mpu9250_fifo.h.

## ◆ MPU9250_FIFO_DEFAULT_INTERRUPT_READ_CLEAR

#define MPU9250_FIFO_DEFAULT_INTERRUPT_READ_CLEAR MPU9250_BOOL_TRUE

enable interrupt read clear

Definition at line 68 of file driver_mpu9250_fifo.h.

## ◆ MPU9250_FIFO_DEFAULT_LOW_PASS_FILTER

#define MPU9250_FIFO_DEFAULT_LOW_PASS_FILTER MPU9250_LOW_PASS_FILTER_3

low pass filter 3

Definition at line 58 of file driver_mpu9250_fifo.h.

## ◆ MPU9250_FIFO_DEFAULT_LOW_POWER_ACCEL_OUTPUT_RATE

#define MPU9250_FIFO_DEFAULT_LOW_POWER_ACCEL_OUTPUT_RATE MPU9250_LOW_POWER_ACCEL_OUTPUT_RATE_62P50

62.5Hz

Definition at line 79 of file driver_mpu9250_fifo.h.

## ◆ MPU9250_FIFO_DEFAULT_MAGNETOMETER_BITS

#define MPU9250_FIFO_DEFAULT_MAGNETOMETER_BITS MPU9250_MAGNETOMETER_BITS_16

16bits

Definition at line 83 of file driver_mpu9250_fifo.h.

## ◆ MPU9250_FIFO_DEFAULT_MAGNETOMETER_MODE

#define MPU9250_FIFO_DEFAULT_MAGNETOMETER_MODE MPU9250_MAGNETOMETER_MODE_CONTINUOUS2

100Hz

Definition at line 82 of file driver_mpu9250_fifo.h.

## ◆ MPU9250_FIFO_DEFAULT_RATE

#define MPU9250_FIFO_DEFAULT_RATE 50

50Hz

Definition at line 55 of file driver_mpu9250_fifo.h.

## ◆ MPU9250_FIFO_DEFAULT_WAKE_ON_MOTION

#define MPU9250_FIFO_DEFAULT_WAKE_ON_MOTION MPU9250_BOOL_FALSE

disable wake on motion

Definition at line 80 of file driver_mpu9250_fifo.h.

## Function Documentation

## ◆ mpu9250_basic_deinit()

uint8_t mpu9250_basic_deinit | ( | void |  | ) |

basic example deinit

Returns
  status code
  - 0 success
  - 1 deinit failed

Note
  none

Definition at line 717 of file driver_mpu9250_basic.c.

## ◆ mpu9250_basic_init()

uint8_t mpu9250_basic_init | ( | mpu9250_interface_t | interface,
|  | mpu9250_address_t | addr_pin
| ) |  |

basic example init

Parameters

  [in] | interface | is the used interface
  [in] | addr_pin | is the iic device address

Returns
  status code
  - 0 success
  - 1 init failed

Note
  spi can't read magnetometer data

Definition at line 50 of file driver_mpu9250_basic.c.

## ◆ mpu9250_basic_read()

uint8_t mpu9250_basic_read | ( | float | g[3],
|  | float | dps[3],
|  | float | ut[3]
| ) |  |

basic example read

Parameters

  [out] | *g | points to a converted data buffer
  [out] | *dps | points to a converted data buffer
  [out] | *ut | points to a converted data buffer

Returns
  status code
  - 0 success
  - 1 read failed

Note
  none

Definition at line 672 of file driver_mpu9250_basic.c.

## ◆ mpu9250_basic_read_temperature()

uint8_t mpu9250_basic_read_temperature | ( | float * | degrees | ) |

basic example read temperature

Parameters

  [out] | *degrees | points to a converted data buffer

Returns
  status code
  - 0 success
  - 1 read temperature failed

Note
  none

Definition at line 649 of file driver_mpu9250_basic.c.

## ◆ mpu9250_dmp_deinit()

uint8_t mpu9250_dmp_deinit | ( | void |  | ) |

dmp example deinit

Returns
  status code
  - 0 success
  - 1 deinit failed

Note
  none

Definition at line 1017 of file driver_mpu9250_dmp.c.

## ◆ mpu9250_dmp_get_pedometer_counter()

uint8_t mpu9250_dmp_get_pedometer_counter | ( | uint32_t * | cnt | ) |

dmp example get pedometer counter

Parameters

  [out] | *cnt | points to a cnt buffer

Returns
  status code
  - 0 success
  - 1 get pedometer counter failed

Note
  none

Definition at line 964 of file driver_mpu9250_dmp.c.

## ◆ mpu9250_dmp_init()

uint8_t mpu9250_dmp_init | ( | mpu9250_interface_t | interface,
|  | mpu9250_address_t | addr_pin,
|  | void(*)(uint8_t type) | receive_callback,
|  | void(*)(uint8_t count, uint8_t direction) | tap_callback,
|  | void(*)(uint8_t orientation) | orient_callback
| ) |  |

dmp example init

Parameters

  [in] | interface | is the used interface
  [in] | addr_pin | is the iic device address
  [in] | *receive_callback | points to a receive callback function
  [in] | *tap_callback | points to a tap callback function
  [in] | *orient_callback | points to an orient callback function

Returns
  status code
  - 0 success
  - 1 init failed

Note
  none

Definition at line 72 of file driver_mpu9250_dmp.c.

## ◆ mpu9250_dmp_irq_handler()

uint8_t mpu9250_dmp_irq_handler | ( | void |  | ) |

dmp irq

Returns
  status code
  - 0 success
  - 1 run failed

Note
  none

Definition at line 48 of file driver_mpu9250_dmp.c.

## ◆ mpu9250_dmp_read_all()

uint8_t mpu9250_dmp_read_all | ( | 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 example read

Parameters

  [out] | *accel_raw | points to an accel raw buffer
  [out] | *accel_g | points to an accel g buffer
  [out] | *gyro_raw | points to a gyro raw buffer
  [out] | *gyro_dps | points to a gyro dps buffer
  [out] | *quat | points to a quat buffer
  [out] | *pitch | points to a pitch buffer
  [out] | *roll | points to a roll buffer
  [out] | *yaw | points to a yaw buffer
  [in,out] | *l | points to a length buffer

Returns
  status code
  - 0 success
  - 1 read failed

Note
  none

Definition at line 991 of file driver_mpu9250_dmp.c.

## ◆ mpu9250_fifo_deinit()

uint8_t mpu9250_fifo_deinit | ( | void |  | ) |

fifo example deinit

Returns
  status code
  - 0 success
  - 1 deinit failed

Note
  none

Definition at line 800 of file driver_mpu9250_fifo.c.

## ◆ mpu9250_fifo_init()

uint8_t mpu9250_fifo_init | ( | mpu9250_interface_t | interface,
|  | mpu9250_address_t | addr_pin
| ) |  |

fifo example init

Parameters

  [in] | interface | is the used interface
  [in] | addr_pin | is the iic device address

Returns
  status code
  - 0 success
  - 1 init failed

Note
  spi can't read magnetometer data

Definition at line 69 of file driver_mpu9250_fifo.c.

## ◆ mpu9250_fifo_irq_handler()

uint8_t mpu9250_fifo_irq_handler | ( | void |  | ) |

fifo irq

Returns
  status code
  - 0 success
  - 1 run failed

Note
  none

Definition at line 48 of file driver_mpu9250_fifo.c.

## ◆ mpu9250_fifo_read()

uint8_t mpu9250_fifo_read | ( | int16_t(*) | accel_raw[3],
|  | float(*) | accel_g[3],
|  | int16_t(*) | gyro_raw[3],
|  | float(*) | gyro_dps[3],
|  | int16_t(*) | mag_raw[3],
|  | float(*) | mag_ut[3],
|  | uint16_t * | len
| ) |  |

fifo example read

Parameters

  [out] | **accel_raw | points to an accel raw data buffer
  [out] | **accel_g | points to a converted accel data buffer
  [out] | **gyro_raw | points to an gyro raw data buffer
  [out] | **gyro_dps | points to a converted gyro data buffer
  [out] | **mag_raw | points to a mag raw data buffer
  [out] | **mag_ut | points to a converted mag data buffer
  [in,out] | *len | points to a length buffer

Returns
  status code
  - 0 success
  - 1 read failed

Note
  none

Definition at line 777 of file driver_mpu9250_fifo.c.