![]() |
LibDriver MPU9250
1.0.0
MPU9250 full function driver
|
mpu9250 basic driver modules More...
Data Structures | |
| struct | mpu9250_handle_s |
| mpu9250 handle structure definition More... | |
| struct | mpu9250_info_s |
| mpu9250 information structure definition More... | |
Typedefs | |
| typedef struct mpu9250_handle_s | mpu9250_handle_t |
| mpu9250 handle structure definition More... | |
| typedef struct mpu9250_info_s | mpu9250_info_t |
| mpu9250 information structure definition More... | |
mpu9250 basic driver modules
| typedef struct mpu9250_handle_s mpu9250_handle_t |
mpu9250 handle structure definition
| typedef struct mpu9250_info_s mpu9250_info_t |
mpu9250 information structure definition
mpu9250 accelerometer low pass filter enumeration definition
Definition at line 154 of file driver_mpu9250.h.
mpu9250 accelerometer range enumeration definition
| Enumerator | |
|---|---|
| MPU9250_ACCELEROMETER_RANGE_2G | ±2 g |
| MPU9250_ACCELEROMETER_RANGE_4G | ±4 g |
| MPU9250_ACCELEROMETER_RANGE_8G | ±8 g |
| MPU9250_ACCELEROMETER_RANGE_16G | ±16 g |
Definition at line 210 of file driver_mpu9250.h.
| enum mpu9250_address_t |
mpu9250 address enumeration definition
| Enumerator | |
|---|---|
| MPU9250_ADDRESS_AD0_LOW | AD0 pin set LOW |
| MPU9250_ADDRESS_AD0_HIGH | AD0 pin set HIGH |
Definition at line 71 of file driver_mpu9250.h.
| enum mpu9250_axis_t |
mpu9250 axis enumeration definition
| Enumerator | |
|---|---|
| MPU9250_AXIS_Z | z |
| MPU9250_AXIS_Y | y |
| MPU9250_AXIS_X | x |
Definition at line 189 of file driver_mpu9250.h.
| enum mpu9250_bool_t |
mpu9250 bool enumeration definition
| Enumerator | |
|---|---|
| MPU9250_BOOL_FALSE | disable function |
| MPU9250_BOOL_TRUE | enable function |
Definition at line 80 of file driver_mpu9250.h.
mpu9250 clock source enumeration definition
| Enumerator | |
|---|---|
| MPU9250_CLOCK_SOURCE_INTERNAL_20MHZ | internal 20MHz |
| MPU9250_CLOCK_SOURCE_PLL | pll reference |
| MPU9250_CLOCK_SOURCE_STOP_CLOCK | stop the clock |
Definition at line 102 of file driver_mpu9250.h.
mpu9250 extern sync enumeration definition
Definition at line 122 of file driver_mpu9250.h.
| enum mpu9250_fifo_mode |
mpu9250 fifo mode enumeration definition
Definition at line 233 of file driver_mpu9250.h.
| enum mpu9250_fifo_t |
mpu9250 fifo enumeration definition
| Enumerator | |
|---|---|
| MPU9250_FIFO_TEMP | temperature |
| MPU9250_FIFO_XG | gyroscope x |
| MPU9250_FIFO_YG | gyroscope y |
| MPU9250_FIFO_ZG | gyroscope z |
| MPU9250_FIFO_ACCEL | accelerometer |
Definition at line 221 of file driver_mpu9250.h.
mpu9250 gyroscope range enumeration definition
| Enumerator | |
|---|---|
| MPU9250_GYROSCOPE_RANGE_250DPS | ±250 dps |
| MPU9250_GYROSCOPE_RANGE_500DPS | ±500 dps |
| MPU9250_GYROSCOPE_RANGE_1000DPS | ±1000 dps |
| MPU9250_GYROSCOPE_RANGE_2000DPS | ±2000 dps |
Definition at line 199 of file driver_mpu9250.h.
mpu9250 iic4 transaction mode enumeration definition
| Enumerator | |
|---|---|
| MPU9250_IIC4_TRANSACTION_MODE_DATA | data only |
| MPU9250_IIC4_TRANSACTION_MODE_REG | register only |
Definition at line 335 of file driver_mpu9250.h.
| enum mpu9250_iic_clock_t |
mpu9250 iic clock enumeration definition
Definition at line 285 of file driver_mpu9250.h.
| enum mpu9250_iic_delay_t |
mpu9250 iic delay enumeration definition
Definition at line 370 of file driver_mpu9250.h.
mpu9250 iic group order enumeration definition
Definition at line 344 of file driver_mpu9250.h.
| enum mpu9250_iic_mode_t |
mpu9250 iic mode enumeration definition
| Enumerator | |
|---|---|
| MPU9250_IIC_MODE_WRITE | write |
| MPU9250_IIC_MODE_READ | read |
Definition at line 317 of file driver_mpu9250.h.
mpu9250 iic read mode enumeration definition
| Enumerator | |
|---|---|
| MPU9250_IIC_READ_MODE_RESTART | restart |
| MPU9250_IIC_READ_MODE_STOP_AND_START | stop and start |
Definition at line 308 of file driver_mpu9250.h.
| enum mpu9250_iic_slave_t |
mpu9250 iic slave enumeration definition
| Enumerator | |
|---|---|
| MPU9250_IIC_SLAVE_0 | slave0 |
| MPU9250_IIC_SLAVE_1 | slave1 |
| MPU9250_IIC_SLAVE_2 | slave2 |
| MPU9250_IIC_SLAVE_3 | slave3 |
| MPU9250_IIC_SLAVE_4 | slave4 |
Definition at line 273 of file driver_mpu9250.h.
| enum mpu9250_iic_status_t |
mpu9250 iic status enumeration definition
Definition at line 355 of file driver_mpu9250.h.
mpu9250 iic transaction mode enumeration definition
| Enumerator | |
|---|---|
| MPU9250_IIC_TRANSACTION_MODE_DATA | data only |
| MPU9250_IIC_TRANSACTION_MODE_REG_DATA | write a register address prior to reading or writing data |
Definition at line 326 of file driver_mpu9250.h.
| enum mpu9250_interface_t |
mpu9250 interface enumeration definition
| Enumerator | |
|---|---|
| MPU9250_INTERFACE_IIC | iic interface function |
| MPU9250_INTERFACE_SPI | spi interface function |
Definition at line 62 of file driver_mpu9250.h.
| enum mpu9250_interrupt_t |
mpu9250 interrupt enumeration definition
| Enumerator | |
|---|---|
| MPU9250_INTERRUPT_MOTION | motion |
| MPU9250_INTERRUPT_FIFO_OVERFLOW | fifo overflow |
| MPU9250_INTERRUPT_FSYNC_INT | fsync int |
| MPU9250_INTERRUPT_DMP | dmp |
| MPU9250_INTERRUPT_DATA_READY | data ready |
Definition at line 261 of file driver_mpu9250.h.
mpu9250 low pass filter enumeration definition
Definition at line 137 of file driver_mpu9250.h.
mpu9250 low power accel output rate enumeration definition
Definition at line 170 of file driver_mpu9250.h.
| enum mpu9250_pin_level_t |
mpu9250 pin level enumeration definition
| Enumerator | |
|---|---|
| MPU9250_PIN_LEVEL_HIGH | active low |
| MPU9250_PIN_LEVEL_LOW | active high |
Definition at line 243 of file driver_mpu9250.h.
| enum mpu9250_pin_type_t |
mpu9250 pin type enumeration definition
| Enumerator | |
|---|---|
| MPU9250_PIN_TYPE_PUSH_PULL | push pull |
| MPU9250_PIN_TYPE_OPEN_DRAIN | open drain |
Definition at line 252 of file driver_mpu9250.h.
mpu9250 signal path reset enumeration definition
Definition at line 112 of file driver_mpu9250.h.
| enum mpu9250_source_t |
mpu9250 source enumeration definition
Definition at line 89 of file driver_mpu9250.h.
| uint8_t mpu9250_accelerometer_offset_convert_to_data | ( | mpu9250_handle_t * | handle, |
| int16_t | reg, | ||
| float * | mg | ||
| ) |
convert the register raw data to the accelerometer offset
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | reg | is the register raw data |
| [out] | *mg | points to an accelerometer offset buffer |
Definition at line 9663 of file driver_mpu9250.c.
| uint8_t mpu9250_accelerometer_offset_convert_to_register | ( | mpu9250_handle_t * | handle, |
| float | mg, | ||
| int16_t * | reg | ||
| ) |
convert the accelerometer offset to the register raw data
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | mg | is the accelerometer offset |
| [out] | *reg | points to a register raw buffer |
Definition at line 9636 of file driver_mpu9250.c.
| uint8_t mpu9250_deinit | ( | mpu9250_handle_t * | handle | ) |
close the chip
| [in] | *handle | points to an mpu9250 handle structure |
Definition at line 4168 of file driver_mpu9250.c.
| uint8_t mpu9250_device_reset | ( | mpu9250_handle_t * | handle | ) |
reset the chip
| [in] | *handle | points to an mpu9250 handle structure |
Definition at line 6285 of file driver_mpu9250.c.
| uint8_t mpu9250_fifo_get | ( | mpu9250_handle_t * | handle, |
| uint8_t * | buf, | ||
| uint16_t | len | ||
| ) |
fifo read bytes
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *buf | points to a data buffer |
| [in] | len | is the buffer length |
Definition at line 6899 of file driver_mpu9250.c.
| uint8_t mpu9250_fifo_reset | ( | mpu9250_handle_t * | handle | ) |
reset the fifo
| [in] | *handle | points to an mpu9250 handle structure |
Definition at line 6042 of file driver_mpu9250.c.
| uint8_t mpu9250_fifo_set | ( | mpu9250_handle_t * | handle, |
| uint8_t * | buf, | ||
| uint16_t | len | ||
| ) |
fifo write bytes
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | *buf | points to a data buffer |
| [in] | len | is the buffer length |
Definition at line 6935 of file driver_mpu9250.c.
| uint8_t mpu9250_force_fifo_reset | ( | mpu9250_handle_t * | handle | ) |
force reset the fifo
| [in] | *handle | points to an mpu9250 handle structure |
Definition at line 5844 of file driver_mpu9250.c.
| uint8_t mpu9250_get_accel_compare_with_previous_sample | ( | mpu9250_handle_t * | handle, |
| mpu9250_bool_t * | enable | ||
| ) |
get the accel compare with previous sample status
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *enable | points to a bool value buffer |
Definition at line 8177 of file driver_mpu9250.c.
| uint8_t mpu9250_get_accelerometer_choice | ( | mpu9250_handle_t * | handle, |
| uint8_t * | choice | ||
| ) |
get the accelerometer choice
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *choice | points to an accelerometer choice buffer |
Definition at line 7849 of file driver_mpu9250.c.
| uint8_t mpu9250_get_accelerometer_low_pass_filter | ( | mpu9250_handle_t * | handle, |
| mpu9250_accelerometer_low_pass_filter_t * | filter | ||
| ) |
get the accelerometer low pass filter
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *filter | points to an accelerometer low pass filter buffer |
Definition at line 7931 of file driver_mpu9250.c.
| uint8_t mpu9250_get_accelerometer_range | ( | mpu9250_handle_t * | handle, |
| mpu9250_accelerometer_range_t * | range | ||
| ) |
get the accelerometer range
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *range | points to an accelerometer range buffer |
Definition at line 7715 of file driver_mpu9250.c.
| uint8_t mpu9250_get_accelerometer_test | ( | mpu9250_handle_t * | handle, |
| mpu9250_axis_t | axis, | ||
| mpu9250_bool_t * | enable | ||
| ) |
get the accelerometer test
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | axis | is the tested axis |
| [out] | *enable | points to a bool value buffer |
Definition at line 7633 of file driver_mpu9250.c.
| uint8_t mpu9250_get_accelerometer_x_offset | ( | mpu9250_handle_t * | handle, |
| int16_t * | offset | ||
| ) |
get the accelerometer x offset
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *offset | points to an accelerometer x offset buffer |
Definition at line 9449 of file driver_mpu9250.c.
| uint8_t mpu9250_get_accelerometer_x_test | ( | mpu9250_handle_t * | handle, |
| uint8_t * | data | ||
| ) |
get the accelerometer x test
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *data | points to a set data buffer |
Definition at line 9236 of file driver_mpu9250.c.
| uint8_t mpu9250_get_accelerometer_y_offset | ( | mpu9250_handle_t * | handle, |
| int16_t * | offset | ||
| ) |
get the accelerometer y offset
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *offset | points to an accelerometer y offset buffer |
Definition at line 9524 of file driver_mpu9250.c.
| uint8_t mpu9250_get_accelerometer_y_test | ( | mpu9250_handle_t * | handle, |
| uint8_t * | data | ||
| ) |
get the accelerometer y test
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *data | points to a set data buffer |
Definition at line 9306 of file driver_mpu9250.c.
| uint8_t mpu9250_get_accelerometer_z_offset | ( | mpu9250_handle_t * | handle, |
| int16_t * | offset | ||
| ) |
get the accelerometer z offset
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *offset | points to an accelerometer z offset buffer |
Definition at line 9599 of file driver_mpu9250.c.
| uint8_t mpu9250_get_accelerometer_z_test | ( | mpu9250_handle_t * | handle, |
| uint8_t * | data | ||
| ) |
get the accelerometer z test
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *data | points to a set data buffer |
Definition at line 9376 of file driver_mpu9250.c.
| uint8_t mpu9250_get_addr_pin | ( | mpu9250_handle_t * | handle, |
| mpu9250_address_t * | addr_pin | ||
| ) |
get the chip address pin
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *addr_pin | points to a chip address pin buffer |
Definition at line 3985 of file driver_mpu9250.c.
| uint8_t mpu9250_get_clock_source | ( | mpu9250_handle_t * | handle, |
| mpu9250_clock_source_t * | clock_source | ||
| ) |
get the chip clock source
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *clock_source | points to a clock source buffer |
Definition at line 6412 of file driver_mpu9250.c.
| uint8_t mpu9250_get_cycle_wake_up | ( | mpu9250_handle_t * | handle, |
| mpu9250_bool_t * | enable | ||
| ) |
get the cycle wake up mode status
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *enable | points to a bool value buffer |
Definition at line 6576 of file driver_mpu9250.c.
| uint8_t mpu9250_get_device_reset | ( | mpu9250_handle_t * | handle, |
| mpu9250_bool_t * | enable | ||
| ) |
get the device reset status
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *enable | points to a bool value buffer |
Definition at line 6330 of file driver_mpu9250.c.
| uint8_t mpu9250_get_disable_iic_slave | ( | mpu9250_handle_t * | handle, |
| mpu9250_bool_t * | enable | ||
| ) |
get the iic slave status
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *enable | points to a bool value buffer |
Definition at line 6006 of file driver_mpu9250.c.
| uint8_t mpu9250_get_extern_sync | ( | mpu9250_handle_t * | handle, |
| mpu9250_extern_sync_t * | sync | ||
| ) |
get the extern sync type
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *sync | points to an extern sync type buffer |
Definition at line 7130 of file driver_mpu9250.c.
| uint8_t mpu9250_get_fifo | ( | mpu9250_handle_t * | handle, |
| mpu9250_bool_t * | enable | ||
| ) |
get the fifo status
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *enable | points to a bool value buffer |
Definition at line 5808 of file driver_mpu9250.c.
| uint8_t mpu9250_get_fifo_count | ( | mpu9250_handle_t * | handle, |
| uint16_t * | count | ||
| ) |
get the fifo counter value
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *count | points to a fifo count buffer |
Definition at line 6861 of file driver_mpu9250.c.
| uint8_t mpu9250_get_fifo_enable | ( | mpu9250_handle_t * | handle, |
| mpu9250_fifo_t | fifo, | ||
| mpu9250_bool_t * | enable | ||
| ) |
get the fifo function status
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | fifo | is the fifo type |
| [out] | *enable | points to a bool value buffer |
Definition at line 8261 of file driver_mpu9250.c.
| uint8_t mpu9250_get_fifo_mode | ( | mpu9250_handle_t * | handle, |
| mpu9250_fifo_mode * | mode | ||
| ) |
get the fifo mode
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *mode | points to a fifo mode buffer |
Definition at line 7294 of file driver_mpu9250.c.
| uint8_t mpu9250_get_fifo_reset | ( | mpu9250_handle_t * | handle, |
| mpu9250_bool_t * | enable | ||
| ) |
get the fifo reset status
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *enable | points to a bool value buffer |
Definition at line 6087 of file driver_mpu9250.c.
| uint8_t mpu9250_get_fsync_interrupt | ( | mpu9250_handle_t * | handle, |
| mpu9250_bool_t * | enable | ||
| ) |
get the fsync interrupt status
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *enable | points to a bool value buffer |
Definition at line 8753 of file driver_mpu9250.c.
| uint8_t mpu9250_get_fsync_interrupt_level | ( | mpu9250_handle_t * | handle, |
| mpu9250_pin_level_t * | level | ||
| ) |
get the fsync interrupt level
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *level | points to a set level buffer |
Definition at line 8671 of file driver_mpu9250.c.
| uint8_t mpu9250_get_gyro_standby | ( | mpu9250_handle_t * | handle, |
| mpu9250_bool_t * | enable | ||
| ) |
get the gyro standby status
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *enable | points to a bool value buffer |
Definition at line 6740 of file driver_mpu9250.c.
| uint8_t mpu9250_get_gyro_x_offset | ( | mpu9250_handle_t * | handle, |
| int16_t * | offset | ||
| ) |
get the gyro x offset
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *offset | points to a gyro x offset buffer |
Definition at line 9728 of file driver_mpu9250.c.
| uint8_t mpu9250_get_gyro_y_offset | ( | mpu9250_handle_t * | handle, |
| int16_t * | offset | ||
| ) |
get the gyro y offset
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *offset | points to a gyro y offset buffer |
Definition at line 9803 of file driver_mpu9250.c.
| uint8_t mpu9250_get_gyro_z_offset | ( | mpu9250_handle_t * | handle, |
| int16_t * | offset | ||
| ) |
get the gyro z offset
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *offset | points to a gyro z offset buffer |
Definition at line 9878 of file driver_mpu9250.c.
| uint8_t mpu9250_get_gyroscope_choice | ( | mpu9250_handle_t * | handle, |
| uint8_t * | choice | ||
| ) |
get the gyroscope choice
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *choice | points to a gyroscope choice buffer |
Definition at line 7549 of file driver_mpu9250.c.
| uint8_t mpu9250_get_gyroscope_range | ( | mpu9250_handle_t * | handle, |
| mpu9250_gyroscope_range_t * | range | ||
| ) |
get the gyroscope range
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *range | points to a gyroscope range buffer |
Definition at line 7460 of file driver_mpu9250.c.
| uint8_t mpu9250_get_gyroscope_test | ( | mpu9250_handle_t * | handle, |
| mpu9250_axis_t | axis, | ||
| mpu9250_bool_t * | enable | ||
| ) |
get the gyroscope test
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | axis | is the tested axis |
| [out] | *enable | points to a bool value buffer |
Definition at line 7378 of file driver_mpu9250.c.
| uint8_t mpu9250_get_gyroscope_x_test | ( | mpu9250_handle_t * | handle, |
| uint8_t * | data | ||
| ) |
get the gyroscope x test
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *data | points to a set data buffer |
Definition at line 9026 of file driver_mpu9250.c.
| uint8_t mpu9250_get_gyroscope_y_test | ( | mpu9250_handle_t * | handle, |
| uint8_t * | data | ||
| ) |
get the gyroscope y test
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *data | points to a set data buffer |
Definition at line 9096 of file driver_mpu9250.c.
| uint8_t mpu9250_get_gyroscope_z_test | ( | mpu9250_handle_t * | handle, |
| uint8_t * | data | ||
| ) |
get the gyroscope z test
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *data | points to a set data buffer |
Definition at line 9166 of file driver_mpu9250.c.
| uint8_t mpu9250_get_iic4_data_in | ( | mpu9250_handle_t * | handle, |
| uint8_t * | data | ||
| ) |
get the iic4 data in
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *data | points to a set data buffer |
Definition at line 12954 of file driver_mpu9250.c.
| uint8_t mpu9250_get_iic4_data_out | ( | mpu9250_handle_t * | handle, |
| uint8_t * | data | ||
| ) |
get the iic4 data out
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *data | points to a set data buffer |
Definition at line 12884 of file driver_mpu9250.c.
| uint8_t mpu9250_get_iic4_enable | ( | mpu9250_handle_t * | handle, |
| mpu9250_bool_t * | enable | ||
| ) |
get the iic4 status
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *enable | points to a bool value buffer |
Definition at line 12559 of file driver_mpu9250.c.
| uint8_t mpu9250_get_iic4_interrupt | ( | mpu9250_handle_t * | handle, |
| mpu9250_bool_t * | enable | ||
| ) |
get the iic4 interrupt status
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *enable | points to a bool value buffer |
Definition at line 12641 of file driver_mpu9250.c.
| uint8_t mpu9250_get_iic4_transaction_mode | ( | mpu9250_handle_t * | handle, |
| mpu9250_iic4_transaction_mode_t * | mode | ||
| ) |
get the iic4 transaction mode
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *mode | points to a transaction mode buffer |
Definition at line 12723 of file driver_mpu9250.c.
| uint8_t mpu9250_get_iic_address | ( | mpu9250_handle_t * | handle, |
| mpu9250_iic_slave_t | slave, | ||
| uint8_t * | addr_7bit | ||
| ) |
get the iic address
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | slave | is the iic slave number |
| [out] | *addr_7bit | points to an iic address buffer |
Definition at line 11004 of file driver_mpu9250.c.
| uint8_t mpu9250_get_iic_bypass | ( | mpu9250_handle_t * | handle, |
| mpu9250_bool_t * | enable | ||
| ) |
get the iic bypass status
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *enable | points to a bool value buffer |
Definition at line 8835 of file driver_mpu9250.c.
| uint8_t mpu9250_get_iic_byte_swap | ( | mpu9250_handle_t * | handle, |
| mpu9250_iic_slave_t | slave, | ||
| mpu9250_bool_t * | enable | ||
| ) |
get the iic byte swap status
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | slave | is the iic slave number |
| [out] | *enable | points to a bool value buffer |
Definition at line 11727 of file driver_mpu9250.c.
| uint8_t mpu9250_get_iic_clock | ( | mpu9250_handle_t * | handle, |
| mpu9250_iic_clock_t * | clk | ||
| ) |
get the iic clock
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *clk | points to an iic clock buffer |
Definition at line 10223 of file driver_mpu9250.c.
| uint8_t mpu9250_get_iic_data_out | ( | mpu9250_handle_t * | handle, |
| mpu9250_iic_slave_t | slave, | ||
| uint8_t * | data | ||
| ) |
get the iic data out
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | slave | is the iic slave number |
| [out] | *data | points to a set data buffer |
Definition at line 11344 of file driver_mpu9250.c.
| uint8_t mpu9250_get_iic_delay | ( | mpu9250_handle_t * | handle, |
| uint8_t * | delay | ||
| ) |
get the iic delay
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *delay | points to an iic delay buffer |
Definition at line 12812 of file driver_mpu9250.c.
| uint8_t mpu9250_get_iic_delay_enable | ( | mpu9250_handle_t * | handle, |
| mpu9250_iic_delay_t | delay, | ||
| mpu9250_bool_t * | enable | ||
| ) |
get the iic delay status
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | delay | is the iic delay |
| [out] | *enable | points to a bool value buffer |
Definition at line 12477 of file driver_mpu9250.c.
| uint8_t mpu9250_get_iic_enable | ( | mpu9250_handle_t * | handle, |
| mpu9250_iic_slave_t | slave, | ||
| mpu9250_bool_t * | enable | ||
| ) |
get the iic status
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | slave | is the iic slave number |
| [out] | *enable | points to a bool value buffer |
Definition at line 11533 of file driver_mpu9250.c.
| uint8_t mpu9250_get_iic_fifo_enable | ( | mpu9250_handle_t * | handle, |
| mpu9250_iic_slave_t | slave, | ||
| mpu9250_bool_t * | enable | ||
| ) |
get the iic fifo status
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | slave | is the iic slave number |
| [out] | *enable | points to a bool value buffer |
Definition at line 10586 of file driver_mpu9250.c.
| uint8_t mpu9250_get_iic_group_order | ( | mpu9250_handle_t * | handle, |
| mpu9250_iic_slave_t | slave, | ||
| mpu9250_iic_group_order_t * | order | ||
| ) |
get the iic group order
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | slave | is the iic slave number |
| [out] | *order | points to a group order buffer |
Definition at line 12115 of file driver_mpu9250.c.
| uint8_t mpu9250_get_iic_master | ( | mpu9250_handle_t * | handle, |
| mpu9250_bool_t * | enable | ||
| ) |
get the iic master status
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *enable | points to a bool value buffer |
Definition at line 5924 of file driver_mpu9250.c.
| uint8_t mpu9250_get_iic_master_reset | ( | mpu9250_handle_t * | handle, |
| mpu9250_bool_t * | enable | ||
| ) |
get the iic master reset status
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *enable | points to a bool value buffer |
Definition at line 6168 of file driver_mpu9250.c.
| uint8_t mpu9250_get_iic_mode | ( | mpu9250_handle_t * | handle, |
| mpu9250_iic_slave_t | slave, | ||
| mpu9250_iic_mode_t * | mode | ||
| ) |
get the iic mode
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | slave | is the iic slave number |
| [out] | *mode | points to an iic mode buffer |
Definition at line 10780 of file driver_mpu9250.c.
| uint8_t mpu9250_get_iic_multi_master | ( | mpu9250_handle_t * | handle, |
| mpu9250_bool_t * | enable | ||
| ) |
get the iic multi master status
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *enable | points to a bool value buffer |
Definition at line 10305 of file driver_mpu9250.c.
| uint8_t mpu9250_get_iic_read_mode | ( | mpu9250_handle_t * | handle, |
| mpu9250_iic_read_mode_t * | mode | ||
| ) |
get the iic read mode
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *mode | points to a read mode buffer |
Definition at line 10469 of file driver_mpu9250.c.
| uint8_t mpu9250_get_iic_register | ( | mpu9250_handle_t * | handle, |
| mpu9250_iic_slave_t | slave, | ||
| uint8_t * | reg | ||
| ) |
get the iic register
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | slave | is the iic slave number |
| [out] | *reg | points to an iic register buffer |
Definition at line 11182 of file driver_mpu9250.c.
| uint8_t mpu9250_get_iic_status | ( | mpu9250_handle_t * | handle, |
| uint8_t * | status | ||
| ) |
get the iic status
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *status | points to a status buffer |
Definition at line 12395 of file driver_mpu9250.c.
| uint8_t mpu9250_get_iic_transaction_mode | ( | mpu9250_handle_t * | handle, |
| mpu9250_iic_slave_t | slave, | ||
| mpu9250_iic_transaction_mode_t * | mode | ||
| ) |
get the iic transaction mode
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | slave | is the iic slave number |
| [out] | *mode | points to an iic transaction mode buffer |
Definition at line 11921 of file driver_mpu9250.c.
| uint8_t mpu9250_get_iic_transferred_len | ( | mpu9250_handle_t * | handle, |
| mpu9250_iic_slave_t | slave, | ||
| uint8_t * | len | ||
| ) |
get the iic transferred length
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | slave | is the iic slave number |
| [out] | *len | points to an iic transferred length buffer |
Definition at line 12316 of file driver_mpu9250.c.
| uint8_t mpu9250_get_iic_wait_for_external_sensor | ( | mpu9250_handle_t * | handle, |
| mpu9250_bool_t * | enable | ||
| ) |
get the iic wait for external sensor status
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *enable | points to a bool value buffer |
Definition at line 10387 of file driver_mpu9250.c.
| uint8_t mpu9250_get_interface | ( | mpu9250_handle_t * | handle, |
| mpu9250_interface_t * | interface | ||
| ) |
get the chip interface
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *interface | points to a chip interface buffer |
Definition at line 3943 of file driver_mpu9250.c.
| uint8_t mpu9250_get_interrupt | ( | mpu9250_handle_t * | handle, |
| mpu9250_interrupt_t | type, | ||
| mpu9250_bool_t * | enable | ||
| ) |
get the interrupt status
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | type | is the set interrupt type |
| [out] | *enable | points to a bool value buffer |
Definition at line 8919 of file driver_mpu9250.c.
| uint8_t mpu9250_get_interrupt_latch | ( | mpu9250_handle_t * | handle, |
| mpu9250_bool_t * | enable | ||
| ) |
get the interrupt latch status
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *enable | points to a bool value buffer |
Definition at line 8507 of file driver_mpu9250.c.
| uint8_t mpu9250_get_interrupt_level | ( | mpu9250_handle_t * | handle, |
| mpu9250_pin_level_t * | level | ||
| ) |
get the interrupt level
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *level | points to an interrupt level buffer |
Definition at line 8343 of file driver_mpu9250.c.
| uint8_t mpu9250_get_interrupt_pin_type | ( | mpu9250_handle_t * | handle, |
| mpu9250_pin_type_t * | type | ||
| ) |
get the interrupt pin type
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *type | points to a pin type buffer |
Definition at line 8425 of file driver_mpu9250.c.
| uint8_t mpu9250_get_interrupt_read_clear | ( | mpu9250_handle_t * | handle, |
| mpu9250_bool_t * | enable | ||
| ) |
get the interrupt reading clear status
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *enable | points to a bool value buffer |
Definition at line 8589 of file driver_mpu9250.c.
| uint8_t mpu9250_get_interrupt_status | ( | mpu9250_handle_t * | handle, |
| uint8_t * | status | ||
| ) |
get the interrupt status
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *status | points to a status buffer |
Definition at line 8956 of file driver_mpu9250.c.
| uint8_t mpu9250_get_low_pass_filter | ( | mpu9250_handle_t * | handle, |
| mpu9250_low_pass_filter_t * | filter | ||
| ) |
get the low pass filter
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *filter | points to a low pass filter buffer |
Definition at line 7212 of file driver_mpu9250.c.
| uint8_t mpu9250_get_low_power_accel_output_rate | ( | mpu9250_handle_t * | handle, |
| mpu9250_low_power_accel_output_rate_t * | rate | ||
| ) |
get the low power accel output rate
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *rate | points to a low power accel output rate buffer |
Definition at line 8013 of file driver_mpu9250.c.
| uint8_t mpu9250_get_motion_threshold | ( | mpu9250_handle_t * | handle, |
| uint8_t * | threshold | ||
| ) |
get the motion_threshold
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *threshold | points to a threshold buffer |
Definition at line 10004 of file driver_mpu9250.c.
| uint8_t mpu9250_get_ptat | ( | mpu9250_handle_t * | handle, |
| mpu9250_bool_t * | enable | ||
| ) |
get the temperature sensor status
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *enable | points to a bool value buffer |
Definition at line 6494 of file driver_mpu9250.c.
| uint8_t mpu9250_get_sample_rate_divider | ( | mpu9250_handle_t * | handle, |
| uint8_t * | d | ||
| ) |
get the sample rate divider
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *d | points to a sample rate divider buffer |
Definition at line 7050 of file driver_mpu9250.c.
| uint8_t mpu9250_get_sensor_reset | ( | mpu9250_handle_t * | handle, |
| mpu9250_bool_t * | enable | ||
| ) |
get the sensor reset status
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *enable | points to a bool value buffer |
Definition at line 6249 of file driver_mpu9250.c.
| uint8_t mpu9250_get_sleep | ( | mpu9250_handle_t * | handle, |
| mpu9250_bool_t * | enable | ||
| ) |
get the sleep status
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *enable | points to a bool value buffer |
Definition at line 6658 of file driver_mpu9250.c.
| uint8_t mpu9250_get_standby_mode | ( | mpu9250_handle_t * | handle, |
| mpu9250_source_t | source, | ||
| mpu9250_bool_t * | enable | ||
| ) |
get the source mode
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | source | is the input source |
| [out] | *enable | points to a bool value buffer |
Definition at line 6824 of file driver_mpu9250.c.
| uint8_t mpu9250_get_wake_on_motion | ( | mpu9250_handle_t * | handle, |
| mpu9250_bool_t * | enable | ||
| ) |
get the wake on motion status
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *enable | points to a bool value buffer |
Definition at line 8095 of file driver_mpu9250.c.
| uint8_t mpu9250_gyro_offset_convert_to_data | ( | mpu9250_handle_t * | handle, |
| int16_t | reg, | ||
| float * | dps | ||
| ) |
convert the register raw data to the gyro offset
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | reg | is the register raw data |
| [out] | *dps | points to a gyro offset buffer |
Definition at line 9942 of file driver_mpu9250.c.
| uint8_t mpu9250_gyro_offset_convert_to_register | ( | mpu9250_handle_t * | handle, |
| float | dps, | ||
| int16_t * | reg | ||
| ) |
convert the gyro offset to the register raw data
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | dps | is the gyro offset |
| [out] | *reg | points to a register raw buffer |
Definition at line 9915 of file driver_mpu9250.c.
| uint8_t mpu9250_iic_master_reset | ( | mpu9250_handle_t * | handle | ) |
reset the iic master controller
| [in] | *handle | points to an mpu9250 handle structure |
Definition at line 6123 of file driver_mpu9250.c.
| uint8_t mpu9250_info | ( | mpu9250_info_t * | info | ) |
get the chip's information
| [out] | *info | points to an mpu9250 info structure |
Definition at line 13083 of file driver_mpu9250.c.
| uint8_t mpu9250_init | ( | mpu9250_handle_t * | handle | ) |
initialize the chip
| [in] | *handle | points to an mpu9250 handle structure |
Definition at line 4009 of file driver_mpu9250.c.
| uint8_t mpu9250_irq_handler | ( | mpu9250_handle_t * | handle | ) |
irq handler
| [in] | *handle | points to an mpu9250 handle structure |
Definition at line 4668 of file driver_mpu9250.c.
| uint8_t mpu9250_motion_threshold_convert_to_data | ( | mpu9250_handle_t * | handle, |
| uint8_t | reg, | ||
| float * | mg | ||
| ) |
convert the register raw data to the motion threshold
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | reg | is the register raw data |
| [out] | *mg | points to a motion threshold buffer |
Definition at line 10066 of file driver_mpu9250.c.
| uint8_t mpu9250_motion_threshold_convert_to_register | ( | mpu9250_handle_t * | handle, |
| float | mg, | ||
| uint8_t * | reg | ||
| ) |
convert the motion threshold to the register raw data
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | mg | is the motion threshold |
| [out] | *reg | points to a register raw buffer |
Definition at line 10039 of file driver_mpu9250.c.
| uint8_t mpu9250_read | ( | mpu9250_handle_t * | handle, |
| 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 | ||
| ) |
read the data
| [in] | *handle | points to an mpu9250 handle structure |
| [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 a 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 |
Definition at line 4223 of file driver_mpu9250.c.
| uint8_t mpu9250_read_extern_sensor_data | ( | mpu9250_handle_t * | handle, |
| uint8_t * | data, | ||
| uint8_t | len | ||
| ) |
read the extern sensor data
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *data | points to a data buffer |
| [in] | len | is the data length |
Definition at line 12991 of file driver_mpu9250.c.
| uint8_t mpu9250_read_temperature | ( | mpu9250_handle_t * | handle, |
| int16_t * | raw, | ||
| float * | degrees | ||
| ) |
read the temperature
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *raw | points to raw data buffer |
| [out] | *degrees | points to a converted degrees data buffer |
Definition at line 4631 of file driver_mpu9250.c.
| uint8_t mpu9250_self_test | ( | mpu9250_handle_t * | handle, |
| int32_t | gyro_offset_raw[3], | ||
| int32_t | accel_offset_raw[3] | ||
| ) |
run the self test
| [in] | *handle | points to an mpu9250 handle structure |
| [out] | *gyro_offset_raw | points to a gyro offset raw buffer |
| [out] | *accel_offset_raw | points to an accel offset raw buffer |
Definition at line 10094 of file driver_mpu9250.c.
| uint8_t mpu9250_sensor_reset | ( | mpu9250_handle_t * | handle | ) |
reset all sensors
| [in] | *handle | points to an mpu9250 handle structure |
Definition at line 6204 of file driver_mpu9250.c.
| uint8_t mpu9250_set_accel_compare_with_previous_sample | ( | mpu9250_handle_t * | handle, |
| mpu9250_bool_t | enable | ||
| ) |
enable or disable accel compare with previous sample
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | enable | is a bool value |
Definition at line 8132 of file driver_mpu9250.c.
| uint8_t mpu9250_set_accelerometer_choice | ( | mpu9250_handle_t * | handle, |
| uint8_t | choice | ||
| ) |
set the accelerometer choice
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | choice | is the accelerometer choice |
Definition at line 7797 of file driver_mpu9250.c.
| uint8_t mpu9250_set_accelerometer_low_pass_filter | ( | mpu9250_handle_t * | handle, |
| mpu9250_accelerometer_low_pass_filter_t | filter | ||
| ) |
set the accelerometer low pass filter
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | filter | is the accelerometer low pass filter |
Definition at line 7886 of file driver_mpu9250.c.
| uint8_t mpu9250_set_accelerometer_range | ( | mpu9250_handle_t * | handle, |
| mpu9250_accelerometer_range_t | range | ||
| ) |
set the accelerometer range
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | range | is the accelerometer range |
Definition at line 7670 of file driver_mpu9250.c.
| uint8_t mpu9250_set_accelerometer_test | ( | mpu9250_handle_t * | handle, |
| mpu9250_axis_t | axis, | ||
| mpu9250_bool_t | enable | ||
| ) |
set the accelerometer test
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | axis | is the tested axis |
| [in] | enable | is a bool value |
Definition at line 7587 of file driver_mpu9250.c.
| uint8_t mpu9250_set_accelerometer_x_offset | ( | mpu9250_handle_t * | handle, |
| int16_t | offset | ||
| ) |
set the accelerometer x offset
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | offset | is the accelerometer x offset |
Definition at line 9411 of file driver_mpu9250.c.
| uint8_t mpu9250_set_accelerometer_x_test | ( | mpu9250_handle_t * | handle, |
| uint8_t | data | ||
| ) |
set the accelerometer x test
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | data | is the set data |
Definition at line 9201 of file driver_mpu9250.c.
| uint8_t mpu9250_set_accelerometer_y_offset | ( | mpu9250_handle_t * | handle, |
| int16_t | offset | ||
| ) |
set the accelerometer y offset
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | offset | is the accelerometer y offset |
Definition at line 9486 of file driver_mpu9250.c.
| uint8_t mpu9250_set_accelerometer_y_test | ( | mpu9250_handle_t * | handle, |
| uint8_t | data | ||
| ) |
set the accelerometer y test
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | data | is the set data |
Definition at line 9271 of file driver_mpu9250.c.
| uint8_t mpu9250_set_accelerometer_z_offset | ( | mpu9250_handle_t * | handle, |
| int16_t | offset | ||
| ) |
set the accelerometer z offset
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | offset | is the accelerometer z offset |
Definition at line 9561 of file driver_mpu9250.c.
| uint8_t mpu9250_set_accelerometer_z_test | ( | mpu9250_handle_t * | handle, |
| uint8_t | data | ||
| ) |
set the accelerometer z test
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | data | is the set data |
Definition at line 9341 of file driver_mpu9250.c.
| uint8_t mpu9250_set_addr_pin | ( | mpu9250_handle_t * | handle, |
| mpu9250_address_t | addr_pin | ||
| ) |
set the chip address pin
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | addr_pin | is the chip address pin |
Definition at line 3964 of file driver_mpu9250.c.
| uint8_t mpu9250_set_clock_source | ( | mpu9250_handle_t * | handle, |
| mpu9250_clock_source_t | clock_source | ||
| ) |
set the chip clock source
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | clock_source | is chip main clock source |
Definition at line 6367 of file driver_mpu9250.c.
| uint8_t mpu9250_set_cycle_wake_up | ( | mpu9250_handle_t * | handle, |
| mpu9250_bool_t | enable | ||
| ) |
enable or disable the cycle wake up mode
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | enable | is a bool value |
Definition at line 6531 of file driver_mpu9250.c.
| uint8_t mpu9250_set_disable_iic_slave | ( | mpu9250_handle_t * | handle, |
| mpu9250_bool_t | enable | ||
| ) |
enable or disable the iic slave mode
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | enable | is a bool value |
Definition at line 5961 of file driver_mpu9250.c.
| uint8_t mpu9250_set_extern_sync | ( | mpu9250_handle_t * | handle, |
| mpu9250_extern_sync_t | sync | ||
| ) |
set the extern sync type
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | sync | is the extern sync type |
Definition at line 7085 of file driver_mpu9250.c.
| uint8_t mpu9250_set_fifo | ( | mpu9250_handle_t * | handle, |
| mpu9250_bool_t | enable | ||
| ) |
enable or disable fifo
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | enable | is a bool value |
Definition at line 5763 of file driver_mpu9250.c.
| uint8_t mpu9250_set_fifo_1024kb | ( | mpu9250_handle_t * | handle | ) |
set fifo 1024kb
| [in] | *handle | points to an mpu9250 handle structure |
Definition at line 7751 of file driver_mpu9250.c.
| uint8_t mpu9250_set_fifo_enable | ( | mpu9250_handle_t * | handle, |
| mpu9250_fifo_t | fifo, | ||
| mpu9250_bool_t | enable | ||
| ) |
enable or disable the fifo function
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | fifo | is the fifo type |
| [in] | enable | is a bool value |
Definition at line 8215 of file driver_mpu9250.c.
| uint8_t mpu9250_set_fifo_mode | ( | mpu9250_handle_t * | handle, |
| mpu9250_fifo_mode | mode | ||
| ) |
set the fifo mode
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | mode | is the fifo mode |
Definition at line 7249 of file driver_mpu9250.c.
| uint8_t mpu9250_set_fsync_interrupt | ( | mpu9250_handle_t * | handle, |
| mpu9250_bool_t | enable | ||
| ) |
enable or disable the fsync interrupt
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | enable | is a bool value |
Definition at line 8708 of file driver_mpu9250.c.
| uint8_t mpu9250_set_fsync_interrupt_level | ( | mpu9250_handle_t * | handle, |
| mpu9250_pin_level_t | level | ||
| ) |
set the fsync interrupt level
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | level | is the set level |
Definition at line 8626 of file driver_mpu9250.c.
| uint8_t mpu9250_set_gyro_standby | ( | mpu9250_handle_t * | handle, |
| mpu9250_bool_t | enable | ||
| ) |
enable or disable the gyro standby
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | enable | is a bool value |
Definition at line 6695 of file driver_mpu9250.c.
| uint8_t mpu9250_set_gyro_x_offset | ( | mpu9250_handle_t * | handle, |
| int16_t | offset | ||
| ) |
set the gyro x offset
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | offset | is the gyro x offset |
Definition at line 9690 of file driver_mpu9250.c.
| uint8_t mpu9250_set_gyro_y_offset | ( | mpu9250_handle_t * | handle, |
| int16_t | offset | ||
| ) |
set the gyro y offset
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | offset | is the gyro y offset |
Definition at line 9765 of file driver_mpu9250.c.
| uint8_t mpu9250_set_gyro_z_offset | ( | mpu9250_handle_t * | handle, |
| int16_t | offset | ||
| ) |
set the gyro z offset
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | offset | is the gyro z offset |
Definition at line 9840 of file driver_mpu9250.c.
| uint8_t mpu9250_set_gyroscope_choice | ( | mpu9250_handle_t * | handle, |
| uint8_t | choice | ||
| ) |
set the gyroscope choice
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | choice | is the gyroscope choice |
Definition at line 7498 of file driver_mpu9250.c.
| uint8_t mpu9250_set_gyroscope_range | ( | mpu9250_handle_t * | handle, |
| mpu9250_gyroscope_range_t | range | ||
| ) |
set the gyroscope range
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | range | is the gyroscope range |
Definition at line 7415 of file driver_mpu9250.c.
| uint8_t mpu9250_set_gyroscope_test | ( | mpu9250_handle_t * | handle, |
| mpu9250_axis_t | axis, | ||
| mpu9250_bool_t | enable | ||
| ) |
set the gyroscope test
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | axis | is the tested axis |
| [in] | enable | is a bool value |
Definition at line 7332 of file driver_mpu9250.c.
| uint8_t mpu9250_set_gyroscope_x_test | ( | mpu9250_handle_t * | handle, |
| uint8_t | data | ||
| ) |
set the gyroscope x test
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | data | is the set data |
Definition at line 8991 of file driver_mpu9250.c.
| uint8_t mpu9250_set_gyroscope_y_test | ( | mpu9250_handle_t * | handle, |
| uint8_t | data | ||
| ) |
set the gyroscope y test
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | data | is the set data |
Definition at line 9061 of file driver_mpu9250.c.
| uint8_t mpu9250_set_gyroscope_z_test | ( | mpu9250_handle_t * | handle, |
| uint8_t | data | ||
| ) |
set the gyroscope z test
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | data | is the set data |
Definition at line 9131 of file driver_mpu9250.c.
| uint8_t mpu9250_set_iic4_data_in | ( | mpu9250_handle_t * | handle, |
| uint8_t | data | ||
| ) |
set the iic4 data in
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | data | is the set data |
Definition at line 12919 of file driver_mpu9250.c.
| uint8_t mpu9250_set_iic4_data_out | ( | mpu9250_handle_t * | handle, |
| uint8_t | data | ||
| ) |
set the iic4 data out
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | data | is the set data |
Definition at line 12849 of file driver_mpu9250.c.
| uint8_t mpu9250_set_iic4_enable | ( | mpu9250_handle_t * | handle, |
| mpu9250_bool_t | enable | ||
| ) |
enable or disable the iic4
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | enable | is a bool value |
Definition at line 12514 of file driver_mpu9250.c.
| uint8_t mpu9250_set_iic4_interrupt | ( | mpu9250_handle_t * | handle, |
| mpu9250_bool_t | enable | ||
| ) |
enable or disable the iic4 interrupt
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | enable | is a bool value |
Definition at line 12596 of file driver_mpu9250.c.
| uint8_t mpu9250_set_iic4_transaction_mode | ( | mpu9250_handle_t * | handle, |
| mpu9250_iic4_transaction_mode_t | mode | ||
| ) |
set the iic4 transaction mode
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | mode | is the transaction mode |
Definition at line 12678 of file driver_mpu9250.c.
| uint8_t mpu9250_set_iic_address | ( | mpu9250_handle_t * | handle, |
| mpu9250_iic_slave_t | slave, | ||
| uint8_t | addr_7bit | ||
| ) |
set the iic address
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | slave | is the iic slave number |
| [in] | addr_7bit | is the iic address |
Definition at line 10872 of file driver_mpu9250.c.
| uint8_t mpu9250_set_iic_bypass | ( | mpu9250_handle_t * | handle, |
| mpu9250_bool_t | enable | ||
| ) |
enable or disable the iic bypass
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | enable | is a bool value |
Definition at line 8790 of file driver_mpu9250.c.
| uint8_t mpu9250_set_iic_byte_swap | ( | mpu9250_handle_t * | handle, |
| mpu9250_iic_slave_t | slave, | ||
| mpu9250_bool_t | enable | ||
| ) |
enable or disable the iic byte swap
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | slave | is the iic slave number |
| [in] | enable | is a bool value |
Definition at line 11614 of file driver_mpu9250.c.
| uint8_t mpu9250_set_iic_clock | ( | mpu9250_handle_t * | handle, |
| mpu9250_iic_clock_t | clk | ||
| ) |
set the iic clock
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | clk | is the iic clock |
Definition at line 10178 of file driver_mpu9250.c.
| uint8_t mpu9250_set_iic_data_out | ( | mpu9250_handle_t * | handle, |
| mpu9250_iic_slave_t | slave, | ||
| uint8_t | data | ||
| ) |
set the iic data out
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | slave | is the iic slave number |
| [in] | data | is the set data |
Definition at line 11268 of file driver_mpu9250.c.
| uint8_t mpu9250_set_iic_delay | ( | mpu9250_handle_t * | handle, |
| uint8_t | delay | ||
| ) |
set the iic delay
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | delay | is the iic delay |
Definition at line 12761 of file driver_mpu9250.c.
| uint8_t mpu9250_set_iic_delay_enable | ( | mpu9250_handle_t * | handle, |
| mpu9250_iic_delay_t | delay, | ||
| mpu9250_bool_t | enable | ||
| ) |
enable or disable the iic delay
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | delay | is the iic delay |
| [in] | enable | is a bool value |
Definition at line 12431 of file driver_mpu9250.c.
| uint8_t mpu9250_set_iic_enable | ( | mpu9250_handle_t * | handle, |
| mpu9250_iic_slave_t | slave, | ||
| mpu9250_bool_t | enable | ||
| ) |
enable or disable the iic
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | slave | is the iic slave number |
| [in] | enable | is a bool value |
Definition at line 11420 of file driver_mpu9250.c.
| uint8_t mpu9250_set_iic_fifo_enable | ( | mpu9250_handle_t * | handle, |
| mpu9250_iic_slave_t | slave, | ||
| mpu9250_bool_t | enable | ||
| ) |
enable or disable the iic fifo
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | slave | is the iic slave number |
| [in] | enable | is a bool value |
Definition at line 10508 of file driver_mpu9250.c.
| uint8_t mpu9250_set_iic_group_order | ( | mpu9250_handle_t * | handle, |
| mpu9250_iic_slave_t | slave, | ||
| mpu9250_iic_group_order_t | order | ||
| ) |
set the iic group order
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | slave | is the iic slave number |
| [in] | order | is the group order |
Definition at line 12002 of file driver_mpu9250.c.
| uint8_t mpu9250_set_iic_master | ( | mpu9250_handle_t * | handle, |
| mpu9250_bool_t | enable | ||
| ) |
enable or disable the iic master mode
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | enable | is a bool value |
Definition at line 5879 of file driver_mpu9250.c.
| uint8_t mpu9250_set_iic_mode | ( | mpu9250_handle_t * | handle, |
| mpu9250_iic_slave_t | slave, | ||
| mpu9250_iic_mode_t | mode | ||
| ) |
set the iic mode
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | slave | is the iic slave number |
| [in] | mode | is the iic mode |
Definition at line 10648 of file driver_mpu9250.c.
| uint8_t mpu9250_set_iic_multi_master | ( | mpu9250_handle_t * | handle, |
| mpu9250_bool_t | enable | ||
| ) |
enable or disable iic multi master
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | enable | is a bool value |
Definition at line 10260 of file driver_mpu9250.c.
| uint8_t mpu9250_set_iic_read_mode | ( | mpu9250_handle_t * | handle, |
| mpu9250_iic_read_mode_t | mode | ||
| ) |
set the iic read mode
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | mode | is the read mode |
Definition at line 10424 of file driver_mpu9250.c.
| uint8_t mpu9250_set_iic_register | ( | mpu9250_handle_t * | handle, |
| mpu9250_iic_slave_t | slave, | ||
| uint8_t | reg | ||
| ) |
set the iic register
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | slave | is the iic slave number |
| [in] | reg | is the iic register |
Definition at line 11096 of file driver_mpu9250.c.
| uint8_t mpu9250_set_iic_transaction_mode | ( | mpu9250_handle_t * | handle, |
| mpu9250_iic_slave_t | slave, | ||
| mpu9250_iic_transaction_mode_t | mode | ||
| ) |
set the iic transaction mode
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | slave | is the iic slave number |
| [in] | mode | is the iic transaction mode |
Definition at line 11808 of file driver_mpu9250.c.
| uint8_t mpu9250_set_iic_transferred_len | ( | mpu9250_handle_t * | handle, |
| mpu9250_iic_slave_t | slave, | ||
| uint8_t | len | ||
| ) |
set the iic transferred length
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | slave | is the iic slave number |
| [in] | len | is the iic transferred length |
Definition at line 12197 of file driver_mpu9250.c.
| uint8_t mpu9250_set_iic_wait_for_external_sensor | ( | mpu9250_handle_t * | handle, |
| mpu9250_bool_t | enable | ||
| ) |
enable or disable iic wait for external sensor
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | enable | is a bool value |
Definition at line 10342 of file driver_mpu9250.c.
| uint8_t mpu9250_set_interface | ( | mpu9250_handle_t * | handle, |
| mpu9250_interface_t | interface | ||
| ) |
set the chip interface
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | interface | is the chip interface |
Definition at line 3922 of file driver_mpu9250.c.
| uint8_t mpu9250_set_interrupt | ( | mpu9250_handle_t * | handle, |
| mpu9250_interrupt_t | type, | ||
| mpu9250_bool_t | enable | ||
| ) |
enable or disable the interrupt
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | type | is the set interrupt type |
| [in] | enable | is a bool value |
Definition at line 8873 of file driver_mpu9250.c.
| uint8_t mpu9250_set_interrupt_latch | ( | mpu9250_handle_t * | handle, |
| mpu9250_bool_t | enable | ||
| ) |
enable or disable the interrupt latch
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | enable | is a bool value |
Definition at line 8462 of file driver_mpu9250.c.
| uint8_t mpu9250_set_interrupt_level | ( | mpu9250_handle_t * | handle, |
| mpu9250_pin_level_t | level | ||
| ) |
set the interrupt level
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | level | is the interrupt level |
Definition at line 8298 of file driver_mpu9250.c.
| uint8_t mpu9250_set_interrupt_pin_type | ( | mpu9250_handle_t * | handle, |
| mpu9250_pin_type_t | type | ||
| ) |
set the interrupt pin type
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | type | is the interrupt pin type |
Definition at line 8380 of file driver_mpu9250.c.
| uint8_t mpu9250_set_interrupt_read_clear | ( | mpu9250_handle_t * | handle, |
| mpu9250_bool_t | enable | ||
| ) |
enable or disable the interrupt reading clear
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | enable | is a bool value |
Definition at line 8544 of file driver_mpu9250.c.
| uint8_t mpu9250_set_low_pass_filter | ( | mpu9250_handle_t * | handle, |
| mpu9250_low_pass_filter_t | filter | ||
| ) |
set the low pass filter
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | filter | is the low pass filter |
Definition at line 7167 of file driver_mpu9250.c.
| uint8_t mpu9250_set_low_power_accel_output_rate | ( | mpu9250_handle_t * | handle, |
| mpu9250_low_power_accel_output_rate_t | rate | ||
| ) |
set the low power accel output rate
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | rate | is the low power accel output rate |
Definition at line 7968 of file driver_mpu9250.c.
| uint8_t mpu9250_set_motion_threshold | ( | mpu9250_handle_t * | handle, |
| uint8_t | threshold | ||
| ) |
set the motion_threshold
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | threshold | is the set threshold |
Definition at line 9969 of file driver_mpu9250.c.
| uint8_t mpu9250_set_ptat | ( | mpu9250_handle_t * | handle, |
| mpu9250_bool_t | enable | ||
| ) |
enable or disable the temperature sensor
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | enable | is a bool value |
Definition at line 6449 of file driver_mpu9250.c.
| uint8_t mpu9250_set_sample_rate_divider | ( | mpu9250_handle_t * | handle, |
| uint8_t | d | ||
| ) |
set the sample rate divider
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | d | is the sample rate divider |
Definition at line 7015 of file driver_mpu9250.c.
| uint8_t mpu9250_set_signal_path_reset | ( | mpu9250_handle_t * | handle, |
| mpu9250_signal_path_reset_t | path | ||
| ) |
set the signal path reset
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | path | is the signal path |
Definition at line 6970 of file driver_mpu9250.c.
| uint8_t mpu9250_set_sleep | ( | mpu9250_handle_t * | handle, |
| mpu9250_bool_t | enable | ||
| ) |
enable or disable the sleep mode
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | enable | is a bool value |
Definition at line 6613 of file driver_mpu9250.c.
| uint8_t mpu9250_set_standby_mode | ( | mpu9250_handle_t * | handle, |
| mpu9250_source_t | source, | ||
| mpu9250_bool_t | enable | ||
| ) |
set source into standby mode
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | source | is the input source |
| [in] | enable | is a bool value |
Definition at line 6778 of file driver_mpu9250.c.
| uint8_t mpu9250_set_wake_on_motion | ( | mpu9250_handle_t * | handle, |
| mpu9250_bool_t | enable | ||
| ) |
enable or disable wake on motion
| [in] | *handle | points to an mpu9250 handle structure |
| [in] | enable | is a bool value |
Definition at line 8050 of file driver_mpu9250.c.