![]() |
LibDriver MPU9250
|
mpu9250 example driver modules More...
Functions | |
| uint8_t | mpu9250_basic_init (mpu9250_interface_t interface, mpu9250_address_t addr_pin) |
| basic example init | |
| uint8_t | mpu9250_basic_deinit (void) |
| basic example deinit | |
| uint8_t | mpu9250_basic_read (float g[3], float dps[3], float ut[3]) |
| basic example read | |
| uint8_t | mpu9250_basic_read_temperature (float *degrees) |
| basic example read temperature | |
| uint8_t | mpu9250_dmp_irq_handler (void) |
| dmp irq | |
| 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 | |
| uint8_t | mpu9250_dmp_deinit (void) |
| dmp example deinit | |
| 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 | |
| uint8_t | mpu9250_dmp_get_pedometer_counter (uint32_t *cnt) |
| dmp example get pedometer counter | |
| uint8_t | mpu9250_fifo_irq_handler (void) |
| fifo irq | |
| uint8_t | mpu9250_fifo_init (mpu9250_interface_t interface, mpu9250_address_t addr_pin) |
| fifo example init | |
| 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 | |
| uint8_t | mpu9250_fifo_deinit (void) |
| fifo example deinit | |
mpu9250 example driver modules
| #define MPU9250_BASIC_DEFAULT_ACCELEROMETER_CHOICE 0 |
0
Definition at line 79 of file driver_mpu9250_basic.h.
| #define MPU9250_BASIC_DEFAULT_ACCELEROMETER_COMPARE MPU9250_BOOL_TRUE |
enable compare
Definition at line 83 of file driver_mpu9250_basic.h.
| #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.
| #define MPU9250_BASIC_DEFAULT_ACCELEROMETER_RANGE MPU9250_ACCELEROMETER_RANGE_2G |
2g
Definition at line 62 of file driver_mpu9250_basic.h.
| #define MPU9250_BASIC_DEFAULT_CLOCK_SOURCE MPU9250_CLOCK_SOURCE_PLL |
| #define MPU9250_BASIC_DEFAULT_CYCLE_WAKE_UP MPU9250_BOOL_FALSE |
disable cycle wake up
Definition at line 59 of file driver_mpu9250_basic.h.
| #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.
| #define MPU9250_BASIC_DEFAULT_FIFO_MODE MPU9250_FIFO_MODE_NORMAL |
normal mode
Definition at line 77 of file driver_mpu9250_basic.h.
| #define MPU9250_BASIC_DEFAULT_FSYNC_INTERRUPT MPU9250_BOOL_FALSE |
disable fsync interrupt
Definition at line 72 of file driver_mpu9250_basic.h.
| #define MPU9250_BASIC_DEFAULT_FSYNC_INTERRUPT_LEVEL MPU9250_PIN_LEVEL_LOW |
low level
Definition at line 73 of file driver_mpu9250_basic.h.
| #define MPU9250_BASIC_DEFAULT_GYROSCOPE_CHOICE 0 |
0
Definition at line 78 of file driver_mpu9250_basic.h.
| #define MPU9250_BASIC_DEFAULT_GYROSCOPE_RANGE MPU9250_GYROSCOPE_RANGE_2000DPS |
2000dps
Definition at line 63 of file driver_mpu9250_basic.h.
| #define MPU9250_BASIC_DEFAULT_GYROSCOPE_STANDBY MPU9250_BOOL_FALSE |
disable gyro standby
Definition at line 76 of file driver_mpu9250_basic.h.
| #define MPU9250_BASIC_DEFAULT_IIC_BYPASS MPU9250_BOOL_FALSE |
disable iic bypass
Definition at line 75 of file driver_mpu9250_basic.h.
| #define MPU9250_BASIC_DEFAULT_IIC_MASTER MPU9250_BOOL_FALSE |
disable iic master
Definition at line 74 of file driver_mpu9250_basic.h.
| #define MPU9250_BASIC_DEFAULT_INTERRUPT_DATA_READY MPU9250_BOOL_FALSE |
disable data ready
Definition at line 68 of file driver_mpu9250_basic.h.
| #define MPU9250_BASIC_DEFAULT_INTERRUPT_DMP MPU9250_BOOL_FALSE |
disable dmp
Definition at line 66 of file driver_mpu9250_basic.h.
| #define MPU9250_BASIC_DEFAULT_INTERRUPT_FIFO_OVERFLOW MPU9250_BOOL_FALSE |
disable fifo overflow
Definition at line 65 of file driver_mpu9250_basic.h.
| #define MPU9250_BASIC_DEFAULT_INTERRUPT_FSYNC_INT MPU9250_BOOL_FALSE |
disable fsync int
Definition at line 67 of file driver_mpu9250_basic.h.
| #define MPU9250_BASIC_DEFAULT_INTERRUPT_LATCH MPU9250_BOOL_TRUE |
enable latch
Definition at line 69 of file driver_mpu9250_basic.h.
| #define MPU9250_BASIC_DEFAULT_INTERRUPT_MOTION MPU9250_BOOL_FALSE |
disable motion
Definition at line 64 of file driver_mpu9250_basic.h.
| #define MPU9250_BASIC_DEFAULT_INTERRUPT_PIN_LEVEL MPU9250_PIN_LEVEL_LOW |
low level
Definition at line 60 of file driver_mpu9250_basic.h.
| #define MPU9250_BASIC_DEFAULT_INTERRUPT_PIN_TYPE MPU9250_PIN_TYPE_PUSH_PULL |
push pull
Definition at line 61 of file driver_mpu9250_basic.h.
| #define MPU9250_BASIC_DEFAULT_INTERRUPT_READ_CLEAR MPU9250_BOOL_TRUE |
enable interrupt read clear
Definition at line 70 of file driver_mpu9250_basic.h.
| #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.
| #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.
| #define MPU9250_BASIC_DEFAULT_MAGNETOMETER_BITS MPU9250_MAGNETOMETER_BITS_16 |
16bits
Definition at line 85 of file driver_mpu9250_basic.h.
| #define MPU9250_BASIC_DEFAULT_MAGNETOMETER_MODE MPU9250_MAGNETOMETER_MODE_CONTINUOUS2 |
100Hz
Definition at line 84 of file driver_mpu9250_basic.h.
| #define MPU9250_BASIC_DEFAULT_RATE 50 |
50Hz
Definition at line 57 of file driver_mpu9250_basic.h.
| #define MPU9250_BASIC_DEFAULT_WAKE_ON_MOTION MPU9250_BOOL_FALSE |
disable wake on motion
Definition at line 82 of file driver_mpu9250_basic.h.
| #define MPU9250_DMP_DEFAULT_ACCELEROMETER_CHOICE 0 |
0
Definition at line 90 of file driver_mpu9250_dmp.h.
| #define MPU9250_DMP_DEFAULT_ACCELEROMETER_COMPARE MPU9250_BOOL_TRUE |
enable compare
Definition at line 93 of file driver_mpu9250_dmp.h.
| #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.
| #define MPU9250_DMP_DEFAULT_ACCELEROMETER_RANGE MPU9250_ACCELEROMETER_RANGE_2G |
2g
Definition at line 56 of file driver_mpu9250_dmp.h.
| #define MPU9250_DMP_DEFAULT_CLOCK_SOURCE MPU9250_CLOCK_SOURCE_PLL |
| #define MPU9250_DMP_DEFAULT_CYCLE_WAKE_UP MPU9250_BOOL_FALSE |
disable cycle wake up
Definition at line 59 of file driver_mpu9250_dmp.h.
| #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.
| #define MPU9250_DMP_DEFAULT_FIFO_MODE MPU9250_FIFO_MODE_NORMAL |
normal mode
Definition at line 88 of file driver_mpu9250_dmp.h.
| #define MPU9250_DMP_DEFAULT_FSYNC_INTERRUPT MPU9250_BOOL_FALSE |
disable fsync interrupt
Definition at line 70 of file driver_mpu9250_dmp.h.
| #define MPU9250_DMP_DEFAULT_FSYNC_INTERRUPT_LEVEL MPU9250_PIN_LEVEL_LOW |
low level
Definition at line 71 of file driver_mpu9250_dmp.h.
| #define MPU9250_DMP_DEFAULT_GYROSCOPE_CHOICE 0 |
0
Definition at line 89 of file driver_mpu9250_dmp.h.
| #define MPU9250_DMP_DEFAULT_GYROSCOPE_RANGE MPU9250_GYROSCOPE_RANGE_2000DPS |
2000dps
Definition at line 57 of file driver_mpu9250_dmp.h.
| #define MPU9250_DMP_DEFAULT_GYROSCOPE_STANDBY MPU9250_BOOL_FALSE |
disable gyro standby
Definition at line 87 of file driver_mpu9250_dmp.h.
| #define MPU9250_DMP_DEFAULT_IIC_BYPASS MPU9250_BOOL_FALSE |
disable iic bypass
Definition at line 73 of file driver_mpu9250_dmp.h.
| #define MPU9250_DMP_DEFAULT_IIC_CLOCK MPU9250_IIC_CLOCK_400_KHZ |
400KHz
Definition at line 96 of file driver_mpu9250_dmp.h.
| #define MPU9250_DMP_DEFAULT_IIC_DELAY MPU9250_BOOL_FALSE |
disable iic delay
Definition at line 100 of file driver_mpu9250_dmp.h.
| #define MPU9250_DMP_DEFAULT_IIC_MASTER MPU9250_BOOL_FALSE |
disable iic master
Definition at line 72 of file driver_mpu9250_dmp.h.
| #define MPU9250_DMP_DEFAULT_IIC_MULTI_MASTER MPU9250_BOOL_TRUE |
enable multi master
Definition at line 97 of file driver_mpu9250_dmp.h.
| #define MPU9250_DMP_DEFAULT_IIC_READ_MODE MPU9250_IIC_READ_MODE_RESTART |
restart mode
Definition at line 99 of file driver_mpu9250_dmp.h.
| #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.
| #define MPU9250_DMP_DEFAULT_INTERRUPT_DATA_READY MPU9250_BOOL_FALSE |
disable data ready
Definition at line 66 of file driver_mpu9250_dmp.h.
| #define MPU9250_DMP_DEFAULT_INTERRUPT_DMP MPU9250_BOOL_FALSE |
disable dmp
Definition at line 64 of file driver_mpu9250_dmp.h.
| #define MPU9250_DMP_DEFAULT_INTERRUPT_FIFO_OVERFLOW MPU9250_BOOL_TRUE |
enable fifo overflow
Definition at line 63 of file driver_mpu9250_dmp.h.
| #define MPU9250_DMP_DEFAULT_INTERRUPT_FSYNC_INT MPU9250_BOOL_FALSE |
disable fsync int
Definition at line 65 of file driver_mpu9250_dmp.h.
| #define MPU9250_DMP_DEFAULT_INTERRUPT_LATCH MPU9250_BOOL_TRUE |
enable latch
Definition at line 67 of file driver_mpu9250_dmp.h.
| #define MPU9250_DMP_DEFAULT_INTERRUPT_MODE MPU9250_DMP_INTERRUPT_MODE_CONTINUOUS |
interrupt continuous mode
Definition at line 85 of file driver_mpu9250_dmp.h.
| #define MPU9250_DMP_DEFAULT_INTERRUPT_MOTION MPU9250_BOOL_TRUE |
enable motion
Definition at line 62 of file driver_mpu9250_dmp.h.
| #define MPU9250_DMP_DEFAULT_INTERRUPT_PIN_LEVEL MPU9250_PIN_LEVEL_LOW |
low level
Definition at line 60 of file driver_mpu9250_dmp.h.
| #define MPU9250_DMP_DEFAULT_INTERRUPT_PIN_TYPE MPU9250_PIN_TYPE_PUSH_PULL |
push pull
Definition at line 61 of file driver_mpu9250_dmp.h.
| #define MPU9250_DMP_DEFAULT_INTERRUPT_READ_CLEAR MPU9250_BOOL_TRUE |
enable interrupt read clear
Definition at line 68 of file driver_mpu9250_dmp.h.
| #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.
| #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.
| #define MPU9250_DMP_DEFAULT_MAGNETOMETER_BITS MPU9250_MAGNETOMETER_BITS_16 |
16bits
Definition at line 95 of file driver_mpu9250_dmp.h.
| #define MPU9250_DMP_DEFAULT_MAGNETOMETER_MODE MPU9250_MAGNETOMETER_MODE_CONTINUOUS2 |
100Hz
Definition at line 94 of file driver_mpu9250_dmp.h.
| #define MPU9250_DMP_DEFAULT_MIN_TAP_COUNT 1 |
1
Definition at line 81 of file driver_mpu9250_dmp.h.
| #define MPU9250_DMP_DEFAULT_MOTION_THRESHOLD 200 |
200 mg
Definition at line 86 of file driver_mpu9250_dmp.h.
| #define MPU9250_DMP_DEFAULT_PEOMETER_STEP_COUNT 0 |
0
Definition at line 75 of file driver_mpu9250_dmp.h.
| #define MPU9250_DMP_DEFAULT_PEOMETER_WALK_TIME 200 |
200ms
Definition at line 74 of file driver_mpu9250_dmp.h.
| #define MPU9250_DMP_DEFAULT_RATE 50 |
50Hz
Definition at line 55 of file driver_mpu9250_dmp.h.
| #define MPU9250_DMP_DEFAULT_SHAKE_REJECT_THRESH 200 |
200dps
Definition at line 78 of file driver_mpu9250_dmp.h.
| #define MPU9250_DMP_DEFAULT_SHAKE_REJECT_TIME 40 |
40ms
Definition at line 77 of file driver_mpu9250_dmp.h.
| #define MPU9250_DMP_DEFAULT_SHAKE_REJECT_TIMEOUT 10 |
10ms
Definition at line 76 of file driver_mpu9250_dmp.h.
| #define MPU9250_DMP_DEFAULT_TAP_TIME 100 |
100ms
Definition at line 80 of file driver_mpu9250_dmp.h.
| #define MPU9250_DMP_DEFAULT_TAP_TIME_MULTI 200 |
200ms
Definition at line 79 of file driver_mpu9250_dmp.h.
| #define MPU9250_DMP_DEFAULT_TAP_X_THRESH 250 |
250 mg/ms
Definition at line 82 of file driver_mpu9250_dmp.h.
| #define MPU9250_DMP_DEFAULT_TAP_Y_THRESH 250 |
250 mg/ms
Definition at line 83 of file driver_mpu9250_dmp.h.
| #define MPU9250_DMP_DEFAULT_TAP_Z_THRESH 250 |
250 mg/ms
Definition at line 84 of file driver_mpu9250_dmp.h.
| #define MPU9250_FIFO_DEFAULT_ACCELEROMETER_CHOICE 0 |
0
Definition at line 77 of file driver_mpu9250_fifo.h.
| #define MPU9250_FIFO_DEFAULT_ACCELEROMETER_COMPARE MPU9250_BOOL_TRUE |
enable compare
Definition at line 81 of file driver_mpu9250_fifo.h.
| #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.
| #define MPU9250_FIFO_DEFAULT_ACCELEROMETER_RANGE MPU9250_ACCELEROMETER_RANGE_2G |
2g
Definition at line 56 of file driver_mpu9250_fifo.h.
| #define MPU9250_FIFO_DEFAULT_CLOCK_SOURCE MPU9250_CLOCK_SOURCE_PLL |
| #define MPU9250_FIFO_DEFAULT_CYCLE_WAKE_UP MPU9250_BOOL_FALSE |
disable cycle wake up
Definition at line 59 of file driver_mpu9250_fifo.h.
| #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.
| #define MPU9250_FIFO_DEFAULT_FIFO_MODE MPU9250_FIFO_MODE_NORMAL |
normal mode
Definition at line 75 of file driver_mpu9250_fifo.h.
| #define MPU9250_FIFO_DEFAULT_FSYNC_INTERRUPT MPU9250_BOOL_FALSE |
disable fsync interrupt
Definition at line 70 of file driver_mpu9250_fifo.h.
| #define MPU9250_FIFO_DEFAULT_FSYNC_INTERRUPT_LEVEL MPU9250_PIN_LEVEL_LOW |
low level
Definition at line 71 of file driver_mpu9250_fifo.h.
| #define MPU9250_FIFO_DEFAULT_GYROSCOPE_CHOICE 0 |
0
Definition at line 76 of file driver_mpu9250_fifo.h.
| #define MPU9250_FIFO_DEFAULT_GYROSCOPE_RANGE MPU9250_GYROSCOPE_RANGE_2000DPS |
2000dps
Definition at line 57 of file driver_mpu9250_fifo.h.
| #define MPU9250_FIFO_DEFAULT_GYROSCOPE_STANDBY MPU9250_BOOL_FALSE |
disable gyro standby
Definition at line 74 of file driver_mpu9250_fifo.h.
| #define MPU9250_FIFO_DEFAULT_IIC_BYPASS MPU9250_BOOL_FALSE |
disable iic bypass
Definition at line 73 of file driver_mpu9250_fifo.h.
| #define MPU9250_FIFO_DEFAULT_IIC_CLOCK MPU9250_IIC_CLOCK_400_KHZ |
400KHz
Definition at line 84 of file driver_mpu9250_fifo.h.
| #define MPU9250_FIFO_DEFAULT_IIC_DELAY MPU9250_BOOL_FALSE |
disable iic delay
Definition at line 88 of file driver_mpu9250_fifo.h.
| #define MPU9250_FIFO_DEFAULT_IIC_MASTER MPU9250_BOOL_FALSE |
disable iic master
Definition at line 72 of file driver_mpu9250_fifo.h.
| #define MPU9250_FIFO_DEFAULT_IIC_MULTI_MASTER MPU9250_BOOL_TRUE |
enable multi master
Definition at line 85 of file driver_mpu9250_fifo.h.
| #define MPU9250_FIFO_DEFAULT_IIC_READ_MODE MPU9250_IIC_READ_MODE_RESTART |
restart mode
Definition at line 87 of file driver_mpu9250_fifo.h.
| #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.
| #define MPU9250_FIFO_DEFAULT_INTERRUPT_DATA_READY MPU9250_BOOL_FALSE |
disable data ready
Definition at line 66 of file driver_mpu9250_fifo.h.
| #define MPU9250_FIFO_DEFAULT_INTERRUPT_DMP MPU9250_BOOL_FALSE |
disable dmp
Definition at line 64 of file driver_mpu9250_fifo.h.
| #define MPU9250_FIFO_DEFAULT_INTERRUPT_FIFO_OVERFLOW MPU9250_BOOL_TRUE |
enable fifo overflow
Definition at line 63 of file driver_mpu9250_fifo.h.
| #define MPU9250_FIFO_DEFAULT_INTERRUPT_FSYNC_INT MPU9250_BOOL_FALSE |
disable fsync int
Definition at line 65 of file driver_mpu9250_fifo.h.
| #define MPU9250_FIFO_DEFAULT_INTERRUPT_LATCH MPU9250_BOOL_TRUE |
enable latch
Definition at line 67 of file driver_mpu9250_fifo.h.
| #define MPU9250_FIFO_DEFAULT_INTERRUPT_MOTION MPU9250_BOOL_FALSE |
disable motion
Definition at line 62 of file driver_mpu9250_fifo.h.
| #define MPU9250_FIFO_DEFAULT_INTERRUPT_PIN_LEVEL MPU9250_PIN_LEVEL_LOW |
low level
Definition at line 60 of file driver_mpu9250_fifo.h.
| #define MPU9250_FIFO_DEFAULT_INTERRUPT_PIN_TYPE MPU9250_PIN_TYPE_PUSH_PULL |
push pull
Definition at line 61 of file driver_mpu9250_fifo.h.
| #define MPU9250_FIFO_DEFAULT_INTERRUPT_READ_CLEAR MPU9250_BOOL_TRUE |
enable interrupt read clear
Definition at line 68 of file driver_mpu9250_fifo.h.
| #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.
| #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.
| #define MPU9250_FIFO_DEFAULT_MAGNETOMETER_BITS MPU9250_MAGNETOMETER_BITS_16 |
16bits
Definition at line 83 of file driver_mpu9250_fifo.h.
| #define MPU9250_FIFO_DEFAULT_MAGNETOMETER_MODE MPU9250_MAGNETOMETER_MODE_CONTINUOUS2 |
100Hz
Definition at line 82 of file driver_mpu9250_fifo.h.
| #define MPU9250_FIFO_DEFAULT_RATE 50 |
50Hz
Definition at line 55 of file driver_mpu9250_fifo.h.
| #define MPU9250_FIFO_DEFAULT_WAKE_ON_MOTION MPU9250_BOOL_FALSE |
disable wake on motion
Definition at line 80 of file driver_mpu9250_fifo.h.
| uint8_t mpu9250_basic_deinit | ( | void | ) |
basic example deinit
Definition at line 717 of file driver_mpu9250_basic.c.
| uint8_t mpu9250_basic_init | ( | mpu9250_interface_t | interface, |
| mpu9250_address_t | addr_pin ) |
basic example init
| [in] | interface | used interface |
| [in] | addr_pin | iic device address |
Definition at line 50 of file driver_mpu9250_basic.c.
| uint8_t mpu9250_basic_read | ( | float | g[3], |
| float | dps[3], | ||
| float | ut[3] ) |
basic example read
| [out] | *g | pointer to a converted data buffer |
| [out] | *dps | pointer to a converted data buffer |
| [out] | *ut | pointer to a converted data buffer |
Definition at line 672 of file driver_mpu9250_basic.c.
| uint8_t mpu9250_basic_read_temperature | ( | float * | degrees | ) |
basic example read temperature
| [out] | *degrees | pointer to a converted data buffer |
Definition at line 649 of file driver_mpu9250_basic.c.
| uint8_t mpu9250_dmp_deinit | ( | void | ) |
dmp example deinit
Definition at line 1017 of file driver_mpu9250_dmp.c.
| uint8_t mpu9250_dmp_get_pedometer_counter | ( | uint32_t * | cnt | ) |
dmp example get pedometer counter
| [out] | *cnt | pointer to a cnt buffer |
Definition at line 964 of file driver_mpu9250_dmp.c.
| 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
| [in] | interface | used interface |
| [in] | addr_pin | iic device address |
| [in] | *receive_callback | pointer to a receive callback function |
| [in] | *tap_callback | pointer to a tap callback function |
| [in] | *orient_callback | pointer to an orient callback function |
Definition at line 72 of file driver_mpu9250_dmp.c.
| uint8_t mpu9250_dmp_irq_handler | ( | void | ) |
dmp irq
Definition at line 48 of file driver_mpu9250_dmp.c.
| 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
| [out] | *accel_raw | pointer to an accel raw buffer |
| [out] | *accel_g | pointer to an accel g buffer |
| [out] | *gyro_raw | pointer to a gyro raw buffer |
| [out] | *gyro_dps | pointer to a gyro dps buffer |
| [out] | *quat | pointer to a quat buffer |
| [out] | *pitch | pointer to a pitch buffer |
| [out] | *roll | pointer to a roll buffer |
| [out] | *yaw | pointer to a yaw buffer |
| [in,out] | *l | pointer to a length buffer |
Definition at line 991 of file driver_mpu9250_dmp.c.
| uint8_t mpu9250_fifo_deinit | ( | void | ) |
fifo example deinit
Definition at line 800 of file driver_mpu9250_fifo.c.
| uint8_t mpu9250_fifo_init | ( | mpu9250_interface_t | interface, |
| mpu9250_address_t | addr_pin ) |
fifo example init
| [in] | interface | used interface |
| [in] | addr_pin | iic device address |
Definition at line 69 of file driver_mpu9250_fifo.c.
| uint8_t mpu9250_fifo_irq_handler | ( | void | ) |
fifo irq
Definition at line 48 of file driver_mpu9250_fifo.c.
| 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
| [out] | **accel_raw | pointer to an accel raw data buffer |
| [out] | **accel_g | pointer to a converted accel data buffer |
| [out] | **gyro_raw | pointer to an gyro raw data buffer |
| [out] | **gyro_dps | pointer to a converted gyro data buffer |
| [out] | **mag_raw | pointer to a mag raw data buffer |
| [out] | **mag_ut | pointer to a converted mag data buffer |
| [in,out] | *len | pointer to a length buffer |
Definition at line 777 of file driver_mpu9250_fifo.c.