![]() |
LibDriver MPU6500
|
mpu6500 basic driver modules More...
Data Structures | |
| struct | mpu6500_handle_s |
| mpu6500 handle structure definition More... | |
| struct | mpu6500_info_s |
| mpu6500 information structure definition More... | |
Typedefs | |
| typedef struct mpu6500_handle_s | mpu6500_handle_t |
| mpu6500 handle structure definition | |
| typedef struct mpu6500_info_s | mpu6500_info_t |
| mpu6500 information structure definition | |
Functions | |
| uint8_t | mpu6500_info (mpu6500_info_t *info) |
| get the chip's information | |
| uint8_t | mpu6500_set_interface (mpu6500_handle_t *handle, mpu6500_interface_t interface) |
| set the chip interface | |
| uint8_t | mpu6500_get_interface (mpu6500_handle_t *handle, mpu6500_interface_t *interface) |
| get the chip interface | |
| uint8_t | mpu6500_set_addr_pin (mpu6500_handle_t *handle, mpu6500_address_t addr_pin) |
| set the chip address pin | |
| uint8_t | mpu6500_get_addr_pin (mpu6500_handle_t *handle, mpu6500_address_t *addr_pin) |
| get the chip address pin | |
| uint8_t | mpu6500_irq_handler (mpu6500_handle_t *handle) |
| irq handler | |
| uint8_t | mpu6500_init (mpu6500_handle_t *handle) |
| initialize the chip | |
| uint8_t | mpu6500_deinit (mpu6500_handle_t *handle) |
| close the chip | |
| uint8_t | mpu6500_read (mpu6500_handle_t *handle, int16_t(*accel_raw)[3], float(*accel_g)[3], int16_t(*gyro_raw)[3], float(*gyro_dps)[3], uint16_t *len) |
| read the data | |
| uint8_t | mpu6500_read_temperature (mpu6500_handle_t *handle, int16_t(*raw), float *degrees) |
| read the temperature | |
| uint8_t | mpu6500_set_fifo (mpu6500_handle_t *handle, mpu6500_bool_t enable) |
| enable or disable fifo | |
| uint8_t | mpu6500_get_fifo (mpu6500_handle_t *handle, mpu6500_bool_t *enable) |
| get the fifo status | |
| uint8_t | mpu6500_force_fifo_reset (mpu6500_handle_t *handle) |
| force reset the fifo | |
| uint8_t | mpu6500_set_iic_master (mpu6500_handle_t *handle, mpu6500_bool_t enable) |
| enable or disable the iic master mode | |
| uint8_t | mpu6500_get_iic_master (mpu6500_handle_t *handle, mpu6500_bool_t *enable) |
| get the iic master status | |
| uint8_t | mpu6500_set_disable_iic_slave (mpu6500_handle_t *handle, mpu6500_bool_t enable) |
| enable or disable the iic slave mode | |
| uint8_t | mpu6500_get_disable_iic_slave (mpu6500_handle_t *handle, mpu6500_bool_t *enable) |
| get the iic slave status | |
| uint8_t | mpu6500_fifo_reset (mpu6500_handle_t *handle) |
| reset the fifo | |
| uint8_t | mpu6500_get_fifo_reset (mpu6500_handle_t *handle, mpu6500_bool_t *enable) |
| get the fifo reset status | |
| uint8_t | mpu6500_iic_master_reset (mpu6500_handle_t *handle) |
| reset the iic master controller | |
| uint8_t | mpu6500_get_iic_master_reset (mpu6500_handle_t *handle, mpu6500_bool_t *enable) |
| get the iic master reset status | |
| uint8_t | mpu6500_sensor_reset (mpu6500_handle_t *handle) |
| reset all sensors | |
| uint8_t | mpu6500_get_sensor_reset (mpu6500_handle_t *handle, mpu6500_bool_t *enable) |
| get the sensor reset status | |
| uint8_t | mpu6500_device_reset (mpu6500_handle_t *handle) |
| reset the chip | |
| uint8_t | mpu6500_get_device_reset (mpu6500_handle_t *handle, mpu6500_bool_t *enable) |
| get the device reset status | |
| uint8_t | mpu6500_set_clock_source (mpu6500_handle_t *handle, mpu6500_clock_source_t clock_source) |
| set the chip clock source | |
| uint8_t | mpu6500_get_clock_source (mpu6500_handle_t *handle, mpu6500_clock_source_t *clock_source) |
| get the chip clock source | |
| uint8_t | mpu6500_set_ptat (mpu6500_handle_t *handle, mpu6500_bool_t enable) |
| enable or disable the temperature sensor | |
| uint8_t | mpu6500_get_ptat (mpu6500_handle_t *handle, mpu6500_bool_t *enable) |
| get the temperature sensor status | |
| uint8_t | mpu6500_set_cycle_wake_up (mpu6500_handle_t *handle, mpu6500_bool_t enable) |
| enable or disable the cycle wake up mode | |
| uint8_t | mpu6500_get_cycle_wake_up (mpu6500_handle_t *handle, mpu6500_bool_t *enable) |
| get the cycle wake up mode status | |
| uint8_t | mpu6500_set_sleep (mpu6500_handle_t *handle, mpu6500_bool_t enable) |
| enable or disable the sleep mode | |
| uint8_t | mpu6500_get_sleep (mpu6500_handle_t *handle, mpu6500_bool_t *enable) |
| get the sleep status | |
| uint8_t | mpu6500_set_gyro_standby (mpu6500_handle_t *handle, mpu6500_bool_t enable) |
| enable or disable the gyro standby | |
| uint8_t | mpu6500_get_gyro_standby (mpu6500_handle_t *handle, mpu6500_bool_t *enable) |
| get the gyro standby status | |
| uint8_t | mpu6500_set_standby_mode (mpu6500_handle_t *handle, mpu6500_source_t source, mpu6500_bool_t enable) |
| set source into standby mode | |
| uint8_t | mpu6500_get_standby_mode (mpu6500_handle_t *handle, mpu6500_source_t source, mpu6500_bool_t *enable) |
| get the source mode | |
| uint8_t | mpu6500_get_fifo_count (mpu6500_handle_t *handle, uint16_t *count) |
| get the fifo counter value | |
| uint8_t | mpu6500_fifo_get (mpu6500_handle_t *handle, uint8_t *buf, uint16_t len) |
| fifo read bytes | |
| uint8_t | mpu6500_fifo_set (mpu6500_handle_t *handle, uint8_t *buf, uint16_t len) |
| fifo write bytes | |
| uint8_t | mpu6500_set_signal_path_reset (mpu6500_handle_t *handle, mpu6500_signal_path_reset_t path) |
| set the signal path reset | |
| uint8_t | mpu6500_set_sample_rate_divider (mpu6500_handle_t *handle, uint8_t d) |
| set the sample rate divider | |
| uint8_t | mpu6500_get_sample_rate_divider (mpu6500_handle_t *handle, uint8_t *d) |
| get the sample rate divider | |
| uint8_t | mpu6500_set_extern_sync (mpu6500_handle_t *handle, mpu6500_extern_sync_t sync) |
| set the extern sync type | |
| uint8_t | mpu6500_get_extern_sync (mpu6500_handle_t *handle, mpu6500_extern_sync_t *sync) |
| get the extern sync type | |
| uint8_t | mpu6500_set_low_pass_filter (mpu6500_handle_t *handle, mpu6500_low_pass_filter_t filter) |
| set the low pass filter | |
| uint8_t | mpu6500_get_low_pass_filter (mpu6500_handle_t *handle, mpu6500_low_pass_filter_t *filter) |
| get the low pass filter | |
| uint8_t | mpu6500_set_fifo_mode (mpu6500_handle_t *handle, mpu6500_fifo_mode mode) |
| set the fifo mode | |
| uint8_t | mpu6500_get_fifo_mode (mpu6500_handle_t *handle, mpu6500_fifo_mode *mode) |
| get the fifo mode | |
| uint8_t | mpu6500_set_gyroscope_test (mpu6500_handle_t *handle, mpu6500_axis_t axis, mpu6500_bool_t enable) |
| set the gyroscope test | |
| uint8_t | mpu6500_get_gyroscope_test (mpu6500_handle_t *handle, mpu6500_axis_t axis, mpu6500_bool_t *enable) |
| get the gyroscope test | |
| uint8_t | mpu6500_set_gyroscope_range (mpu6500_handle_t *handle, mpu6500_gyroscope_range_t range) |
| set the gyroscope range | |
| uint8_t | mpu6500_get_gyroscope_range (mpu6500_handle_t *handle, mpu6500_gyroscope_range_t *range) |
| get the gyroscope range | |
| uint8_t | mpu6500_set_gyroscope_choice (mpu6500_handle_t *handle, uint8_t choice) |
| set the gyroscope choice | |
| uint8_t | mpu6500_get_gyroscope_choice (mpu6500_handle_t *handle, uint8_t *choice) |
| get the gyroscope choice | |
| uint8_t | mpu6500_set_accelerometer_test (mpu6500_handle_t *handle, mpu6500_axis_t axis, mpu6500_bool_t enable) |
| set the accelerometer test | |
| uint8_t | mpu6500_get_accelerometer_test (mpu6500_handle_t *handle, mpu6500_axis_t axis, mpu6500_bool_t *enable) |
| get the accelerometer test | |
| uint8_t | mpu6500_set_accelerometer_range (mpu6500_handle_t *handle, mpu6500_accelerometer_range_t range) |
| set the accelerometer range | |
| uint8_t | mpu6500_get_accelerometer_range (mpu6500_handle_t *handle, mpu6500_accelerometer_range_t *range) |
| get the accelerometer range | |
| uint8_t | mpu6500_set_fifo_1024kb (mpu6500_handle_t *handle) |
| set fifo 1024kb | |
| uint8_t | mpu6500_set_accelerometer_choice (mpu6500_handle_t *handle, uint8_t choice) |
| set the accelerometer choice | |
| uint8_t | mpu6500_get_accelerometer_choice (mpu6500_handle_t *handle, uint8_t *choice) |
| get the accelerometer choice | |
| uint8_t | mpu6500_set_accelerometer_low_pass_filter (mpu6500_handle_t *handle, mpu6500_accelerometer_low_pass_filter_t filter) |
| set the accelerometer low pass filter | |
| uint8_t | mpu6500_get_accelerometer_low_pass_filter (mpu6500_handle_t *handle, mpu6500_accelerometer_low_pass_filter_t *filter) |
| get the accelerometer low pass filter | |
| uint8_t | mpu6500_set_low_power_accel_output_rate (mpu6500_handle_t *handle, mpu6500_low_power_accel_output_rate_t rate) |
| set the low power accel output rate | |
| uint8_t | mpu6500_get_low_power_accel_output_rate (mpu6500_handle_t *handle, mpu6500_low_power_accel_output_rate_t *rate) |
| get the low power accel output rate | |
| uint8_t | mpu6500_set_wake_on_motion (mpu6500_handle_t *handle, mpu6500_bool_t enable) |
| enable or disable wake on motion | |
| uint8_t | mpu6500_get_wake_on_motion (mpu6500_handle_t *handle, mpu6500_bool_t *enable) |
| get the wake on motion status | |
| uint8_t | mpu6500_set_accel_compare_with_previous_sample (mpu6500_handle_t *handle, mpu6500_bool_t enable) |
| enable or disable accel compare with previous sample | |
| uint8_t | mpu6500_get_accel_compare_with_previous_sample (mpu6500_handle_t *handle, mpu6500_bool_t *enable) |
| get the accel compare with previous sample status | |
| uint8_t | mpu6500_set_accelerometer_x_offset (mpu6500_handle_t *handle, int16_t offset) |
| set the accelerometer x offset | |
| uint8_t | mpu6500_get_accelerometer_x_offset (mpu6500_handle_t *handle, int16_t *offset) |
| get the accelerometer x offset | |
| uint8_t | mpu6500_set_accelerometer_y_offset (mpu6500_handle_t *handle, int16_t offset) |
| set the accelerometer y offset | |
| uint8_t | mpu6500_get_accelerometer_y_offset (mpu6500_handle_t *handle, int16_t *offset) |
| get the accelerometer y offset | |
| uint8_t | mpu6500_set_accelerometer_z_offset (mpu6500_handle_t *handle, int16_t offset) |
| set the accelerometer z offset | |
| uint8_t | mpu6500_get_accelerometer_z_offset (mpu6500_handle_t *handle, int16_t *offset) |
| get the accelerometer z offset | |
| uint8_t | mpu6500_accelerometer_offset_convert_to_register (mpu6500_handle_t *handle, float mg, int16_t *reg) |
| convert the accelerometer offset to the register raw data | |
| uint8_t | mpu6500_accelerometer_offset_convert_to_data (mpu6500_handle_t *handle, int16_t reg, float *mg) |
| convert the register raw data to the accelerometer offset | |
| uint8_t | mpu6500_set_gyro_x_offset (mpu6500_handle_t *handle, int16_t offset) |
| set the gyro x offset | |
| uint8_t | mpu6500_get_gyro_x_offset (mpu6500_handle_t *handle, int16_t *offset) |
| get the gyro x offset | |
| uint8_t | mpu6500_set_gyro_y_offset (mpu6500_handle_t *handle, int16_t offset) |
| set the gyro y offset | |
| uint8_t | mpu6500_get_gyro_y_offset (mpu6500_handle_t *handle, int16_t *offset) |
| get the gyro y offset | |
| uint8_t | mpu6500_set_gyro_z_offset (mpu6500_handle_t *handle, int16_t offset) |
| set the gyro z offset | |
| uint8_t | mpu6500_get_gyro_z_offset (mpu6500_handle_t *handle, int16_t *offset) |
| get the gyro z offset | |
| uint8_t | mpu6500_gyro_offset_convert_to_register (mpu6500_handle_t *handle, float dps, int16_t *reg) |
| convert the gyro offset to the register raw data | |
| uint8_t | mpu6500_gyro_offset_convert_to_data (mpu6500_handle_t *handle, int16_t reg, float *dps) |
| convert the register raw data to the gyro offset | |
| uint8_t | mpu6500_set_fifo_enable (mpu6500_handle_t *handle, mpu6500_fifo_t fifo, mpu6500_bool_t enable) |
| enable or disable the fifo function | |
| uint8_t | mpu6500_get_fifo_enable (mpu6500_handle_t *handle, mpu6500_fifo_t fifo, mpu6500_bool_t *enable) |
| get the fifo function status | |
| uint8_t | mpu6500_set_interrupt_level (mpu6500_handle_t *handle, mpu6500_pin_level_t level) |
| set the interrupt level | |
| uint8_t | mpu6500_get_interrupt_level (mpu6500_handle_t *handle, mpu6500_pin_level_t *level) |
| get the interrupt level | |
| uint8_t | mpu6500_set_interrupt_pin_type (mpu6500_handle_t *handle, mpu6500_pin_type_t type) |
| set the interrupt pin type | |
| uint8_t | mpu6500_get_interrupt_pin_type (mpu6500_handle_t *handle, mpu6500_pin_type_t *type) |
| get the interrupt pin type | |
| uint8_t | mpu6500_set_interrupt_latch (mpu6500_handle_t *handle, mpu6500_bool_t enable) |
| enable or disable the interrupt latch | |
| uint8_t | mpu6500_get_interrupt_latch (mpu6500_handle_t *handle, mpu6500_bool_t *enable) |
| get the interrupt latch status | |
| uint8_t | mpu6500_set_interrupt_read_clear (mpu6500_handle_t *handle, mpu6500_bool_t enable) |
| enable or disable the interrupt reading clear | |
| uint8_t | mpu6500_get_interrupt_read_clear (mpu6500_handle_t *handle, mpu6500_bool_t *enable) |
| get the interrupt reading clear status | |
| uint8_t | mpu6500_set_fsync_interrupt_level (mpu6500_handle_t *handle, mpu6500_pin_level_t level) |
| set the fsync interrupt level | |
| uint8_t | mpu6500_get_fsync_interrupt_level (mpu6500_handle_t *handle, mpu6500_pin_level_t *level) |
| get the fsync interrupt level | |
| uint8_t | mpu6500_set_fsync_interrupt (mpu6500_handle_t *handle, mpu6500_bool_t enable) |
| enable or disable the fsync interrupt | |
| uint8_t | mpu6500_get_fsync_interrupt (mpu6500_handle_t *handle, mpu6500_bool_t *enable) |
| get the fsync interrupt status | |
| uint8_t | mpu6500_set_iic_bypass (mpu6500_handle_t *handle, mpu6500_bool_t enable) |
| enable or disable the iic bypass | |
| uint8_t | mpu6500_get_iic_bypass (mpu6500_handle_t *handle, mpu6500_bool_t *enable) |
| get the iic bypass status | |
| uint8_t | mpu6500_set_interrupt (mpu6500_handle_t *handle, mpu6500_interrupt_t type, mpu6500_bool_t enable) |
| enable or disable the interrupt | |
| uint8_t | mpu6500_get_interrupt (mpu6500_handle_t *handle, mpu6500_interrupt_t type, mpu6500_bool_t *enable) |
| get the interrupt status | |
| uint8_t | mpu6500_get_interrupt_status (mpu6500_handle_t *handle, uint8_t *status) |
| get the interrupt status | |
| uint8_t | mpu6500_set_gyroscope_x_test (mpu6500_handle_t *handle, uint8_t data) |
| set the gyroscope x test | |
| uint8_t | mpu6500_get_gyroscope_x_test (mpu6500_handle_t *handle, uint8_t *data) |
| get the gyroscope x test | |
| uint8_t | mpu6500_set_gyroscope_y_test (mpu6500_handle_t *handle, uint8_t data) |
| set the gyroscope y test | |
| uint8_t | mpu6500_get_gyroscope_y_test (mpu6500_handle_t *handle, uint8_t *data) |
| get the gyroscope y test | |
| uint8_t | mpu6500_set_gyroscope_z_test (mpu6500_handle_t *handle, uint8_t data) |
| set the gyroscope z test | |
| uint8_t | mpu6500_get_gyroscope_z_test (mpu6500_handle_t *handle, uint8_t *data) |
| get the gyroscope z test | |
| uint8_t | mpu6500_set_accelerometer_x_test (mpu6500_handle_t *handle, uint8_t data) |
| set the accelerometer x test | |
| uint8_t | mpu6500_get_accelerometer_x_test (mpu6500_handle_t *handle, uint8_t *data) |
| get the accelerometer x test | |
| uint8_t | mpu6500_set_accelerometer_y_test (mpu6500_handle_t *handle, uint8_t data) |
| set the accelerometer y test | |
| uint8_t | mpu6500_get_accelerometer_y_test (mpu6500_handle_t *handle, uint8_t *data) |
| get the accelerometer y test | |
| uint8_t | mpu6500_set_accelerometer_z_test (mpu6500_handle_t *handle, uint8_t data) |
| set the accelerometer z test | |
| uint8_t | mpu6500_get_accelerometer_z_test (mpu6500_handle_t *handle, uint8_t *data) |
| get the accelerometer z test | |
| uint8_t | mpu6500_set_motion_threshold (mpu6500_handle_t *handle, uint8_t threshold) |
| set the motion_threshold | |
| uint8_t | mpu6500_get_motion_threshold (mpu6500_handle_t *handle, uint8_t *threshold) |
| get the motion_threshold | |
| uint8_t | mpu6500_motion_threshold_convert_to_register (mpu6500_handle_t *handle, float mg, uint8_t *reg) |
| convert the motion threshold to the register raw data | |
| uint8_t | mpu6500_motion_threshold_convert_to_data (mpu6500_handle_t *handle, uint8_t reg, float *mg) |
| convert the register raw data to the motion threshold | |
| uint8_t | mpu6500_self_test (mpu6500_handle_t *handle, int32_t gyro_offset_raw[3], int32_t accel_offset_raw[3]) |
| run the self test | |
| uint8_t | mpu6500_set_iic_clock (mpu6500_handle_t *handle, mpu6500_iic_clock_t clk) |
| set the iic clock | |
| uint8_t | mpu6500_get_iic_clock (mpu6500_handle_t *handle, mpu6500_iic_clock_t *clk) |
| get the iic clock | |
| uint8_t | mpu6500_set_iic_multi_master (mpu6500_handle_t *handle, mpu6500_bool_t enable) |
| enable or disable iic multi master | |
| uint8_t | mpu6500_get_iic_multi_master (mpu6500_handle_t *handle, mpu6500_bool_t *enable) |
| get the iic multi master status | |
| uint8_t | mpu6500_set_iic_wait_for_external_sensor (mpu6500_handle_t *handle, mpu6500_bool_t enable) |
| enable or disable iic wait for external sensor | |
| uint8_t | mpu6500_get_iic_wait_for_external_sensor (mpu6500_handle_t *handle, mpu6500_bool_t *enable) |
| get the iic wait for external sensor status | |
| uint8_t | mpu6500_set_iic_read_mode (mpu6500_handle_t *handle, mpu6500_iic_read_mode_t mode) |
| set the iic read mode | |
| uint8_t | mpu6500_get_iic_read_mode (mpu6500_handle_t *handle, mpu6500_iic_read_mode_t *mode) |
| get the iic read mode | |
| uint8_t | mpu6500_set_iic_fifo_enable (mpu6500_handle_t *handle, mpu6500_iic_slave_t slave, mpu6500_bool_t enable) |
| enable or disable the iic fifo | |
| uint8_t | mpu6500_get_iic_fifo_enable (mpu6500_handle_t *handle, mpu6500_iic_slave_t slave, mpu6500_bool_t *enable) |
| get the iic fifo status | |
| uint8_t | mpu6500_set_iic_mode (mpu6500_handle_t *handle, mpu6500_iic_slave_t slave, mpu6500_iic_mode_t mode) |
| set the iic mode | |
| uint8_t | mpu6500_get_iic_mode (mpu6500_handle_t *handle, mpu6500_iic_slave_t slave, mpu6500_iic_mode_t *mode) |
| get the iic mode | |
| uint8_t | mpu6500_set_iic_address (mpu6500_handle_t *handle, mpu6500_iic_slave_t slave, uint8_t addr_7bit) |
| set the iic address | |
| uint8_t | mpu6500_get_iic_address (mpu6500_handle_t *handle, mpu6500_iic_slave_t slave, uint8_t *addr_7bit) |
| get the iic address | |
| uint8_t | mpu6500_set_iic_register (mpu6500_handle_t *handle, mpu6500_iic_slave_t slave, uint8_t reg) |
| set the iic register | |
| uint8_t | mpu6500_get_iic_register (mpu6500_handle_t *handle, mpu6500_iic_slave_t slave, uint8_t *reg) |
| get the iic register | |
| uint8_t | mpu6500_set_iic_data_out (mpu6500_handle_t *handle, mpu6500_iic_slave_t slave, uint8_t data) |
| set the iic data out | |
| uint8_t | mpu6500_get_iic_data_out (mpu6500_handle_t *handle, mpu6500_iic_slave_t slave, uint8_t *data) |
| get the iic data out | |
| uint8_t | mpu6500_set_iic_enable (mpu6500_handle_t *handle, mpu6500_iic_slave_t slave, mpu6500_bool_t enable) |
| enable or disable the iic | |
| uint8_t | mpu6500_get_iic_enable (mpu6500_handle_t *handle, mpu6500_iic_slave_t slave, mpu6500_bool_t *enable) |
| get the iic status | |
| uint8_t | mpu6500_set_iic_byte_swap (mpu6500_handle_t *handle, mpu6500_iic_slave_t slave, mpu6500_bool_t enable) |
| enable or disable the iic byte swap | |
| uint8_t | mpu6500_get_iic_byte_swap (mpu6500_handle_t *handle, mpu6500_iic_slave_t slave, mpu6500_bool_t *enable) |
| get the iic byte swap status | |
| uint8_t | mpu6500_set_iic_transaction_mode (mpu6500_handle_t *handle, mpu6500_iic_slave_t slave, mpu6500_iic_transaction_mode_t mode) |
| set the iic transaction mode | |
| uint8_t | mpu6500_get_iic_transaction_mode (mpu6500_handle_t *handle, mpu6500_iic_slave_t slave, mpu6500_iic_transaction_mode_t *mode) |
| get the iic transaction mode | |
| uint8_t | mpu6500_set_iic_group_order (mpu6500_handle_t *handle, mpu6500_iic_slave_t slave, mpu6500_iic_group_order_t order) |
| set the iic group order | |
| uint8_t | mpu6500_get_iic_group_order (mpu6500_handle_t *handle, mpu6500_iic_slave_t slave, mpu6500_iic_group_order_t *order) |
| get the iic group order | |
| uint8_t | mpu6500_set_iic_transferred_len (mpu6500_handle_t *handle, mpu6500_iic_slave_t slave, uint8_t len) |
| set the iic transferred length | |
| uint8_t | mpu6500_get_iic_transferred_len (mpu6500_handle_t *handle, mpu6500_iic_slave_t slave, uint8_t *len) |
| get the iic transferred length | |
| uint8_t | mpu6500_get_iic_status (mpu6500_handle_t *handle, uint8_t *status) |
| get the iic status | |
| uint8_t | mpu6500_set_iic_delay_enable (mpu6500_handle_t *handle, mpu6500_iic_delay_t delay, mpu6500_bool_t enable) |
| enable or disable the iic delay | |
| uint8_t | mpu6500_get_iic_delay_enable (mpu6500_handle_t *handle, mpu6500_iic_delay_t delay, mpu6500_bool_t *enable) |
| get the iic delay status | |
| uint8_t | mpu6500_set_iic4_enable (mpu6500_handle_t *handle, mpu6500_bool_t enable) |
| enable or disable the iic4 | |
| uint8_t | mpu6500_get_iic4_enable (mpu6500_handle_t *handle, mpu6500_bool_t *enable) |
| get the iic4 status | |
| uint8_t | mpu6500_set_iic4_interrupt (mpu6500_handle_t *handle, mpu6500_bool_t enable) |
| enable or disable the iic4 interrupt | |
| uint8_t | mpu6500_get_iic4_interrupt (mpu6500_handle_t *handle, mpu6500_bool_t *enable) |
| get the iic4 interrupt status | |
| uint8_t | mpu6500_set_iic4_transaction_mode (mpu6500_handle_t *handle, mpu6500_iic4_transaction_mode_t mode) |
| set the iic4 transaction mode | |
| uint8_t | mpu6500_get_iic4_transaction_mode (mpu6500_handle_t *handle, mpu6500_iic4_transaction_mode_t *mode) |
| get the iic4 transaction mode | |
| uint8_t | mpu6500_set_iic_delay (mpu6500_handle_t *handle, uint8_t delay) |
| set the iic delay | |
| uint8_t | mpu6500_get_iic_delay (mpu6500_handle_t *handle, uint8_t *delay) |
| get the iic delay | |
| uint8_t | mpu6500_set_iic4_data_out (mpu6500_handle_t *handle, uint8_t data) |
| set the iic4 data out | |
| uint8_t | mpu6500_get_iic4_data_out (mpu6500_handle_t *handle, uint8_t *data) |
| get the iic4 data out | |
| uint8_t | mpu6500_set_iic4_data_in (mpu6500_handle_t *handle, uint8_t data) |
| set the iic4 data in | |
| uint8_t | mpu6500_get_iic4_data_in (mpu6500_handle_t *handle, uint8_t *data) |
| get the iic4 data in | |
| uint8_t | mpu6500_read_extern_sensor_data (mpu6500_handle_t *handle, uint8_t *data, uint8_t len) |
| read the extern sensor data | |
mpu6500 basic driver modules
| typedef struct mpu6500_handle_s mpu6500_handle_t |
mpu6500 handle structure definition
| typedef struct mpu6500_info_s mpu6500_info_t |
mpu6500 information structure definition
mpu6500 accelerometer low pass filter enumeration definition
Definition at line 154 of file driver_mpu6500.h.
mpu6500 accelerometer range enumeration definition
| Enumerator | |
|---|---|
| MPU6500_ACCELEROMETER_RANGE_2G | ±2 g |
| MPU6500_ACCELEROMETER_RANGE_4G | ±4 g |
| MPU6500_ACCELEROMETER_RANGE_8G | ±8 g |
| MPU6500_ACCELEROMETER_RANGE_16G | ±16 g |
Definition at line 210 of file driver_mpu6500.h.
| enum mpu6500_address_t |
mpu6500 address enumeration definition
| Enumerator | |
|---|---|
| MPU6500_ADDRESS_AD0_LOW | AD0 pin set LOW |
| MPU6500_ADDRESS_AD0_HIGH | AD0 pin set HIGH |
Definition at line 71 of file driver_mpu6500.h.
| enum mpu6500_axis_t |
mpu6500 axis enumeration definition
| Enumerator | |
|---|---|
| MPU6500_AXIS_Z | z |
| MPU6500_AXIS_Y | y |
| MPU6500_AXIS_X | x |
Definition at line 189 of file driver_mpu6500.h.
| enum mpu6500_bool_t |
mpu6500 bool enumeration definition
| Enumerator | |
|---|---|
| MPU6500_BOOL_FALSE | disable function |
| MPU6500_BOOL_TRUE | enable function |
Definition at line 80 of file driver_mpu6500.h.
mpu6500 clock source enumeration definition
| Enumerator | |
|---|---|
| MPU6500_CLOCK_SOURCE_INTERNAL_20MHZ | internal 20MHz |
| MPU6500_CLOCK_SOURCE_PLL | pll reference |
| MPU6500_CLOCK_SOURCE_STOP_CLOCK | stop the clock |
Definition at line 102 of file driver_mpu6500.h.
mpu6500 extern sync enumeration definition
Definition at line 122 of file driver_mpu6500.h.
| enum mpu6500_fifo_mode |
mpu6500 fifo mode enumeration definition
Definition at line 233 of file driver_mpu6500.h.
| enum mpu6500_fifo_t |
mpu6500 fifo enumeration definition
| Enumerator | |
|---|---|
| MPU6500_FIFO_TEMP | temperature |
| MPU6500_FIFO_XG | gyroscope x |
| MPU6500_FIFO_YG | gyroscope y |
| MPU6500_FIFO_ZG | gyroscope z |
| MPU6500_FIFO_ACCEL | accelerometer |
Definition at line 221 of file driver_mpu6500.h.
mpu6500 gyroscope range enumeration definition
| Enumerator | |
|---|---|
| MPU6500_GYROSCOPE_RANGE_250DPS | ±250 dps |
| MPU6500_GYROSCOPE_RANGE_500DPS | ±500 dps |
| MPU6500_GYROSCOPE_RANGE_1000DPS | ±1000 dps |
| MPU6500_GYROSCOPE_RANGE_2000DPS | ±2000 dps |
Definition at line 199 of file driver_mpu6500.h.
mpu6500 iic4 transaction mode enumeration definition
| Enumerator | |
|---|---|
| MPU6500_IIC4_TRANSACTION_MODE_DATA | data only |
| MPU6500_IIC4_TRANSACTION_MODE_REG | register only |
Definition at line 335 of file driver_mpu6500.h.
| enum mpu6500_iic_clock_t |
mpu6500 iic clock enumeration definition
Definition at line 285 of file driver_mpu6500.h.
| enum mpu6500_iic_delay_t |
mpu6500 iic delay enumeration definition
Definition at line 370 of file driver_mpu6500.h.
mpu6500 iic group order enumeration definition
Definition at line 344 of file driver_mpu6500.h.
| enum mpu6500_iic_mode_t |
mpu6500 iic mode enumeration definition
| Enumerator | |
|---|---|
| MPU6500_IIC_MODE_WRITE | write |
| MPU6500_IIC_MODE_READ | read |
Definition at line 317 of file driver_mpu6500.h.
mpu6500 iic read mode enumeration definition
| Enumerator | |
|---|---|
| MPU6500_IIC_READ_MODE_RESTART | restart |
| MPU6500_IIC_READ_MODE_STOP_AND_START | stop and start |
Definition at line 308 of file driver_mpu6500.h.
| enum mpu6500_iic_slave_t |
mpu6500 iic slave enumeration definition
| Enumerator | |
|---|---|
| MPU6500_IIC_SLAVE_0 | slave0 |
| MPU6500_IIC_SLAVE_1 | slave1 |
| MPU6500_IIC_SLAVE_2 | slave2 |
| MPU6500_IIC_SLAVE_3 | slave3 |
| MPU6500_IIC_SLAVE_4 | slave4 |
Definition at line 273 of file driver_mpu6500.h.
| enum mpu6500_iic_status_t |
mpu6500 iic status enumeration definition
Definition at line 355 of file driver_mpu6500.h.
mpu6500 iic transaction mode enumeration definition
| Enumerator | |
|---|---|
| MPU6500_IIC_TRANSACTION_MODE_DATA | data only |
| MPU6500_IIC_TRANSACTION_MODE_REG_DATA | write a register address prior to reading or writing data |
Definition at line 326 of file driver_mpu6500.h.
| enum mpu6500_interface_t |
mpu6500 interface enumeration definition
| Enumerator | |
|---|---|
| MPU6500_INTERFACE_IIC | iic interface function |
| MPU6500_INTERFACE_SPI | spi interface function |
Definition at line 62 of file driver_mpu6500.h.
| enum mpu6500_interrupt_t |
mpu6500 interrupt enumeration definition
| Enumerator | |
|---|---|
| MPU6500_INTERRUPT_MOTION | motion |
| MPU6500_INTERRUPT_FIFO_OVERFLOW | fifo overflow |
| MPU6500_INTERRUPT_FSYNC_INT | fsync int |
| MPU6500_INTERRUPT_DMP | dmp |
| MPU6500_INTERRUPT_DATA_READY | data ready |
Definition at line 261 of file driver_mpu6500.h.
mpu6500 low pass filter enumeration definition
Definition at line 137 of file driver_mpu6500.h.
mpu6500 low power accel output rate enumeration definition
Definition at line 170 of file driver_mpu6500.h.
| enum mpu6500_pin_level_t |
mpu6500 pin level enumeration definition
| Enumerator | |
|---|---|
| MPU6500_PIN_LEVEL_HIGH | active low |
| MPU6500_PIN_LEVEL_LOW | active high |
Definition at line 243 of file driver_mpu6500.h.
| enum mpu6500_pin_type_t |
mpu6500 pin type enumeration definition
| Enumerator | |
|---|---|
| MPU6500_PIN_TYPE_PUSH_PULL | push pull |
| MPU6500_PIN_TYPE_OPEN_DRAIN | open drain |
Definition at line 252 of file driver_mpu6500.h.
mpu6500 signal path reset enumeration definition
Definition at line 112 of file driver_mpu6500.h.
| enum mpu6500_source_t |
mpu6500 source enumeration definition
Definition at line 89 of file driver_mpu6500.h.
| uint8_t mpu6500_accelerometer_offset_convert_to_data | ( | mpu6500_handle_t * | handle, |
| int16_t | reg, | ||
| float * | mg ) |
convert the register raw data to the accelerometer offset
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | reg | register raw data |
| [out] | *mg | pointer to an accelerometer offset buffer |
Definition at line 8393 of file driver_mpu6500.c.
| uint8_t mpu6500_accelerometer_offset_convert_to_register | ( | mpu6500_handle_t * | handle, |
| float | mg, | ||
| int16_t * | reg ) |
convert the accelerometer offset to the register raw data
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | mg | accelerometer offset |
| [out] | *reg | pointer to a register raw buffer |
Definition at line 8366 of file driver_mpu6500.c.
| uint8_t mpu6500_deinit | ( | mpu6500_handle_t * | handle | ) |
close the chip
| [in] | *handle | pointer to an mpu6500 handle structure |
Definition at line 4084 of file driver_mpu6500.c.
| uint8_t mpu6500_device_reset | ( | mpu6500_handle_t * | handle | ) |
reset the chip
| [in] | *handle | pointer to an mpu6500 handle structure |
Definition at line 5015 of file driver_mpu6500.c.
| uint8_t mpu6500_fifo_get | ( | mpu6500_handle_t * | handle, |
| uint8_t * | buf, | ||
| uint16_t | len ) |
fifo read bytes
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *buf | pointer to a data buffer |
| [in] | len | buffer length |
Definition at line 5629 of file driver_mpu6500.c.
| uint8_t mpu6500_fifo_reset | ( | mpu6500_handle_t * | handle | ) |
reset the fifo
| [in] | *handle | pointer to an mpu6500 handle structure |
Definition at line 4772 of file driver_mpu6500.c.
| uint8_t mpu6500_fifo_set | ( | mpu6500_handle_t * | handle, |
| uint8_t * | buf, | ||
| uint16_t | len ) |
fifo write bytes
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | *buf | pointer to a data buffer |
| [in] | len | buffer length |
Definition at line 5665 of file driver_mpu6500.c.
| uint8_t mpu6500_force_fifo_reset | ( | mpu6500_handle_t * | handle | ) |
force reset the fifo
| [in] | *handle | pointer to an mpu6500 handle structure |
Definition at line 4574 of file driver_mpu6500.c.
| uint8_t mpu6500_get_accel_compare_with_previous_sample | ( | mpu6500_handle_t * | handle, |
| mpu6500_bool_t * | enable ) |
get the accel compare with previous sample status
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 6907 of file driver_mpu6500.c.
| uint8_t mpu6500_get_accelerometer_choice | ( | mpu6500_handle_t * | handle, |
| uint8_t * | choice ) |
get the accelerometer choice
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *choice | pointer to an accelerometer choice buffer |
Definition at line 6579 of file driver_mpu6500.c.
| uint8_t mpu6500_get_accelerometer_low_pass_filter | ( | mpu6500_handle_t * | handle, |
| mpu6500_accelerometer_low_pass_filter_t * | filter ) |
get the accelerometer low pass filter
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *filter | pointer to an accelerometer low pass filter buffer |
Definition at line 6661 of file driver_mpu6500.c.
| uint8_t mpu6500_get_accelerometer_range | ( | mpu6500_handle_t * | handle, |
| mpu6500_accelerometer_range_t * | range ) |
get the accelerometer range
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *range | pointer to an accelerometer range buffer |
Definition at line 6445 of file driver_mpu6500.c.
| uint8_t mpu6500_get_accelerometer_test | ( | mpu6500_handle_t * | handle, |
| mpu6500_axis_t | axis, | ||
| mpu6500_bool_t * | enable ) |
get the accelerometer test
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | axis | tested axis |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 6363 of file driver_mpu6500.c.
| uint8_t mpu6500_get_accelerometer_x_offset | ( | mpu6500_handle_t * | handle, |
| int16_t * | offset ) |
get the accelerometer x offset
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *offset | pointer to an accelerometer x offset buffer |
Definition at line 8179 of file driver_mpu6500.c.
| uint8_t mpu6500_get_accelerometer_x_test | ( | mpu6500_handle_t * | handle, |
| uint8_t * | data ) |
get the accelerometer x test
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *data | pointer to a set data buffer |
Definition at line 7966 of file driver_mpu6500.c.
| uint8_t mpu6500_get_accelerometer_y_offset | ( | mpu6500_handle_t * | handle, |
| int16_t * | offset ) |
get the accelerometer y offset
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *offset | pointer to an accelerometer y offset buffer |
Definition at line 8254 of file driver_mpu6500.c.
| uint8_t mpu6500_get_accelerometer_y_test | ( | mpu6500_handle_t * | handle, |
| uint8_t * | data ) |
get the accelerometer y test
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *data | pointer to a set data buffer |
Definition at line 8036 of file driver_mpu6500.c.
| uint8_t mpu6500_get_accelerometer_z_offset | ( | mpu6500_handle_t * | handle, |
| int16_t * | offset ) |
get the accelerometer z offset
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *offset | pointer to an accelerometer z offset buffer |
Definition at line 8329 of file driver_mpu6500.c.
| uint8_t mpu6500_get_accelerometer_z_test | ( | mpu6500_handle_t * | handle, |
| uint8_t * | data ) |
get the accelerometer z test
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *data | pointer to a set data buffer |
Definition at line 8106 of file driver_mpu6500.c.
| uint8_t mpu6500_get_addr_pin | ( | mpu6500_handle_t * | handle, |
| mpu6500_address_t * | addr_pin ) |
get the chip address pin
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *addr_pin | pointer to a chip address pin buffer |
Definition at line 3901 of file driver_mpu6500.c.
| uint8_t mpu6500_get_clock_source | ( | mpu6500_handle_t * | handle, |
| mpu6500_clock_source_t * | clock_source ) |
get the chip clock source
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *clock_source | pointer to a clock source buffer |
Definition at line 5142 of file driver_mpu6500.c.
| uint8_t mpu6500_get_cycle_wake_up | ( | mpu6500_handle_t * | handle, |
| mpu6500_bool_t * | enable ) |
get the cycle wake up mode status
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 5306 of file driver_mpu6500.c.
| uint8_t mpu6500_get_device_reset | ( | mpu6500_handle_t * | handle, |
| mpu6500_bool_t * | enable ) |
get the device reset status
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 5060 of file driver_mpu6500.c.
| uint8_t mpu6500_get_disable_iic_slave | ( | mpu6500_handle_t * | handle, |
| mpu6500_bool_t * | enable ) |
get the iic slave status
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 4736 of file driver_mpu6500.c.
| uint8_t mpu6500_get_extern_sync | ( | mpu6500_handle_t * | handle, |
| mpu6500_extern_sync_t * | sync ) |
get the extern sync type
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *sync | pointer to an extern sync type buffer |
Definition at line 5860 of file driver_mpu6500.c.
| uint8_t mpu6500_get_fifo | ( | mpu6500_handle_t * | handle, |
| mpu6500_bool_t * | enable ) |
get the fifo status
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 4538 of file driver_mpu6500.c.
| uint8_t mpu6500_get_fifo_count | ( | mpu6500_handle_t * | handle, |
| uint16_t * | count ) |
get the fifo counter value
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *count | pointer to a fifo count buffer |
Definition at line 5591 of file driver_mpu6500.c.
| uint8_t mpu6500_get_fifo_enable | ( | mpu6500_handle_t * | handle, |
| mpu6500_fifo_t | fifo, | ||
| mpu6500_bool_t * | enable ) |
get the fifo function status
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | fifo | fifo type |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 6991 of file driver_mpu6500.c.
| uint8_t mpu6500_get_fifo_mode | ( | mpu6500_handle_t * | handle, |
| mpu6500_fifo_mode * | mode ) |
get the fifo mode
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *mode | pointer to a fifo mode buffer |
Definition at line 6024 of file driver_mpu6500.c.
| uint8_t mpu6500_get_fifo_reset | ( | mpu6500_handle_t * | handle, |
| mpu6500_bool_t * | enable ) |
get the fifo reset status
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 4817 of file driver_mpu6500.c.
| uint8_t mpu6500_get_fsync_interrupt | ( | mpu6500_handle_t * | handle, |
| mpu6500_bool_t * | enable ) |
get the fsync interrupt status
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 7483 of file driver_mpu6500.c.
| uint8_t mpu6500_get_fsync_interrupt_level | ( | mpu6500_handle_t * | handle, |
| mpu6500_pin_level_t * | level ) |
get the fsync interrupt level
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *level | pointer to a set level buffer |
Definition at line 7401 of file driver_mpu6500.c.
| uint8_t mpu6500_get_gyro_standby | ( | mpu6500_handle_t * | handle, |
| mpu6500_bool_t * | enable ) |
get the gyro standby status
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 5470 of file driver_mpu6500.c.
| uint8_t mpu6500_get_gyro_x_offset | ( | mpu6500_handle_t * | handle, |
| int16_t * | offset ) |
get the gyro x offset
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *offset | pointer to a gyro x offset buffer |
Definition at line 8458 of file driver_mpu6500.c.
| uint8_t mpu6500_get_gyro_y_offset | ( | mpu6500_handle_t * | handle, |
| int16_t * | offset ) |
get the gyro y offset
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *offset | pointer to a gyro y offset buffer |
Definition at line 8533 of file driver_mpu6500.c.
| uint8_t mpu6500_get_gyro_z_offset | ( | mpu6500_handle_t * | handle, |
| int16_t * | offset ) |
get the gyro z offset
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *offset | pointer to a gyro z offset buffer |
Definition at line 8608 of file driver_mpu6500.c.
| uint8_t mpu6500_get_gyroscope_choice | ( | mpu6500_handle_t * | handle, |
| uint8_t * | choice ) |
get the gyroscope choice
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *choice | pointer to a gyroscope choice buffer |
Definition at line 6279 of file driver_mpu6500.c.
| uint8_t mpu6500_get_gyroscope_range | ( | mpu6500_handle_t * | handle, |
| mpu6500_gyroscope_range_t * | range ) |
get the gyroscope range
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *range | pointer to a gyroscope range buffer |
Definition at line 6190 of file driver_mpu6500.c.
| uint8_t mpu6500_get_gyroscope_test | ( | mpu6500_handle_t * | handle, |
| mpu6500_axis_t | axis, | ||
| mpu6500_bool_t * | enable ) |
get the gyroscope test
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | axis | tested axis |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 6108 of file driver_mpu6500.c.
| uint8_t mpu6500_get_gyroscope_x_test | ( | mpu6500_handle_t * | handle, |
| uint8_t * | data ) |
get the gyroscope x test
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *data | pointer to a set data buffer |
Definition at line 7756 of file driver_mpu6500.c.
| uint8_t mpu6500_get_gyroscope_y_test | ( | mpu6500_handle_t * | handle, |
| uint8_t * | data ) |
get the gyroscope y test
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *data | pointer to a set data buffer |
Definition at line 7826 of file driver_mpu6500.c.
| uint8_t mpu6500_get_gyroscope_z_test | ( | mpu6500_handle_t * | handle, |
| uint8_t * | data ) |
get the gyroscope z test
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *data | pointer to a set data buffer |
Definition at line 7896 of file driver_mpu6500.c.
| uint8_t mpu6500_get_iic4_data_in | ( | mpu6500_handle_t * | handle, |
| uint8_t * | data ) |
get the iic4 data in
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *data | pointer to a set data buffer |
Definition at line 11684 of file driver_mpu6500.c.
| uint8_t mpu6500_get_iic4_data_out | ( | mpu6500_handle_t * | handle, |
| uint8_t * | data ) |
get the iic4 data out
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *data | pointer to a set data buffer |
Definition at line 11614 of file driver_mpu6500.c.
| uint8_t mpu6500_get_iic4_enable | ( | mpu6500_handle_t * | handle, |
| mpu6500_bool_t * | enable ) |
get the iic4 status
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 11289 of file driver_mpu6500.c.
| uint8_t mpu6500_get_iic4_interrupt | ( | mpu6500_handle_t * | handle, |
| mpu6500_bool_t * | enable ) |
get the iic4 interrupt status
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 11371 of file driver_mpu6500.c.
| uint8_t mpu6500_get_iic4_transaction_mode | ( | mpu6500_handle_t * | handle, |
| mpu6500_iic4_transaction_mode_t * | mode ) |
get the iic4 transaction mode
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *mode | pointer to a transaction mode buffer |
Definition at line 11453 of file driver_mpu6500.c.
| uint8_t mpu6500_get_iic_address | ( | mpu6500_handle_t * | handle, |
| mpu6500_iic_slave_t | slave, | ||
| uint8_t * | addr_7bit ) |
get the iic address
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | slave | iic slave number |
| [out] | *addr_7bit | pointer to an iic address buffer |
Definition at line 9734 of file driver_mpu6500.c.
| uint8_t mpu6500_get_iic_bypass | ( | mpu6500_handle_t * | handle, |
| mpu6500_bool_t * | enable ) |
get the iic bypass status
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 7565 of file driver_mpu6500.c.
| uint8_t mpu6500_get_iic_byte_swap | ( | mpu6500_handle_t * | handle, |
| mpu6500_iic_slave_t | slave, | ||
| mpu6500_bool_t * | enable ) |
get the iic byte swap status
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | slave | iic slave number |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 10457 of file driver_mpu6500.c.
| uint8_t mpu6500_get_iic_clock | ( | mpu6500_handle_t * | handle, |
| mpu6500_iic_clock_t * | clk ) |
get the iic clock
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *clk | pointer to an iic clock buffer |
Definition at line 8953 of file driver_mpu6500.c.
| uint8_t mpu6500_get_iic_data_out | ( | mpu6500_handle_t * | handle, |
| mpu6500_iic_slave_t | slave, | ||
| uint8_t * | data ) |
get the iic data out
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | slave | iic slave number |
| [out] | *data | pointer to a set data buffer |
Definition at line 10074 of file driver_mpu6500.c.
| uint8_t mpu6500_get_iic_delay | ( | mpu6500_handle_t * | handle, |
| uint8_t * | delay ) |
get the iic delay
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *delay | pointer to an iic delay buffer |
Definition at line 11542 of file driver_mpu6500.c.
| uint8_t mpu6500_get_iic_delay_enable | ( | mpu6500_handle_t * | handle, |
| mpu6500_iic_delay_t | delay, | ||
| mpu6500_bool_t * | enable ) |
get the iic delay status
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | delay | iic delay |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 11207 of file driver_mpu6500.c.
| uint8_t mpu6500_get_iic_enable | ( | mpu6500_handle_t * | handle, |
| mpu6500_iic_slave_t | slave, | ||
| mpu6500_bool_t * | enable ) |
get the iic status
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | slave | iic slave number |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 10263 of file driver_mpu6500.c.
| uint8_t mpu6500_get_iic_fifo_enable | ( | mpu6500_handle_t * | handle, |
| mpu6500_iic_slave_t | slave, | ||
| mpu6500_bool_t * | enable ) |
get the iic fifo status
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | slave | iic slave number |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 9316 of file driver_mpu6500.c.
| uint8_t mpu6500_get_iic_group_order | ( | mpu6500_handle_t * | handle, |
| mpu6500_iic_slave_t | slave, | ||
| mpu6500_iic_group_order_t * | order ) |
get the iic group order
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | slave | iic slave number |
| [out] | *order | pointer to a group order buffer |
Definition at line 10845 of file driver_mpu6500.c.
| uint8_t mpu6500_get_iic_master | ( | mpu6500_handle_t * | handle, |
| mpu6500_bool_t * | enable ) |
get the iic master status
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 4654 of file driver_mpu6500.c.
| uint8_t mpu6500_get_iic_master_reset | ( | mpu6500_handle_t * | handle, |
| mpu6500_bool_t * | enable ) |
get the iic master reset status
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 4898 of file driver_mpu6500.c.
| uint8_t mpu6500_get_iic_mode | ( | mpu6500_handle_t * | handle, |
| mpu6500_iic_slave_t | slave, | ||
| mpu6500_iic_mode_t * | mode ) |
get the iic mode
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | slave | iic slave number |
| [out] | *mode | pointer to an iic mode buffer |
Definition at line 9510 of file driver_mpu6500.c.
| uint8_t mpu6500_get_iic_multi_master | ( | mpu6500_handle_t * | handle, |
| mpu6500_bool_t * | enable ) |
get the iic multi master status
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 9035 of file driver_mpu6500.c.
| uint8_t mpu6500_get_iic_read_mode | ( | mpu6500_handle_t * | handle, |
| mpu6500_iic_read_mode_t * | mode ) |
get the iic read mode
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *mode | pointer to a read mode buffer |
Definition at line 9199 of file driver_mpu6500.c.
| uint8_t mpu6500_get_iic_register | ( | mpu6500_handle_t * | handle, |
| mpu6500_iic_slave_t | slave, | ||
| uint8_t * | reg ) |
get the iic register
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | slave | iic slave number |
| [out] | *reg | pointer to an iic register buffer |
Definition at line 9912 of file driver_mpu6500.c.
| uint8_t mpu6500_get_iic_status | ( | mpu6500_handle_t * | handle, |
| uint8_t * | status ) |
get the iic status
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *status | pointer to a status buffer |
Definition at line 11125 of file driver_mpu6500.c.
| uint8_t mpu6500_get_iic_transaction_mode | ( | mpu6500_handle_t * | handle, |
| mpu6500_iic_slave_t | slave, | ||
| mpu6500_iic_transaction_mode_t * | mode ) |
get the iic transaction mode
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | slave | iic slave number |
| [out] | *mode | pointer to an iic transaction mode buffer |
Definition at line 10651 of file driver_mpu6500.c.
| uint8_t mpu6500_get_iic_transferred_len | ( | mpu6500_handle_t * | handle, |
| mpu6500_iic_slave_t | slave, | ||
| uint8_t * | len ) |
get the iic transferred length
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | slave | iic slave number |
| [out] | *len | pointer to an iic transferred length buffer |
Definition at line 11046 of file driver_mpu6500.c.
| uint8_t mpu6500_get_iic_wait_for_external_sensor | ( | mpu6500_handle_t * | handle, |
| mpu6500_bool_t * | enable ) |
get the iic wait for external sensor status
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 9117 of file driver_mpu6500.c.
| uint8_t mpu6500_get_interface | ( | mpu6500_handle_t * | handle, |
| mpu6500_interface_t * | interface ) |
get the chip interface
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *interface | pointer to a chip interface buffer |
Definition at line 3859 of file driver_mpu6500.c.
| uint8_t mpu6500_get_interrupt | ( | mpu6500_handle_t * | handle, |
| mpu6500_interrupt_t | type, | ||
| mpu6500_bool_t * | enable ) |
get the interrupt status
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | type | set interrupt type |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 7649 of file driver_mpu6500.c.
| uint8_t mpu6500_get_interrupt_latch | ( | mpu6500_handle_t * | handle, |
| mpu6500_bool_t * | enable ) |
get the interrupt latch status
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 7237 of file driver_mpu6500.c.
| uint8_t mpu6500_get_interrupt_level | ( | mpu6500_handle_t * | handle, |
| mpu6500_pin_level_t * | level ) |
get the interrupt level
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *level | pointer to an interrupt level buffer |
Definition at line 7073 of file driver_mpu6500.c.
| uint8_t mpu6500_get_interrupt_pin_type | ( | mpu6500_handle_t * | handle, |
| mpu6500_pin_type_t * | type ) |
get the interrupt pin type
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *type | pointer to a pin type buffer |
Definition at line 7155 of file driver_mpu6500.c.
| uint8_t mpu6500_get_interrupt_read_clear | ( | mpu6500_handle_t * | handle, |
| mpu6500_bool_t * | enable ) |
get the interrupt reading clear status
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 7319 of file driver_mpu6500.c.
| uint8_t mpu6500_get_interrupt_status | ( | mpu6500_handle_t * | handle, |
| uint8_t * | status ) |
get the interrupt status
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *status | pointer to a status buffer |
Definition at line 7686 of file driver_mpu6500.c.
| uint8_t mpu6500_get_low_pass_filter | ( | mpu6500_handle_t * | handle, |
| mpu6500_low_pass_filter_t * | filter ) |
get the low pass filter
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *filter | pointer to a low pass filter buffer |
Definition at line 5942 of file driver_mpu6500.c.
| uint8_t mpu6500_get_low_power_accel_output_rate | ( | mpu6500_handle_t * | handle, |
| mpu6500_low_power_accel_output_rate_t * | rate ) |
get the low power accel output rate
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *rate | pointer to a low power accel output rate buffer |
Definition at line 6743 of file driver_mpu6500.c.
| uint8_t mpu6500_get_motion_threshold | ( | mpu6500_handle_t * | handle, |
| uint8_t * | threshold ) |
get the motion_threshold
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *threshold | pointer to a threshold buffer |
Definition at line 8734 of file driver_mpu6500.c.
| uint8_t mpu6500_get_ptat | ( | mpu6500_handle_t * | handle, |
| mpu6500_bool_t * | enable ) |
get the temperature sensor status
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 5224 of file driver_mpu6500.c.
| uint8_t mpu6500_get_sample_rate_divider | ( | mpu6500_handle_t * | handle, |
| uint8_t * | d ) |
get the sample rate divider
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *d | pointer to a sample rate divider buffer |
Definition at line 5780 of file driver_mpu6500.c.
| uint8_t mpu6500_get_sensor_reset | ( | mpu6500_handle_t * | handle, |
| mpu6500_bool_t * | enable ) |
get the sensor reset status
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 4979 of file driver_mpu6500.c.
| uint8_t mpu6500_get_sleep | ( | mpu6500_handle_t * | handle, |
| mpu6500_bool_t * | enable ) |
get the sleep status
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 5388 of file driver_mpu6500.c.
| uint8_t mpu6500_get_standby_mode | ( | mpu6500_handle_t * | handle, |
| mpu6500_source_t | source, | ||
| mpu6500_bool_t * | enable ) |
get the source mode
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | source | input source |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 5554 of file driver_mpu6500.c.
| uint8_t mpu6500_get_wake_on_motion | ( | mpu6500_handle_t * | handle, |
| mpu6500_bool_t * | enable ) |
get the wake on motion status
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 6825 of file driver_mpu6500.c.
| uint8_t mpu6500_gyro_offset_convert_to_data | ( | mpu6500_handle_t * | handle, |
| int16_t | reg, | ||
| float * | dps ) |
convert the register raw data to the gyro offset
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | reg | register raw data |
| [out] | *dps | pointer to a gyro offset buffer |
Definition at line 8672 of file driver_mpu6500.c.
| uint8_t mpu6500_gyro_offset_convert_to_register | ( | mpu6500_handle_t * | handle, |
| float | dps, | ||
| int16_t * | reg ) |
convert the gyro offset to the register raw data
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | dps | gyro offset |
| [out] | *reg | pointer to a register raw buffer |
Definition at line 8645 of file driver_mpu6500.c.
| uint8_t mpu6500_iic_master_reset | ( | mpu6500_handle_t * | handle | ) |
reset the iic master controller
| [in] | *handle | pointer to an mpu6500 handle structure |
Definition at line 4853 of file driver_mpu6500.c.
| uint8_t mpu6500_info | ( | mpu6500_info_t * | info | ) |
get the chip's information
| [out] | *info | pointer to an mpu6500 info structure |
Definition at line 11813 of file driver_mpu6500.c.
| uint8_t mpu6500_init | ( | mpu6500_handle_t * | handle | ) |
initialize the chip
| [in] | *handle | pointer to an mpu6500 handle structure |
Definition at line 3925 of file driver_mpu6500.c.
| uint8_t mpu6500_irq_handler | ( | mpu6500_handle_t * | handle | ) |
irq handler
| [in] | *handle | pointer to an mpu6500 handle structure |
Definition at line 4421 of file driver_mpu6500.c.
| uint8_t mpu6500_motion_threshold_convert_to_data | ( | mpu6500_handle_t * | handle, |
| uint8_t | reg, | ||
| float * | mg ) |
convert the register raw data to the motion threshold
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | reg | register raw data |
| [out] | *mg | pointer to a motion threshold buffer |
Definition at line 8796 of file driver_mpu6500.c.
| uint8_t mpu6500_motion_threshold_convert_to_register | ( | mpu6500_handle_t * | handle, |
| float | mg, | ||
| uint8_t * | reg ) |
convert the motion threshold to the register raw data
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | mg | motion threshold |
| [out] | *reg | pointer to a register raw buffer |
Definition at line 8769 of file driver_mpu6500.c.
| uint8_t mpu6500_read | ( | mpu6500_handle_t * | handle, |
| int16_t(*) | accel_raw[3], | ||
| float(*) | accel_g[3], | ||
| int16_t(*) | gyro_raw[3], | ||
| float(*) | gyro_dps[3], | ||
| uint16_t * | len ) |
read the data
| [in] | *handle | pointer to an mpu6500 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 |
| [in,out] | *len | pointer to a length buffer |
Definition at line 4137 of file driver_mpu6500.c.
| uint8_t mpu6500_read_extern_sensor_data | ( | mpu6500_handle_t * | handle, |
| uint8_t * | data, | ||
| uint8_t | len ) |
read the extern sensor data
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *data | pointer to a data buffer |
| [in] | len | data length |
Definition at line 11721 of file driver_mpu6500.c.
| uint8_t mpu6500_read_temperature | ( | mpu6500_handle_t * | handle, |
| int16_t * | raw, | ||
| float * | degrees ) |
read the temperature
| [in] | *handle | pointer to an mpu6500 handle structure |
| [out] | *raw | pointer to raw data buffer |
| [out] | *degrees | pointer to a converted degrees data buffer |
Definition at line 4384 of file driver_mpu6500.c.
| uint8_t mpu6500_self_test | ( | mpu6500_handle_t * | handle, |
| int32_t | gyro_offset_raw[3], | ||
| int32_t | accel_offset_raw[3] ) |
run the self test
| [in] | *handle | pointer to an mpu6500 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 8824 of file driver_mpu6500.c.
| uint8_t mpu6500_sensor_reset | ( | mpu6500_handle_t * | handle | ) |
reset all sensors
| [in] | *handle | pointer to an mpu6500 handle structure |
Definition at line 4934 of file driver_mpu6500.c.
| uint8_t mpu6500_set_accel_compare_with_previous_sample | ( | mpu6500_handle_t * | handle, |
| mpu6500_bool_t | enable ) |
enable or disable accel compare with previous sample
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | enable | bool value |
Definition at line 6862 of file driver_mpu6500.c.
| uint8_t mpu6500_set_accelerometer_choice | ( | mpu6500_handle_t * | handle, |
| uint8_t | choice ) |
set the accelerometer choice
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | choice | accelerometer choice |
Definition at line 6527 of file driver_mpu6500.c.
| uint8_t mpu6500_set_accelerometer_low_pass_filter | ( | mpu6500_handle_t * | handle, |
| mpu6500_accelerometer_low_pass_filter_t | filter ) |
set the accelerometer low pass filter
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | filter | accelerometer low pass filter |
Definition at line 6616 of file driver_mpu6500.c.
| uint8_t mpu6500_set_accelerometer_range | ( | mpu6500_handle_t * | handle, |
| mpu6500_accelerometer_range_t | range ) |
set the accelerometer range
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | range | accelerometer range |
Definition at line 6400 of file driver_mpu6500.c.
| uint8_t mpu6500_set_accelerometer_test | ( | mpu6500_handle_t * | handle, |
| mpu6500_axis_t | axis, | ||
| mpu6500_bool_t | enable ) |
set the accelerometer test
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | axis | tested axis |
| [in] | enable | bool value |
Definition at line 6317 of file driver_mpu6500.c.
| uint8_t mpu6500_set_accelerometer_x_offset | ( | mpu6500_handle_t * | handle, |
| int16_t | offset ) |
set the accelerometer x offset
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | offset | accelerometer x offset |
Definition at line 8141 of file driver_mpu6500.c.
| uint8_t mpu6500_set_accelerometer_x_test | ( | mpu6500_handle_t * | handle, |
| uint8_t | data ) |
set the accelerometer x test
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | data | set data |
Definition at line 7931 of file driver_mpu6500.c.
| uint8_t mpu6500_set_accelerometer_y_offset | ( | mpu6500_handle_t * | handle, |
| int16_t | offset ) |
set the accelerometer y offset
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | offset | accelerometer y offset |
Definition at line 8216 of file driver_mpu6500.c.
| uint8_t mpu6500_set_accelerometer_y_test | ( | mpu6500_handle_t * | handle, |
| uint8_t | data ) |
set the accelerometer y test
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | data | set data |
Definition at line 8001 of file driver_mpu6500.c.
| uint8_t mpu6500_set_accelerometer_z_offset | ( | mpu6500_handle_t * | handle, |
| int16_t | offset ) |
set the accelerometer z offset
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | offset | accelerometer z offset |
Definition at line 8291 of file driver_mpu6500.c.
| uint8_t mpu6500_set_accelerometer_z_test | ( | mpu6500_handle_t * | handle, |
| uint8_t | data ) |
set the accelerometer z test
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | data | set data |
Definition at line 8071 of file driver_mpu6500.c.
| uint8_t mpu6500_set_addr_pin | ( | mpu6500_handle_t * | handle, |
| mpu6500_address_t | addr_pin ) |
set the chip address pin
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | addr_pin | chip address pin |
Definition at line 3880 of file driver_mpu6500.c.
| uint8_t mpu6500_set_clock_source | ( | mpu6500_handle_t * | handle, |
| mpu6500_clock_source_t | clock_source ) |
set the chip clock source
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | clock_source | chip main clock source |
Definition at line 5097 of file driver_mpu6500.c.
| uint8_t mpu6500_set_cycle_wake_up | ( | mpu6500_handle_t * | handle, |
| mpu6500_bool_t | enable ) |
enable or disable the cycle wake up mode
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | enable | bool value |
Definition at line 5261 of file driver_mpu6500.c.
| uint8_t mpu6500_set_disable_iic_slave | ( | mpu6500_handle_t * | handle, |
| mpu6500_bool_t | enable ) |
enable or disable the iic slave mode
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | enable | bool value |
Definition at line 4691 of file driver_mpu6500.c.
| uint8_t mpu6500_set_extern_sync | ( | mpu6500_handle_t * | handle, |
| mpu6500_extern_sync_t | sync ) |
set the extern sync type
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | sync | extern sync type |
Definition at line 5815 of file driver_mpu6500.c.
| uint8_t mpu6500_set_fifo | ( | mpu6500_handle_t * | handle, |
| mpu6500_bool_t | enable ) |
enable or disable fifo
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | enable | bool value |
Definition at line 4493 of file driver_mpu6500.c.
| uint8_t mpu6500_set_fifo_1024kb | ( | mpu6500_handle_t * | handle | ) |
set fifo 1024kb
| [in] | *handle | pointer to an mpu6500 handle structure |
Definition at line 6481 of file driver_mpu6500.c.
| uint8_t mpu6500_set_fifo_enable | ( | mpu6500_handle_t * | handle, |
| mpu6500_fifo_t | fifo, | ||
| mpu6500_bool_t | enable ) |
enable or disable the fifo function
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | fifo | fifo type |
| [in] | enable | bool value |
Definition at line 6945 of file driver_mpu6500.c.
| uint8_t mpu6500_set_fifo_mode | ( | mpu6500_handle_t * | handle, |
| mpu6500_fifo_mode | mode ) |
set the fifo mode
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | mode | fifo mode |
Definition at line 5979 of file driver_mpu6500.c.
| uint8_t mpu6500_set_fsync_interrupt | ( | mpu6500_handle_t * | handle, |
| mpu6500_bool_t | enable ) |
enable or disable the fsync interrupt
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | enable | bool value |
Definition at line 7438 of file driver_mpu6500.c.
| uint8_t mpu6500_set_fsync_interrupt_level | ( | mpu6500_handle_t * | handle, |
| mpu6500_pin_level_t | level ) |
set the fsync interrupt level
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | level | set level |
Definition at line 7356 of file driver_mpu6500.c.
| uint8_t mpu6500_set_gyro_standby | ( | mpu6500_handle_t * | handle, |
| mpu6500_bool_t | enable ) |
enable or disable the gyro standby
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | enable | bool value |
Definition at line 5425 of file driver_mpu6500.c.
| uint8_t mpu6500_set_gyro_x_offset | ( | mpu6500_handle_t * | handle, |
| int16_t | offset ) |
set the gyro x offset
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | offset | gyro x offset |
Definition at line 8420 of file driver_mpu6500.c.
| uint8_t mpu6500_set_gyro_y_offset | ( | mpu6500_handle_t * | handle, |
| int16_t | offset ) |
set the gyro y offset
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | offset | gyro y offset |
Definition at line 8495 of file driver_mpu6500.c.
| uint8_t mpu6500_set_gyro_z_offset | ( | mpu6500_handle_t * | handle, |
| int16_t | offset ) |
set the gyro z offset
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | offset | gyro z offset |
Definition at line 8570 of file driver_mpu6500.c.
| uint8_t mpu6500_set_gyroscope_choice | ( | mpu6500_handle_t * | handle, |
| uint8_t | choice ) |
set the gyroscope choice
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | choice | gyroscope choice |
Definition at line 6228 of file driver_mpu6500.c.
| uint8_t mpu6500_set_gyroscope_range | ( | mpu6500_handle_t * | handle, |
| mpu6500_gyroscope_range_t | range ) |
set the gyroscope range
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | range | gyroscope range |
Definition at line 6145 of file driver_mpu6500.c.
| uint8_t mpu6500_set_gyroscope_test | ( | mpu6500_handle_t * | handle, |
| mpu6500_axis_t | axis, | ||
| mpu6500_bool_t | enable ) |
set the gyroscope test
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | axis | tested axis |
| [in] | enable | bool value |
Definition at line 6062 of file driver_mpu6500.c.
| uint8_t mpu6500_set_gyroscope_x_test | ( | mpu6500_handle_t * | handle, |
| uint8_t | data ) |
set the gyroscope x test
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | data | set data |
Definition at line 7721 of file driver_mpu6500.c.
| uint8_t mpu6500_set_gyroscope_y_test | ( | mpu6500_handle_t * | handle, |
| uint8_t | data ) |
set the gyroscope y test
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | data | set data |
Definition at line 7791 of file driver_mpu6500.c.
| uint8_t mpu6500_set_gyroscope_z_test | ( | mpu6500_handle_t * | handle, |
| uint8_t | data ) |
set the gyroscope z test
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | data | set data |
Definition at line 7861 of file driver_mpu6500.c.
| uint8_t mpu6500_set_iic4_data_in | ( | mpu6500_handle_t * | handle, |
| uint8_t | data ) |
set the iic4 data in
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | data | set data |
Definition at line 11649 of file driver_mpu6500.c.
| uint8_t mpu6500_set_iic4_data_out | ( | mpu6500_handle_t * | handle, |
| uint8_t | data ) |
set the iic4 data out
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | data | set data |
Definition at line 11579 of file driver_mpu6500.c.
| uint8_t mpu6500_set_iic4_enable | ( | mpu6500_handle_t * | handle, |
| mpu6500_bool_t | enable ) |
enable or disable the iic4
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | enable | bool value |
Definition at line 11244 of file driver_mpu6500.c.
| uint8_t mpu6500_set_iic4_interrupt | ( | mpu6500_handle_t * | handle, |
| mpu6500_bool_t | enable ) |
enable or disable the iic4 interrupt
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | enable | bool value |
Definition at line 11326 of file driver_mpu6500.c.
| uint8_t mpu6500_set_iic4_transaction_mode | ( | mpu6500_handle_t * | handle, |
| mpu6500_iic4_transaction_mode_t | mode ) |
set the iic4 transaction mode
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | mode | transaction mode |
Definition at line 11408 of file driver_mpu6500.c.
| uint8_t mpu6500_set_iic_address | ( | mpu6500_handle_t * | handle, |
| mpu6500_iic_slave_t | slave, | ||
| uint8_t | addr_7bit ) |
set the iic address
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | slave | iic slave number |
| [in] | addr_7bit | iic address |
Definition at line 9602 of file driver_mpu6500.c.
| uint8_t mpu6500_set_iic_bypass | ( | mpu6500_handle_t * | handle, |
| mpu6500_bool_t | enable ) |
enable or disable the iic bypass
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | enable | bool value |
Definition at line 7520 of file driver_mpu6500.c.
| uint8_t mpu6500_set_iic_byte_swap | ( | mpu6500_handle_t * | handle, |
| mpu6500_iic_slave_t | slave, | ||
| mpu6500_bool_t | enable ) |
enable or disable the iic byte swap
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | slave | iic slave number |
| [in] | enable | bool value |
Definition at line 10344 of file driver_mpu6500.c.
| uint8_t mpu6500_set_iic_clock | ( | mpu6500_handle_t * | handle, |
| mpu6500_iic_clock_t | clk ) |
set the iic clock
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | clk | iic clock |
Definition at line 8908 of file driver_mpu6500.c.
| uint8_t mpu6500_set_iic_data_out | ( | mpu6500_handle_t * | handle, |
| mpu6500_iic_slave_t | slave, | ||
| uint8_t | data ) |
set the iic data out
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | slave | iic slave number |
| [in] | data | set data |
Definition at line 9998 of file driver_mpu6500.c.
| uint8_t mpu6500_set_iic_delay | ( | mpu6500_handle_t * | handle, |
| uint8_t | delay ) |
set the iic delay
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | delay | iic delay |
Definition at line 11491 of file driver_mpu6500.c.
| uint8_t mpu6500_set_iic_delay_enable | ( | mpu6500_handle_t * | handle, |
| mpu6500_iic_delay_t | delay, | ||
| mpu6500_bool_t | enable ) |
enable or disable the iic delay
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | delay | iic delay |
| [in] | enable | bool value |
Definition at line 11161 of file driver_mpu6500.c.
| uint8_t mpu6500_set_iic_enable | ( | mpu6500_handle_t * | handle, |
| mpu6500_iic_slave_t | slave, | ||
| mpu6500_bool_t | enable ) |
enable or disable the iic
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | slave | iic slave number |
| [in] | enable | bool value |
Definition at line 10150 of file driver_mpu6500.c.
| uint8_t mpu6500_set_iic_fifo_enable | ( | mpu6500_handle_t * | handle, |
| mpu6500_iic_slave_t | slave, | ||
| mpu6500_bool_t | enable ) |
enable or disable the iic fifo
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | slave | iic slave number |
| [in] | enable | bool value |
Definition at line 9238 of file driver_mpu6500.c.
| uint8_t mpu6500_set_iic_group_order | ( | mpu6500_handle_t * | handle, |
| mpu6500_iic_slave_t | slave, | ||
| mpu6500_iic_group_order_t | order ) |
set the iic group order
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | slave | iic slave number |
| [in] | order | group order |
Definition at line 10732 of file driver_mpu6500.c.
| uint8_t mpu6500_set_iic_master | ( | mpu6500_handle_t * | handle, |
| mpu6500_bool_t | enable ) |
enable or disable the iic master mode
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | enable | bool value |
Definition at line 4609 of file driver_mpu6500.c.
| uint8_t mpu6500_set_iic_mode | ( | mpu6500_handle_t * | handle, |
| mpu6500_iic_slave_t | slave, | ||
| mpu6500_iic_mode_t | mode ) |
set the iic mode
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | slave | iic slave number |
| [in] | mode | iic mode |
Definition at line 9378 of file driver_mpu6500.c.
| uint8_t mpu6500_set_iic_multi_master | ( | mpu6500_handle_t * | handle, |
| mpu6500_bool_t | enable ) |
enable or disable iic multi master
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | enable | bool value |
Definition at line 8990 of file driver_mpu6500.c.
| uint8_t mpu6500_set_iic_read_mode | ( | mpu6500_handle_t * | handle, |
| mpu6500_iic_read_mode_t | mode ) |
set the iic read mode
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | mode | read mode |
Definition at line 9154 of file driver_mpu6500.c.
| uint8_t mpu6500_set_iic_register | ( | mpu6500_handle_t * | handle, |
| mpu6500_iic_slave_t | slave, | ||
| uint8_t | reg ) |
set the iic register
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | slave | iic slave number |
| [in] | reg | iic register |
Definition at line 9826 of file driver_mpu6500.c.
| uint8_t mpu6500_set_iic_transaction_mode | ( | mpu6500_handle_t * | handle, |
| mpu6500_iic_slave_t | slave, | ||
| mpu6500_iic_transaction_mode_t | mode ) |
set the iic transaction mode
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | slave | iic slave number |
| [in] | mode | iic transaction mode |
Definition at line 10538 of file driver_mpu6500.c.
| uint8_t mpu6500_set_iic_transferred_len | ( | mpu6500_handle_t * | handle, |
| mpu6500_iic_slave_t | slave, | ||
| uint8_t | len ) |
set the iic transferred length
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | slave | iic slave number |
| [in] | len | iic transferred length |
Definition at line 10927 of file driver_mpu6500.c.
| uint8_t mpu6500_set_iic_wait_for_external_sensor | ( | mpu6500_handle_t * | handle, |
| mpu6500_bool_t | enable ) |
enable or disable iic wait for external sensor
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | enable | bool value |
Definition at line 9072 of file driver_mpu6500.c.
| uint8_t mpu6500_set_interface | ( | mpu6500_handle_t * | handle, |
| mpu6500_interface_t | interface ) |
set the chip interface
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | interface | chip interface |
Definition at line 3838 of file driver_mpu6500.c.
| uint8_t mpu6500_set_interrupt | ( | mpu6500_handle_t * | handle, |
| mpu6500_interrupt_t | type, | ||
| mpu6500_bool_t | enable ) |
enable or disable the interrupt
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | type | set interrupt type |
| [in] | enable | bool value |
Definition at line 7603 of file driver_mpu6500.c.
| uint8_t mpu6500_set_interrupt_latch | ( | mpu6500_handle_t * | handle, |
| mpu6500_bool_t | enable ) |
enable or disable the interrupt latch
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | enable | bool value |
Definition at line 7192 of file driver_mpu6500.c.
| uint8_t mpu6500_set_interrupt_level | ( | mpu6500_handle_t * | handle, |
| mpu6500_pin_level_t | level ) |
set the interrupt level
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | level | interrupt level |
Definition at line 7028 of file driver_mpu6500.c.
| uint8_t mpu6500_set_interrupt_pin_type | ( | mpu6500_handle_t * | handle, |
| mpu6500_pin_type_t | type ) |
set the interrupt pin type
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | type | interrupt pin type |
Definition at line 7110 of file driver_mpu6500.c.
| uint8_t mpu6500_set_interrupt_read_clear | ( | mpu6500_handle_t * | handle, |
| mpu6500_bool_t | enable ) |
enable or disable the interrupt reading clear
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | enable | bool value |
Definition at line 7274 of file driver_mpu6500.c.
| uint8_t mpu6500_set_low_pass_filter | ( | mpu6500_handle_t * | handle, |
| mpu6500_low_pass_filter_t | filter ) |
set the low pass filter
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | filter | low pass filter |
Definition at line 5897 of file driver_mpu6500.c.
| uint8_t mpu6500_set_low_power_accel_output_rate | ( | mpu6500_handle_t * | handle, |
| mpu6500_low_power_accel_output_rate_t | rate ) |
set the low power accel output rate
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | rate | low power accel output rate |
Definition at line 6698 of file driver_mpu6500.c.
| uint8_t mpu6500_set_motion_threshold | ( | mpu6500_handle_t * | handle, |
| uint8_t | threshold ) |
set the motion_threshold
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | threshold | set threshold |
Definition at line 8699 of file driver_mpu6500.c.
| uint8_t mpu6500_set_ptat | ( | mpu6500_handle_t * | handle, |
| mpu6500_bool_t | enable ) |
enable or disable the temperature sensor
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | enable | bool value |
Definition at line 5179 of file driver_mpu6500.c.
| uint8_t mpu6500_set_sample_rate_divider | ( | mpu6500_handle_t * | handle, |
| uint8_t | d ) |
set the sample rate divider
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | d | sample rate divider |
Definition at line 5745 of file driver_mpu6500.c.
| uint8_t mpu6500_set_signal_path_reset | ( | mpu6500_handle_t * | handle, |
| mpu6500_signal_path_reset_t | path ) |
set the signal path reset
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | path | signal path |
Definition at line 5700 of file driver_mpu6500.c.
| uint8_t mpu6500_set_sleep | ( | mpu6500_handle_t * | handle, |
| mpu6500_bool_t | enable ) |
enable or disable the sleep mode
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | enable | bool value |
Definition at line 5343 of file driver_mpu6500.c.
| uint8_t mpu6500_set_standby_mode | ( | mpu6500_handle_t * | handle, |
| mpu6500_source_t | source, | ||
| mpu6500_bool_t | enable ) |
set source into standby mode
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | source | input source |
| [in] | enable | bool value |
Definition at line 5508 of file driver_mpu6500.c.
| uint8_t mpu6500_set_wake_on_motion | ( | mpu6500_handle_t * | handle, |
| mpu6500_bool_t | enable ) |
enable or disable wake on motion
| [in] | *handle | pointer to an mpu6500 handle structure |
| [in] | enable | bool value |
Definition at line 6780 of file driver_mpu6500.c.