![]() |
LibDriver MPU9250
|
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 | |
| typedef struct mpu9250_info_s | mpu9250_info_t |
| mpu9250 information structure definition | |
Functions | |
| uint8_t | mpu9250_info (mpu9250_info_t *info) |
| get the chip's information | |
| uint8_t | mpu9250_set_interface (mpu9250_handle_t *handle, mpu9250_interface_t interface) |
| set the chip interface | |
| uint8_t | mpu9250_get_interface (mpu9250_handle_t *handle, mpu9250_interface_t *interface) |
| get the chip interface | |
| uint8_t | mpu9250_set_addr_pin (mpu9250_handle_t *handle, mpu9250_address_t addr_pin) |
| set the chip address pin | |
| uint8_t | mpu9250_get_addr_pin (mpu9250_handle_t *handle, mpu9250_address_t *addr_pin) |
| get the chip address pin | |
| uint8_t | mpu9250_irq_handler (mpu9250_handle_t *handle) |
| irq handler | |
| uint8_t | mpu9250_init (mpu9250_handle_t *handle) |
| initialize the chip | |
| uint8_t | mpu9250_deinit (mpu9250_handle_t *handle) |
| close the chip | |
| 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 | |
| uint8_t | mpu9250_read_temperature (mpu9250_handle_t *handle, int16_t(*raw), float *degrees) |
| read the temperature | |
| uint8_t | mpu9250_set_fifo (mpu9250_handle_t *handle, mpu9250_bool_t enable) |
| enable or disable fifo | |
| uint8_t | mpu9250_get_fifo (mpu9250_handle_t *handle, mpu9250_bool_t *enable) |
| get the fifo status | |
| uint8_t | mpu9250_force_fifo_reset (mpu9250_handle_t *handle) |
| force reset the fifo | |
| uint8_t | mpu9250_set_iic_master (mpu9250_handle_t *handle, mpu9250_bool_t enable) |
| enable or disable the iic master mode | |
| uint8_t | mpu9250_get_iic_master (mpu9250_handle_t *handle, mpu9250_bool_t *enable) |
| get the iic master status | |
| uint8_t | mpu9250_set_disable_iic_slave (mpu9250_handle_t *handle, mpu9250_bool_t enable) |
| enable or disable the iic slave mode | |
| uint8_t | mpu9250_get_disable_iic_slave (mpu9250_handle_t *handle, mpu9250_bool_t *enable) |
| get the iic slave status | |
| uint8_t | mpu9250_fifo_reset (mpu9250_handle_t *handle) |
| reset the fifo | |
| uint8_t | mpu9250_get_fifo_reset (mpu9250_handle_t *handle, mpu9250_bool_t *enable) |
| get the fifo reset status | |
| uint8_t | mpu9250_iic_master_reset (mpu9250_handle_t *handle) |
| reset the iic master controller | |
| uint8_t | mpu9250_get_iic_master_reset (mpu9250_handle_t *handle, mpu9250_bool_t *enable) |
| get the iic master reset status | |
| uint8_t | mpu9250_sensor_reset (mpu9250_handle_t *handle) |
| reset all sensors | |
| uint8_t | mpu9250_get_sensor_reset (mpu9250_handle_t *handle, mpu9250_bool_t *enable) |
| get the sensor reset status | |
| uint8_t | mpu9250_device_reset (mpu9250_handle_t *handle) |
| reset the chip | |
| uint8_t | mpu9250_get_device_reset (mpu9250_handle_t *handle, mpu9250_bool_t *enable) |
| get the device reset status | |
| uint8_t | mpu9250_set_clock_source (mpu9250_handle_t *handle, mpu9250_clock_source_t clock_source) |
| set the chip clock source | |
| uint8_t | mpu9250_get_clock_source (mpu9250_handle_t *handle, mpu9250_clock_source_t *clock_source) |
| get the chip clock source | |
| uint8_t | mpu9250_set_ptat (mpu9250_handle_t *handle, mpu9250_bool_t enable) |
| enable or disable the temperature sensor | |
| uint8_t | mpu9250_get_ptat (mpu9250_handle_t *handle, mpu9250_bool_t *enable) |
| get the temperature sensor status | |
| uint8_t | mpu9250_set_cycle_wake_up (mpu9250_handle_t *handle, mpu9250_bool_t enable) |
| enable or disable the cycle wake up mode | |
| uint8_t | mpu9250_get_cycle_wake_up (mpu9250_handle_t *handle, mpu9250_bool_t *enable) |
| get the cycle wake up mode status | |
| uint8_t | mpu9250_set_sleep (mpu9250_handle_t *handle, mpu9250_bool_t enable) |
| enable or disable the sleep mode | |
| uint8_t | mpu9250_get_sleep (mpu9250_handle_t *handle, mpu9250_bool_t *enable) |
| get the sleep status | |
| uint8_t | mpu9250_set_gyro_standby (mpu9250_handle_t *handle, mpu9250_bool_t enable) |
| enable or disable the gyro standby | |
| uint8_t | mpu9250_get_gyro_standby (mpu9250_handle_t *handle, mpu9250_bool_t *enable) |
| get the gyro standby status | |
| uint8_t | mpu9250_set_standby_mode (mpu9250_handle_t *handle, mpu9250_source_t source, mpu9250_bool_t enable) |
| set source into standby mode | |
| uint8_t | mpu9250_get_standby_mode (mpu9250_handle_t *handle, mpu9250_source_t source, mpu9250_bool_t *enable) |
| get the source mode | |
| uint8_t | mpu9250_get_fifo_count (mpu9250_handle_t *handle, uint16_t *count) |
| get the fifo counter value | |
| uint8_t | mpu9250_fifo_get (mpu9250_handle_t *handle, uint8_t *buf, uint16_t len) |
| fifo read bytes | |
| uint8_t | mpu9250_fifo_set (mpu9250_handle_t *handle, uint8_t *buf, uint16_t len) |
| fifo write bytes | |
| uint8_t | mpu9250_set_signal_path_reset (mpu9250_handle_t *handle, mpu9250_signal_path_reset_t path) |
| set the signal path reset | |
| uint8_t | mpu9250_set_sample_rate_divider (mpu9250_handle_t *handle, uint8_t d) |
| set the sample rate divider | |
| uint8_t | mpu9250_get_sample_rate_divider (mpu9250_handle_t *handle, uint8_t *d) |
| get the sample rate divider | |
| uint8_t | mpu9250_set_extern_sync (mpu9250_handle_t *handle, mpu9250_extern_sync_t sync) |
| set the extern sync type | |
| uint8_t | mpu9250_get_extern_sync (mpu9250_handle_t *handle, mpu9250_extern_sync_t *sync) |
| get the extern sync type | |
| uint8_t | mpu9250_set_low_pass_filter (mpu9250_handle_t *handle, mpu9250_low_pass_filter_t filter) |
| set the low pass filter | |
| uint8_t | mpu9250_get_low_pass_filter (mpu9250_handle_t *handle, mpu9250_low_pass_filter_t *filter) |
| get the low pass filter | |
| uint8_t | mpu9250_set_fifo_mode (mpu9250_handle_t *handle, mpu9250_fifo_mode mode) |
| set the fifo mode | |
| uint8_t | mpu9250_get_fifo_mode (mpu9250_handle_t *handle, mpu9250_fifo_mode *mode) |
| get the fifo mode | |
| uint8_t | mpu9250_set_gyroscope_test (mpu9250_handle_t *handle, mpu9250_axis_t axis, mpu9250_bool_t enable) |
| set the gyroscope test | |
| uint8_t | mpu9250_get_gyroscope_test (mpu9250_handle_t *handle, mpu9250_axis_t axis, mpu9250_bool_t *enable) |
| get the gyroscope test | |
| uint8_t | mpu9250_set_gyroscope_range (mpu9250_handle_t *handle, mpu9250_gyroscope_range_t range) |
| set the gyroscope range | |
| uint8_t | mpu9250_get_gyroscope_range (mpu9250_handle_t *handle, mpu9250_gyroscope_range_t *range) |
| get the gyroscope range | |
| uint8_t | mpu9250_set_gyroscope_choice (mpu9250_handle_t *handle, uint8_t choice) |
| set the gyroscope choice | |
| uint8_t | mpu9250_get_gyroscope_choice (mpu9250_handle_t *handle, uint8_t *choice) |
| get the gyroscope choice | |
| uint8_t | mpu9250_set_accelerometer_test (mpu9250_handle_t *handle, mpu9250_axis_t axis, mpu9250_bool_t enable) |
| set the accelerometer test | |
| uint8_t | mpu9250_get_accelerometer_test (mpu9250_handle_t *handle, mpu9250_axis_t axis, mpu9250_bool_t *enable) |
| get the accelerometer test | |
| uint8_t | mpu9250_set_accelerometer_range (mpu9250_handle_t *handle, mpu9250_accelerometer_range_t range) |
| set the accelerometer range | |
| uint8_t | mpu9250_get_accelerometer_range (mpu9250_handle_t *handle, mpu9250_accelerometer_range_t *range) |
| get the accelerometer range | |
| uint8_t | mpu9250_set_fifo_1024kb (mpu9250_handle_t *handle) |
| set fifo 1024kb | |
| uint8_t | mpu9250_set_accelerometer_choice (mpu9250_handle_t *handle, uint8_t choice) |
| set the accelerometer choice | |
| uint8_t | mpu9250_get_accelerometer_choice (mpu9250_handle_t *handle, uint8_t *choice) |
| get the accelerometer choice | |
| 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 | |
| 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 | |
| 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 | |
| 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 | |
| uint8_t | mpu9250_set_wake_on_motion (mpu9250_handle_t *handle, mpu9250_bool_t enable) |
| enable or disable wake on motion | |
| uint8_t | mpu9250_get_wake_on_motion (mpu9250_handle_t *handle, mpu9250_bool_t *enable) |
| get the wake on motion status | |
| 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 | |
| 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 | |
| uint8_t | mpu9250_set_accelerometer_x_offset (mpu9250_handle_t *handle, int16_t offset) |
| set the accelerometer x offset | |
| uint8_t | mpu9250_get_accelerometer_x_offset (mpu9250_handle_t *handle, int16_t *offset) |
| get the accelerometer x offset | |
| uint8_t | mpu9250_set_accelerometer_y_offset (mpu9250_handle_t *handle, int16_t offset) |
| set the accelerometer y offset | |
| uint8_t | mpu9250_get_accelerometer_y_offset (mpu9250_handle_t *handle, int16_t *offset) |
| get the accelerometer y offset | |
| uint8_t | mpu9250_set_accelerometer_z_offset (mpu9250_handle_t *handle, int16_t offset) |
| set the accelerometer z offset | |
| uint8_t | mpu9250_get_accelerometer_z_offset (mpu9250_handle_t *handle, int16_t *offset) |
| get the accelerometer z offset | |
| 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 | |
| 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 | |
| uint8_t | mpu9250_set_gyro_x_offset (mpu9250_handle_t *handle, int16_t offset) |
| set the gyro x offset | |
| uint8_t | mpu9250_get_gyro_x_offset (mpu9250_handle_t *handle, int16_t *offset) |
| get the gyro x offset | |
| uint8_t | mpu9250_set_gyro_y_offset (mpu9250_handle_t *handle, int16_t offset) |
| set the gyro y offset | |
| uint8_t | mpu9250_get_gyro_y_offset (mpu9250_handle_t *handle, int16_t *offset) |
| get the gyro y offset | |
| uint8_t | mpu9250_set_gyro_z_offset (mpu9250_handle_t *handle, int16_t offset) |
| set the gyro z offset | |
| uint8_t | mpu9250_get_gyro_z_offset (mpu9250_handle_t *handle, int16_t *offset) |
| get the gyro z offset | |
| 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 | |
| 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 | |
| uint8_t | mpu9250_set_fifo_enable (mpu9250_handle_t *handle, mpu9250_fifo_t fifo, mpu9250_bool_t enable) |
| enable or disable the fifo function | |
| uint8_t | mpu9250_get_fifo_enable (mpu9250_handle_t *handle, mpu9250_fifo_t fifo, mpu9250_bool_t *enable) |
| get the fifo function status | |
| uint8_t | mpu9250_set_interrupt_level (mpu9250_handle_t *handle, mpu9250_pin_level_t level) |
| set the interrupt level | |
| uint8_t | mpu9250_get_interrupt_level (mpu9250_handle_t *handle, mpu9250_pin_level_t *level) |
| get the interrupt level | |
| uint8_t | mpu9250_set_interrupt_pin_type (mpu9250_handle_t *handle, mpu9250_pin_type_t type) |
| set the interrupt pin type | |
| uint8_t | mpu9250_get_interrupt_pin_type (mpu9250_handle_t *handle, mpu9250_pin_type_t *type) |
| get the interrupt pin type | |
| uint8_t | mpu9250_set_interrupt_latch (mpu9250_handle_t *handle, mpu9250_bool_t enable) |
| enable or disable the interrupt latch | |
| uint8_t | mpu9250_get_interrupt_latch (mpu9250_handle_t *handle, mpu9250_bool_t *enable) |
| get the interrupt latch status | |
| uint8_t | mpu9250_set_interrupt_read_clear (mpu9250_handle_t *handle, mpu9250_bool_t enable) |
| enable or disable the interrupt reading clear | |
| uint8_t | mpu9250_get_interrupt_read_clear (mpu9250_handle_t *handle, mpu9250_bool_t *enable) |
| get the interrupt reading clear status | |
| uint8_t | mpu9250_set_fsync_interrupt_level (mpu9250_handle_t *handle, mpu9250_pin_level_t level) |
| set the fsync interrupt level | |
| uint8_t | mpu9250_get_fsync_interrupt_level (mpu9250_handle_t *handle, mpu9250_pin_level_t *level) |
| get the fsync interrupt level | |
| uint8_t | mpu9250_set_fsync_interrupt (mpu9250_handle_t *handle, mpu9250_bool_t enable) |
| enable or disable the fsync interrupt | |
| uint8_t | mpu9250_get_fsync_interrupt (mpu9250_handle_t *handle, mpu9250_bool_t *enable) |
| get the fsync interrupt status | |
| uint8_t | mpu9250_set_iic_bypass (mpu9250_handle_t *handle, mpu9250_bool_t enable) |
| enable or disable the iic bypass | |
| uint8_t | mpu9250_get_iic_bypass (mpu9250_handle_t *handle, mpu9250_bool_t *enable) |
| get the iic bypass status | |
| uint8_t | mpu9250_set_interrupt (mpu9250_handle_t *handle, mpu9250_interrupt_t type, mpu9250_bool_t enable) |
| enable or disable the interrupt | |
| uint8_t | mpu9250_get_interrupt (mpu9250_handle_t *handle, mpu9250_interrupt_t type, mpu9250_bool_t *enable) |
| get the interrupt status | |
| uint8_t | mpu9250_get_interrupt_status (mpu9250_handle_t *handle, uint8_t *status) |
| get the interrupt status | |
| uint8_t | mpu9250_set_gyroscope_x_test (mpu9250_handle_t *handle, uint8_t data) |
| set the gyroscope x test | |
| uint8_t | mpu9250_get_gyroscope_x_test (mpu9250_handle_t *handle, uint8_t *data) |
| get the gyroscope x test | |
| uint8_t | mpu9250_set_gyroscope_y_test (mpu9250_handle_t *handle, uint8_t data) |
| set the gyroscope y test | |
| uint8_t | mpu9250_get_gyroscope_y_test (mpu9250_handle_t *handle, uint8_t *data) |
| get the gyroscope y test | |
| uint8_t | mpu9250_set_gyroscope_z_test (mpu9250_handle_t *handle, uint8_t data) |
| set the gyroscope z test | |
| uint8_t | mpu9250_get_gyroscope_z_test (mpu9250_handle_t *handle, uint8_t *data) |
| get the gyroscope z test | |
| uint8_t | mpu9250_set_accelerometer_x_test (mpu9250_handle_t *handle, uint8_t data) |
| set the accelerometer x test | |
| uint8_t | mpu9250_get_accelerometer_x_test (mpu9250_handle_t *handle, uint8_t *data) |
| get the accelerometer x test | |
| uint8_t | mpu9250_set_accelerometer_y_test (mpu9250_handle_t *handle, uint8_t data) |
| set the accelerometer y test | |
| uint8_t | mpu9250_get_accelerometer_y_test (mpu9250_handle_t *handle, uint8_t *data) |
| get the accelerometer y test | |
| uint8_t | mpu9250_set_accelerometer_z_test (mpu9250_handle_t *handle, uint8_t data) |
| set the accelerometer z test | |
| uint8_t | mpu9250_get_accelerometer_z_test (mpu9250_handle_t *handle, uint8_t *data) |
| get the accelerometer z test | |
| uint8_t | mpu9250_set_motion_threshold (mpu9250_handle_t *handle, uint8_t threshold) |
| set the motion_threshold | |
| uint8_t | mpu9250_get_motion_threshold (mpu9250_handle_t *handle, uint8_t *threshold) |
| get the motion_threshold | |
| 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 | |
| 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 | |
| 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 | |
| uint8_t | mpu9250_set_iic_clock (mpu9250_handle_t *handle, mpu9250_iic_clock_t clk) |
| set the iic clock | |
| uint8_t | mpu9250_get_iic_clock (mpu9250_handle_t *handle, mpu9250_iic_clock_t *clk) |
| get the iic clock | |
| uint8_t | mpu9250_set_iic_multi_master (mpu9250_handle_t *handle, mpu9250_bool_t enable) |
| enable or disable iic multi master | |
| uint8_t | mpu9250_get_iic_multi_master (mpu9250_handle_t *handle, mpu9250_bool_t *enable) |
| get the iic multi master status | |
| 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 | |
| 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 | |
| uint8_t | mpu9250_set_iic_read_mode (mpu9250_handle_t *handle, mpu9250_iic_read_mode_t mode) |
| set the iic read mode | |
| uint8_t | mpu9250_get_iic_read_mode (mpu9250_handle_t *handle, mpu9250_iic_read_mode_t *mode) |
| get the iic read mode | |
| 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 | |
| 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 | |
| uint8_t | mpu9250_set_iic_mode (mpu9250_handle_t *handle, mpu9250_iic_slave_t slave, mpu9250_iic_mode_t mode) |
| set the iic mode | |
| uint8_t | mpu9250_get_iic_mode (mpu9250_handle_t *handle, mpu9250_iic_slave_t slave, mpu9250_iic_mode_t *mode) |
| get the iic mode | |
| uint8_t | mpu9250_set_iic_address (mpu9250_handle_t *handle, mpu9250_iic_slave_t slave, uint8_t addr_7bit) |
| set the iic address | |
| uint8_t | mpu9250_get_iic_address (mpu9250_handle_t *handle, mpu9250_iic_slave_t slave, uint8_t *addr_7bit) |
| get the iic address | |
| uint8_t | mpu9250_set_iic_register (mpu9250_handle_t *handle, mpu9250_iic_slave_t slave, uint8_t reg) |
| set the iic register | |
| uint8_t | mpu9250_get_iic_register (mpu9250_handle_t *handle, mpu9250_iic_slave_t slave, uint8_t *reg) |
| get the iic register | |
| uint8_t | mpu9250_set_iic_data_out (mpu9250_handle_t *handle, mpu9250_iic_slave_t slave, uint8_t data) |
| set the iic data out | |
| uint8_t | mpu9250_get_iic_data_out (mpu9250_handle_t *handle, mpu9250_iic_slave_t slave, uint8_t *data) |
| get the iic data out | |
| uint8_t | mpu9250_set_iic_enable (mpu9250_handle_t *handle, mpu9250_iic_slave_t slave, mpu9250_bool_t enable) |
| enable or disable the iic | |
| uint8_t | mpu9250_get_iic_enable (mpu9250_handle_t *handle, mpu9250_iic_slave_t slave, mpu9250_bool_t *enable) |
| get the iic status | |
| 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 | |
| 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 | |
| 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 | |
| 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 | |
| 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 | |
| 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 | |
| uint8_t | mpu9250_set_iic_transferred_len (mpu9250_handle_t *handle, mpu9250_iic_slave_t slave, uint8_t len) |
| set the iic transferred length | |
| uint8_t | mpu9250_get_iic_transferred_len (mpu9250_handle_t *handle, mpu9250_iic_slave_t slave, uint8_t *len) |
| get the iic transferred length | |
| uint8_t | mpu9250_get_iic_status (mpu9250_handle_t *handle, uint8_t *status) |
| get the iic status | |
| 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 | |
| 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 | |
| uint8_t | mpu9250_set_iic4_enable (mpu9250_handle_t *handle, mpu9250_bool_t enable) |
| enable or disable the iic4 | |
| uint8_t | mpu9250_get_iic4_enable (mpu9250_handle_t *handle, mpu9250_bool_t *enable) |
| get the iic4 status | |
| uint8_t | mpu9250_set_iic4_interrupt (mpu9250_handle_t *handle, mpu9250_bool_t enable) |
| enable or disable the iic4 interrupt | |
| uint8_t | mpu9250_get_iic4_interrupt (mpu9250_handle_t *handle, mpu9250_bool_t *enable) |
| get the iic4 interrupt status | |
| uint8_t | mpu9250_set_iic4_transaction_mode (mpu9250_handle_t *handle, mpu9250_iic4_transaction_mode_t mode) |
| set the iic4 transaction mode | |
| uint8_t | mpu9250_get_iic4_transaction_mode (mpu9250_handle_t *handle, mpu9250_iic4_transaction_mode_t *mode) |
| get the iic4 transaction mode | |
| uint8_t | mpu9250_set_iic_delay (mpu9250_handle_t *handle, uint8_t delay) |
| set the iic delay | |
| uint8_t | mpu9250_get_iic_delay (mpu9250_handle_t *handle, uint8_t *delay) |
| get the iic delay | |
| uint8_t | mpu9250_set_iic4_data_out (mpu9250_handle_t *handle, uint8_t data) |
| set the iic4 data out | |
| uint8_t | mpu9250_get_iic4_data_out (mpu9250_handle_t *handle, uint8_t *data) |
| get the iic4 data out | |
| uint8_t | mpu9250_set_iic4_data_in (mpu9250_handle_t *handle, uint8_t data) |
| set the iic4 data in | |
| uint8_t | mpu9250_get_iic4_data_in (mpu9250_handle_t *handle, uint8_t *data) |
| get the iic4 data in | |
| uint8_t | mpu9250_read_extern_sensor_data (mpu9250_handle_t *handle, uint8_t *data, uint8_t len) |
| read the extern sensor data | |
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 | pointer to an mpu9250 handle structure |
| [in] | reg | register raw data |
| [out] | *mg | pointer to an accelerometer offset buffer |
Definition at line 9662 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 | pointer to an mpu9250 handle structure |
| [in] | mg | accelerometer offset |
| [out] | *reg | pointer to a register raw buffer |
Definition at line 9635 of file driver_mpu9250.c.
| uint8_t mpu9250_deinit | ( | mpu9250_handle_t * | handle | ) |
close the chip
| [in] | *handle | pointer to an mpu9250 handle structure |
Definition at line 4167 of file driver_mpu9250.c.
| uint8_t mpu9250_device_reset | ( | mpu9250_handle_t * | handle | ) |
reset the chip
| [in] | *handle | pointer to an mpu9250 handle structure |
Definition at line 6284 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 | pointer to an mpu9250 handle structure |
| [out] | *buf | pointer to a data buffer |
| [in] | len | buffer length |
Definition at line 6898 of file driver_mpu9250.c.
| uint8_t mpu9250_fifo_reset | ( | mpu9250_handle_t * | handle | ) |
reset the fifo
| [in] | *handle | pointer to an mpu9250 handle structure |
Definition at line 6041 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 | pointer to an mpu9250 handle structure |
| [in] | *buf | pointer to a data buffer |
| [in] | len | buffer length |
Definition at line 6934 of file driver_mpu9250.c.
| uint8_t mpu9250_force_fifo_reset | ( | mpu9250_handle_t * | handle | ) |
force reset the fifo
| [in] | *handle | pointer to an mpu9250 handle structure |
Definition at line 5843 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 | pointer to an mpu9250 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 8176 of file driver_mpu9250.c.
| uint8_t mpu9250_get_accelerometer_choice | ( | mpu9250_handle_t * | handle, |
| uint8_t * | choice ) |
get the accelerometer choice
| [in] | *handle | pointer to an mpu9250 handle structure |
| [out] | *choice | pointer to an accelerometer choice buffer |
Definition at line 7848 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 | pointer to an mpu9250 handle structure |
| [out] | *filter | pointer to an accelerometer low pass filter buffer |
Definition at line 7930 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 | pointer to an mpu9250 handle structure |
| [out] | *range | pointer to an accelerometer range buffer |
Definition at line 7714 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 | pointer to an mpu9250 handle structure |
| [in] | axis | tested axis |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 7632 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 | pointer to an mpu9250 handle structure |
| [out] | *offset | pointer to an accelerometer x offset buffer |
Definition at line 9448 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 | pointer to an mpu9250 handle structure |
| [out] | *data | pointer to a set data buffer |
Definition at line 9235 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 | pointer to an mpu9250 handle structure |
| [out] | *offset | pointer to an accelerometer y offset buffer |
Definition at line 9523 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 | pointer to an mpu9250 handle structure |
| [out] | *data | pointer to a set data buffer |
Definition at line 9305 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 | pointer to an mpu9250 handle structure |
| [out] | *offset | pointer to an accelerometer z offset buffer |
Definition at line 9598 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 | pointer to an mpu9250 handle structure |
| [out] | *data | pointer to a set data buffer |
Definition at line 9375 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 | pointer to an mpu9250 handle structure |
| [out] | *addr_pin | pointer to a chip address pin buffer |
Definition at line 3984 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 | pointer to an mpu9250 handle structure |
| [out] | *clock_source | pointer to a clock source buffer |
Definition at line 6411 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 | pointer to an mpu9250 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 6575 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 | pointer to an mpu9250 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 6329 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 | pointer to an mpu9250 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 6005 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 | pointer to an mpu9250 handle structure |
| [out] | *sync | pointer to an extern sync type buffer |
Definition at line 7129 of file driver_mpu9250.c.
| uint8_t mpu9250_get_fifo | ( | mpu9250_handle_t * | handle, |
| mpu9250_bool_t * | enable ) |
get the fifo status
| [in] | *handle | pointer to an mpu9250 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 5807 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 | pointer to an mpu9250 handle structure |
| [out] | *count | pointer to a fifo count buffer |
Definition at line 6860 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 | pointer to an mpu9250 handle structure |
| [in] | fifo | fifo type |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 8260 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 | pointer to an mpu9250 handle structure |
| [out] | *mode | pointer to a fifo mode buffer |
Definition at line 7293 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 | pointer to an mpu9250 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 6086 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 | pointer to an mpu9250 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 8752 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 | pointer to an mpu9250 handle structure |
| [out] | *level | pointer to a set level buffer |
Definition at line 8670 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 | pointer to an mpu9250 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 6739 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 | pointer to an mpu9250 handle structure |
| [out] | *offset | pointer to a gyro x offset buffer |
Definition at line 9727 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 | pointer to an mpu9250 handle structure |
| [out] | *offset | pointer to a gyro y offset buffer |
Definition at line 9802 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 | pointer to an mpu9250 handle structure |
| [out] | *offset | pointer to a gyro z offset buffer |
Definition at line 9877 of file driver_mpu9250.c.
| uint8_t mpu9250_get_gyroscope_choice | ( | mpu9250_handle_t * | handle, |
| uint8_t * | choice ) |
get the gyroscope choice
| [in] | *handle | pointer to an mpu9250 handle structure |
| [out] | *choice | pointer to a gyroscope choice buffer |
Definition at line 7548 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 | pointer to an mpu9250 handle structure |
| [out] | *range | pointer to a gyroscope range buffer |
Definition at line 7459 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 | pointer to an mpu9250 handle structure |
| [in] | axis | tested axis |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 7377 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 | pointer to an mpu9250 handle structure |
| [out] | *data | pointer to a set data buffer |
Definition at line 9025 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 | pointer to an mpu9250 handle structure |
| [out] | *data | pointer to a set data buffer |
Definition at line 9095 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 | pointer to an mpu9250 handle structure |
| [out] | *data | pointer to a set data buffer |
Definition at line 9165 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 | pointer to an mpu9250 handle structure |
| [out] | *data | pointer to a set data buffer |
Definition at line 12953 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 | pointer to an mpu9250 handle structure |
| [out] | *data | pointer to a set data buffer |
Definition at line 12883 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 | pointer to an mpu9250 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 12558 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 | pointer to an mpu9250 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 12640 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 | pointer to an mpu9250 handle structure |
| [out] | *mode | pointer to a transaction mode buffer |
Definition at line 12722 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 | pointer to an mpu9250 handle structure |
| [in] | slave | iic slave number |
| [out] | *addr_7bit | pointer to an iic address buffer |
Definition at line 11003 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 | pointer to an mpu9250 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 8834 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 | pointer to an mpu9250 handle structure |
| [in] | slave | iic slave number |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 11726 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 | pointer to an mpu9250 handle structure |
| [out] | *clk | pointer to an iic clock buffer |
Definition at line 10222 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 | pointer to an mpu9250 handle structure |
| [in] | slave | iic slave number |
| [out] | *data | pointer to a set data buffer |
Definition at line 11343 of file driver_mpu9250.c.
| uint8_t mpu9250_get_iic_delay | ( | mpu9250_handle_t * | handle, |
| uint8_t * | delay ) |
get the iic delay
| [in] | *handle | pointer to an mpu9250 handle structure |
| [out] | *delay | pointer to an iic delay buffer |
Definition at line 12811 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 | pointer to an mpu9250 handle structure |
| [in] | delay | iic delay |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 12476 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 | pointer to an mpu9250 handle structure |
| [in] | slave | iic slave number |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 11532 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 | pointer to an mpu9250 handle structure |
| [in] | slave | iic slave number |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 10585 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 | pointer to an mpu9250 handle structure |
| [in] | slave | iic slave number |
| [out] | *order | pointer to a group order buffer |
Definition at line 12114 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 | pointer to an mpu9250 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 5923 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 | pointer to an mpu9250 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 6167 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 | pointer to an mpu9250 handle structure |
| [in] | slave | iic slave number |
| [out] | *mode | pointer to an iic mode buffer |
Definition at line 10779 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 | pointer to an mpu9250 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 10304 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 | pointer to an mpu9250 handle structure |
| [out] | *mode | pointer to a read mode buffer |
Definition at line 10468 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 | pointer to an mpu9250 handle structure |
| [in] | slave | iic slave number |
| [out] | *reg | pointer to an iic register buffer |
Definition at line 11181 of file driver_mpu9250.c.
| uint8_t mpu9250_get_iic_status | ( | mpu9250_handle_t * | handle, |
| uint8_t * | status ) |
get the iic status
| [in] | *handle | pointer to an mpu9250 handle structure |
| [out] | *status | pointer to a status buffer |
Definition at line 12394 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 | pointer to an mpu9250 handle structure |
| [in] | slave | iic slave number |
| [out] | *mode | pointer to an iic transaction mode buffer |
Definition at line 11920 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 | pointer to an mpu9250 handle structure |
| [in] | slave | iic slave number |
| [out] | *len | pointer to an iic transferred length buffer |
Definition at line 12315 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 | pointer to an mpu9250 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 10386 of file driver_mpu9250.c.
| uint8_t mpu9250_get_interface | ( | mpu9250_handle_t * | handle, |
| mpu9250_interface_t * | interface ) |
get the chip interface
| [in] | *handle | pointer to an mpu9250 handle structure |
| [out] | *interface | pointer to a chip interface buffer |
Definition at line 3942 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 | pointer to an mpu9250 handle structure |
| [in] | type | set interrupt type |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 8918 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 | pointer to an mpu9250 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 8506 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 | pointer to an mpu9250 handle structure |
| [out] | *level | pointer to an interrupt level buffer |
Definition at line 8342 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 | pointer to an mpu9250 handle structure |
| [out] | *type | pointer to a pin type buffer |
Definition at line 8424 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 | pointer to an mpu9250 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 8588 of file driver_mpu9250.c.
| uint8_t mpu9250_get_interrupt_status | ( | mpu9250_handle_t * | handle, |
| uint8_t * | status ) |
get the interrupt status
| [in] | *handle | pointer to an mpu9250 handle structure |
| [out] | *status | pointer to a status buffer |
Definition at line 8955 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 | pointer to an mpu9250 handle structure |
| [out] | *filter | pointer to a low pass filter buffer |
Definition at line 7211 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 | pointer to an mpu9250 handle structure |
| [out] | *rate | pointer to a low power accel output rate buffer |
Definition at line 8012 of file driver_mpu9250.c.
| uint8_t mpu9250_get_motion_threshold | ( | mpu9250_handle_t * | handle, |
| uint8_t * | threshold ) |
get the motion_threshold
| [in] | *handle | pointer to an mpu9250 handle structure |
| [out] | *threshold | pointer to a threshold buffer |
Definition at line 10003 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 | pointer to an mpu9250 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 6493 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 | pointer to an mpu9250 handle structure |
| [out] | *d | pointer to a sample rate divider buffer |
Definition at line 7049 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 | pointer to an mpu9250 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 6248 of file driver_mpu9250.c.
| uint8_t mpu9250_get_sleep | ( | mpu9250_handle_t * | handle, |
| mpu9250_bool_t * | enable ) |
get the sleep status
| [in] | *handle | pointer to an mpu9250 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 6657 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 | pointer to an mpu9250 handle structure |
| [in] | source | input source |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 6823 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 | pointer to an mpu9250 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 8094 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 | pointer to an mpu9250 handle structure |
| [in] | reg | register raw data |
| [out] | *dps | pointer to a gyro offset buffer |
Definition at line 9941 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 | pointer to an mpu9250 handle structure |
| [in] | dps | gyro offset |
| [out] | *reg | pointer to a register raw buffer |
Definition at line 9914 of file driver_mpu9250.c.
| uint8_t mpu9250_iic_master_reset | ( | mpu9250_handle_t * | handle | ) |
reset the iic master controller
| [in] | *handle | pointer to an mpu9250 handle structure |
Definition at line 6122 of file driver_mpu9250.c.
| uint8_t mpu9250_info | ( | mpu9250_info_t * | info | ) |
get the chip's information
| [out] | *info | pointer to an mpu9250 info structure |
Definition at line 13082 of file driver_mpu9250.c.
| uint8_t mpu9250_init | ( | mpu9250_handle_t * | handle | ) |
initialize the chip
| [in] | *handle | pointer to an mpu9250 handle structure |
Definition at line 4008 of file driver_mpu9250.c.
| uint8_t mpu9250_irq_handler | ( | mpu9250_handle_t * | handle | ) |
irq handler
| [in] | *handle | pointer to an mpu9250 handle structure |
Definition at line 4667 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 | pointer to an mpu9250 handle structure |
| [in] | reg | register raw data |
| [out] | *mg | pointer to a motion threshold buffer |
Definition at line 10065 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 | pointer to an mpu9250 handle structure |
| [in] | mg | motion threshold |
| [out] | *reg | pointer to a register raw buffer |
Definition at line 10038 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 | pointer to an mpu9250 handle structure |
| [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 a 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 4222 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 | pointer to an mpu9250 handle structure |
| [out] | *data | pointer to a data buffer |
| [in] | len | data length |
Definition at line 12990 of file driver_mpu9250.c.
| uint8_t mpu9250_read_temperature | ( | mpu9250_handle_t * | handle, |
| int16_t * | raw, | ||
| float * | degrees ) |
read the temperature
| [in] | *handle | pointer to an mpu9250 handle structure |
| [out] | *raw | pointer to raw data buffer |
| [out] | *degrees | pointer to a converted degrees data buffer |
Definition at line 4630 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 | pointer to an mpu9250 handle structure |
| [out] | *gyro_offset_raw | pointer to a gyro offset raw buffer |
| [out] | *accel_offset_raw | pointer to an accel offset raw buffer |
Definition at line 10093 of file driver_mpu9250.c.
| uint8_t mpu9250_sensor_reset | ( | mpu9250_handle_t * | handle | ) |
reset all sensors
| [in] | *handle | pointer to an mpu9250 handle structure |
Definition at line 6203 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 | pointer to an mpu9250 handle structure |
| [in] | enable | bool value |
Definition at line 8131 of file driver_mpu9250.c.
| uint8_t mpu9250_set_accelerometer_choice | ( | mpu9250_handle_t * | handle, |
| uint8_t | choice ) |
set the accelerometer choice
| [in] | *handle | pointer to an mpu9250 handle structure |
| [in] | choice | accelerometer choice |
Definition at line 7796 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 | pointer to an mpu9250 handle structure |
| [in] | filter | accelerometer low pass filter |
Definition at line 7885 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 | pointer to an mpu9250 handle structure |
| [in] | range | accelerometer range |
Definition at line 7669 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 | pointer to an mpu9250 handle structure |
| [in] | axis | tested axis |
| [in] | enable | bool value |
Definition at line 7586 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 | pointer to an mpu9250 handle structure |
| [in] | offset | accelerometer x offset |
Definition at line 9410 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 | pointer to an mpu9250 handle structure |
| [in] | data | set data |
Definition at line 9200 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 | pointer to an mpu9250 handle structure |
| [in] | offset | accelerometer y offset |
Definition at line 9485 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 | pointer to an mpu9250 handle structure |
| [in] | data | set data |
Definition at line 9270 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 | pointer to an mpu9250 handle structure |
| [in] | offset | accelerometer z offset |
Definition at line 9560 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 | pointer to an mpu9250 handle structure |
| [in] | data | set data |
Definition at line 9340 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 | pointer to an mpu9250 handle structure |
| [in] | addr_pin | chip address pin |
Definition at line 3963 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 | pointer to an mpu9250 handle structure |
| [in] | clock_source | chip main clock source |
Definition at line 6366 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 | pointer to an mpu9250 handle structure |
| [in] | enable | bool value |
Definition at line 6530 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 | pointer to an mpu9250 handle structure |
| [in] | enable | bool value |
Definition at line 5960 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 | pointer to an mpu9250 handle structure |
| [in] | sync | extern sync type |
Definition at line 7084 of file driver_mpu9250.c.
| uint8_t mpu9250_set_fifo | ( | mpu9250_handle_t * | handle, |
| mpu9250_bool_t | enable ) |
enable or disable fifo
| [in] | *handle | pointer to an mpu9250 handle structure |
| [in] | enable | bool value |
Definition at line 5762 of file driver_mpu9250.c.
| uint8_t mpu9250_set_fifo_1024kb | ( | mpu9250_handle_t * | handle | ) |
set fifo 1024kb
| [in] | *handle | pointer to an mpu9250 handle structure |
Definition at line 7750 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 | pointer to an mpu9250 handle structure |
| [in] | fifo | fifo type |
| [in] | enable | bool value |
Definition at line 8214 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 | pointer to an mpu9250 handle structure |
| [in] | mode | fifo mode |
Definition at line 7248 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 | pointer to an mpu9250 handle structure |
| [in] | enable | bool value |
Definition at line 8707 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 | pointer to an mpu9250 handle structure |
| [in] | level | set level |
Definition at line 8625 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 | pointer to an mpu9250 handle structure |
| [in] | enable | bool value |
Definition at line 6694 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 | pointer to an mpu9250 handle structure |
| [in] | offset | gyro x offset |
Definition at line 9689 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 | pointer to an mpu9250 handle structure |
| [in] | offset | gyro y offset |
Definition at line 9764 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 | pointer to an mpu9250 handle structure |
| [in] | offset | gyro z offset |
Definition at line 9839 of file driver_mpu9250.c.
| uint8_t mpu9250_set_gyroscope_choice | ( | mpu9250_handle_t * | handle, |
| uint8_t | choice ) |
set the gyroscope choice
| [in] | *handle | pointer to an mpu9250 handle structure |
| [in] | choice | gyroscope choice |
Definition at line 7497 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 | pointer to an mpu9250 handle structure |
| [in] | range | gyroscope range |
Definition at line 7414 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 | pointer to an mpu9250 handle structure |
| [in] | axis | tested axis |
| [in] | enable | bool value |
Definition at line 7331 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 | pointer to an mpu9250 handle structure |
| [in] | data | set data |
Definition at line 8990 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 | pointer to an mpu9250 handle structure |
| [in] | data | set data |
Definition at line 9060 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 | pointer to an mpu9250 handle structure |
| [in] | data | set data |
Definition at line 9130 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 | pointer to an mpu9250 handle structure |
| [in] | data | set data |
Definition at line 12918 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 | pointer to an mpu9250 handle structure |
| [in] | data | set data |
Definition at line 12848 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 | pointer to an mpu9250 handle structure |
| [in] | enable | bool value |
Definition at line 12513 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 | pointer to an mpu9250 handle structure |
| [in] | enable | bool value |
Definition at line 12595 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 | pointer to an mpu9250 handle structure |
| [in] | mode | transaction mode |
Definition at line 12677 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 | pointer to an mpu9250 handle structure |
| [in] | slave | iic slave number |
| [in] | addr_7bit | iic address |
Definition at line 10871 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 | pointer to an mpu9250 handle structure |
| [in] | enable | bool value |
Definition at line 8789 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 | pointer to an mpu9250 handle structure |
| [in] | slave | iic slave number |
| [in] | enable | bool value |
Definition at line 11613 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 | pointer to an mpu9250 handle structure |
| [in] | clk | iic clock |
Definition at line 10177 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 | pointer to an mpu9250 handle structure |
| [in] | slave | iic slave number |
| [in] | data | set data |
Definition at line 11267 of file driver_mpu9250.c.
| uint8_t mpu9250_set_iic_delay | ( | mpu9250_handle_t * | handle, |
| uint8_t | delay ) |
set the iic delay
| [in] | *handle | pointer to an mpu9250 handle structure |
| [in] | delay | iic delay |
Definition at line 12760 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 | pointer to an mpu9250 handle structure |
| [in] | delay | iic delay |
| [in] | enable | bool value |
Definition at line 12430 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 | pointer to an mpu9250 handle structure |
| [in] | slave | iic slave number |
| [in] | enable | bool value |
Definition at line 11419 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 | pointer to an mpu9250 handle structure |
| [in] | slave | iic slave number |
| [in] | enable | bool value |
Definition at line 10507 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 | pointer to an mpu9250 handle structure |
| [in] | slave | iic slave number |
| [in] | order | group order |
Definition at line 12001 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 | pointer to an mpu9250 handle structure |
| [in] | enable | bool value |
Definition at line 5878 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 | pointer to an mpu9250 handle structure |
| [in] | slave | iic slave number |
| [in] | mode | iic mode |
Definition at line 10647 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 | pointer to an mpu9250 handle structure |
| [in] | enable | bool value |
Definition at line 10259 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 | pointer to an mpu9250 handle structure |
| [in] | mode | read mode |
Definition at line 10423 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 | pointer to an mpu9250 handle structure |
| [in] | slave | iic slave number |
| [in] | reg | iic register |
Definition at line 11095 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 | pointer to an mpu9250 handle structure |
| [in] | slave | iic slave number |
| [in] | mode | iic transaction mode |
Definition at line 11807 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 | pointer to an mpu9250 handle structure |
| [in] | slave | iic slave number |
| [in] | len | iic transferred length |
Definition at line 12196 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 | pointer to an mpu9250 handle structure |
| [in] | enable | bool value |
Definition at line 10341 of file driver_mpu9250.c.
| uint8_t mpu9250_set_interface | ( | mpu9250_handle_t * | handle, |
| mpu9250_interface_t | interface ) |
set the chip interface
| [in] | *handle | pointer to an mpu9250 handle structure |
| [in] | interface | chip interface |
Definition at line 3921 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 | pointer to an mpu9250 handle structure |
| [in] | type | set interrupt type |
| [in] | enable | bool value |
Definition at line 8872 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 | pointer to an mpu9250 handle structure |
| [in] | enable | bool value |
Definition at line 8461 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 | pointer to an mpu9250 handle structure |
| [in] | level | interrupt level |
Definition at line 8297 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 | pointer to an mpu9250 handle structure |
| [in] | type | interrupt pin type |
Definition at line 8379 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 | pointer to an mpu9250 handle structure |
| [in] | enable | bool value |
Definition at line 8543 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 | pointer to an mpu9250 handle structure |
| [in] | filter | low pass filter |
Definition at line 7166 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 | pointer to an mpu9250 handle structure |
| [in] | rate | low power accel output rate |
Definition at line 7967 of file driver_mpu9250.c.
| uint8_t mpu9250_set_motion_threshold | ( | mpu9250_handle_t * | handle, |
| uint8_t | threshold ) |
set the motion_threshold
| [in] | *handle | pointer to an mpu9250 handle structure |
| [in] | threshold | set threshold |
Definition at line 9968 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 | pointer to an mpu9250 handle structure |
| [in] | enable | bool value |
Definition at line 6448 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 | pointer to an mpu9250 handle structure |
| [in] | d | sample rate divider |
Definition at line 7014 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 | pointer to an mpu9250 handle structure |
| [in] | path | signal path |
Definition at line 6969 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 | pointer to an mpu9250 handle structure |
| [in] | enable | bool value |
Definition at line 6612 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 | pointer to an mpu9250 handle structure |
| [in] | source | input source |
| [in] | enable | bool value |
Definition at line 6777 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 | pointer to an mpu9250 handle structure |
| [in] | enable | bool value |
Definition at line 8049 of file driver_mpu9250.c.