![]() |
LibDriver MPU6050
|
mpu6050 basic driver modules More...
Data Structures | |
| struct | mpu6050_handle_s |
| mpu6050 handle structure definition More... | |
| struct | mpu6050_info_s |
| mpu6050 information structure definition More... | |
Typedefs | |
| typedef struct mpu6050_handle_s | mpu6050_handle_t |
| mpu6050 handle structure definition | |
| typedef struct mpu6050_info_s | mpu6050_info_t |
| mpu6050 information structure definition | |
Functions | |
| uint8_t | mpu6050_info (mpu6050_info_t *info) |
| get the chip's information | |
| uint8_t | mpu6050_set_addr_pin (mpu6050_handle_t *handle, mpu6050_address_t addr_pin) |
| set the chip address pin | |
| uint8_t | mpu6050_get_addr_pin (mpu6050_handle_t *handle, mpu6050_address_t *addr_pin) |
| get the chip address pin | |
| uint8_t | mpu6050_irq_handler (mpu6050_handle_t *handle) |
| irq handler | |
| uint8_t | mpu6050_init (mpu6050_handle_t *handle) |
| initialize the chip | |
| uint8_t | mpu6050_deinit (mpu6050_handle_t *handle) |
| close the chip | |
| uint8_t | mpu6050_read (mpu6050_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 | mpu6050_read_temperature (mpu6050_handle_t *handle, int16_t(*raw), float *degrees) |
| read the temperature | |
| uint8_t | mpu6050_set_fifo (mpu6050_handle_t *handle, mpu6050_bool_t enable) |
| enable or disable fifo | |
| uint8_t | mpu6050_get_fifo (mpu6050_handle_t *handle, mpu6050_bool_t *enable) |
| get the fifo status | |
| uint8_t | mpu6050_force_fifo_reset (mpu6050_handle_t *handle) |
| force reset the fifo | |
| uint8_t | mpu6050_set_iic_master (mpu6050_handle_t *handle, mpu6050_bool_t enable) |
| enable or disable the iic master mode | |
| uint8_t | mpu6050_get_iic_master (mpu6050_handle_t *handle, mpu6050_bool_t *enable) |
| get the iic master status | |
| uint8_t | mpu6050_fifo_reset (mpu6050_handle_t *handle) |
| reset the fifo | |
| uint8_t | mpu6050_get_fifo_reset (mpu6050_handle_t *handle, mpu6050_bool_t *enable) |
| get the fifo reset status | |
| uint8_t | mpu6050_iic_master_reset (mpu6050_handle_t *handle) |
| reset the iic master controller | |
| uint8_t | mpu6050_get_iic_master_reset (mpu6050_handle_t *handle, mpu6050_bool_t *enable) |
| get the iic master reset status | |
| uint8_t | mpu6050_sensor_reset (mpu6050_handle_t *handle) |
| reset all sensors | |
| uint8_t | mpu6050_get_sensor_reset (mpu6050_handle_t *handle, mpu6050_bool_t *enable) |
| get the sensor reset status | |
| uint8_t | mpu6050_device_reset (mpu6050_handle_t *handle) |
| reset the chip | |
| uint8_t | mpu6050_get_device_reset (mpu6050_handle_t *handle, mpu6050_bool_t *enable) |
| get the device reset status | |
| uint8_t | mpu6050_set_clock_source (mpu6050_handle_t *handle, mpu6050_clock_source_t clock_source) |
| set the chip clock source | |
| uint8_t | mpu6050_get_clock_source (mpu6050_handle_t *handle, mpu6050_clock_source_t *clock_source) |
| get the chip clock source | |
| uint8_t | mpu6050_set_temperature_sensor (mpu6050_handle_t *handle, mpu6050_bool_t enable) |
| enable or disable the temperature sensor | |
| uint8_t | mpu6050_get_temperature_sensor (mpu6050_handle_t *handle, mpu6050_bool_t *enable) |
| get the temperature sensor status | |
| uint8_t | mpu6050_set_cycle_wake_up (mpu6050_handle_t *handle, mpu6050_bool_t enable) |
| enable or disable the cycle wake up mode | |
| uint8_t | mpu6050_get_cycle_wake_up (mpu6050_handle_t *handle, mpu6050_bool_t *enable) |
| get the cycle wake up mode status | |
| uint8_t | mpu6050_set_sleep (mpu6050_handle_t *handle, mpu6050_bool_t enable) |
| enable or disable the sleep mode | |
| uint8_t | mpu6050_get_sleep (mpu6050_handle_t *handle, mpu6050_bool_t *enable) |
| get the sleep status | |
| uint8_t | mpu6050_set_standby_mode (mpu6050_handle_t *handle, mpu6050_source_t source, mpu6050_bool_t enable) |
| set source into standby mode | |
| uint8_t | mpu6050_get_standby_mode (mpu6050_handle_t *handle, mpu6050_source_t source, mpu6050_bool_t *enable) |
| get the source mode | |
| uint8_t | mpu6050_set_wake_up_frequency (mpu6050_handle_t *handle, mpu6050_wake_up_frequency_t frequency) |
| set the wake up frequency | |
| uint8_t | mpu6050_get_wake_up_frequency (mpu6050_handle_t *handle, mpu6050_wake_up_frequency_t *frequency) |
| get the wake up frequency | |
| uint8_t | mpu6050_get_fifo_count (mpu6050_handle_t *handle, uint16_t *count) |
| get the fifo counter value | |
| uint8_t | mpu6050_fifo_get (mpu6050_handle_t *handle, uint8_t *buf, uint16_t len) |
| fifo read bytes | |
| uint8_t | mpu6050_fifo_set (mpu6050_handle_t *handle, uint8_t *buf, uint16_t len) |
| fifo write bytes | |
| uint8_t | mpu6050_set_signal_path_reset (mpu6050_handle_t *handle, mpu6050_signal_path_reset_t path) |
| set the signal path reset | |
| uint8_t | mpu6050_set_sample_rate_divider (mpu6050_handle_t *handle, uint8_t d) |
| set the sample rate divider | |
| uint8_t | mpu6050_get_sample_rate_divider (mpu6050_handle_t *handle, uint8_t *d) |
| get the sample rate divider | |
| uint8_t | mpu6050_set_extern_sync (mpu6050_handle_t *handle, mpu6050_extern_sync_t sync) |
| set the extern sync type | |
| uint8_t | mpu6050_get_extern_sync (mpu6050_handle_t *handle, mpu6050_extern_sync_t *sync) |
| get the extern sync type | |
| uint8_t | mpu6050_set_low_pass_filter (mpu6050_handle_t *handle, mpu6050_low_pass_filter_t filter) |
| set the low pass filter | |
| uint8_t | mpu6050_get_low_pass_filter (mpu6050_handle_t *handle, mpu6050_low_pass_filter_t *filter) |
| get the low pass filter | |
| uint8_t | mpu6050_set_gyroscope_test (mpu6050_handle_t *handle, mpu6050_axis_t axis, mpu6050_bool_t enable) |
| set the gyroscope test | |
| uint8_t | mpu6050_get_gyroscope_test (mpu6050_handle_t *handle, mpu6050_axis_t axis, mpu6050_bool_t *enable) |
| get the gyroscope test | |
| uint8_t | mpu6050_set_gyroscope_range (mpu6050_handle_t *handle, mpu6050_gyroscope_range_t range) |
| set the gyroscope range | |
| uint8_t | mpu6050_get_gyroscope_range (mpu6050_handle_t *handle, mpu6050_gyroscope_range_t *range) |
| get the gyroscope range | |
| uint8_t | mpu6050_set_accelerometer_test (mpu6050_handle_t *handle, mpu6050_axis_t axis, mpu6050_bool_t enable) |
| set the accelerometer test | |
| uint8_t | mpu6050_get_accelerometer_test (mpu6050_handle_t *handle, mpu6050_axis_t axis, mpu6050_bool_t *enable) |
| get the accelerometer test | |
| uint8_t | mpu6050_set_accelerometer_range (mpu6050_handle_t *handle, mpu6050_accelerometer_range_t range) |
| set the accelerometer range | |
| uint8_t | mpu6050_get_accelerometer_range (mpu6050_handle_t *handle, mpu6050_accelerometer_range_t *range) |
| get the accelerometer range | |
| uint8_t | mpu6050_set_fifo_enable (mpu6050_handle_t *handle, mpu6050_fifo_t fifo, mpu6050_bool_t enable) |
| enable or disable the fifo function | |
| uint8_t | mpu6050_get_fifo_enable (mpu6050_handle_t *handle, mpu6050_fifo_t fifo, mpu6050_bool_t *enable) |
| get the fifo function status | |
| uint8_t | mpu6050_set_interrupt_level (mpu6050_handle_t *handle, mpu6050_pin_level_t level) |
| set the interrupt level | |
| uint8_t | mpu6050_get_interrupt_level (mpu6050_handle_t *handle, mpu6050_pin_level_t *level) |
| get the interrupt level | |
| uint8_t | mpu6050_set_interrupt_pin_type (mpu6050_handle_t *handle, mpu6050_pin_type_t type) |
| set the interrupt pin type | |
| uint8_t | mpu6050_get_interrupt_pin_type (mpu6050_handle_t *handle, mpu6050_pin_type_t *type) |
| get the interrupt pin type | |
| uint8_t | mpu6050_set_interrupt_latch (mpu6050_handle_t *handle, mpu6050_bool_t enable) |
| enable or disable the interrupt latch | |
| uint8_t | mpu6050_get_interrupt_latch (mpu6050_handle_t *handle, mpu6050_bool_t *enable) |
| get the interrupt latch status | |
| uint8_t | mpu6050_set_interrupt_read_clear (mpu6050_handle_t *handle, mpu6050_bool_t enable) |
| enable or disable the interrupt reading clear | |
| uint8_t | mpu6050_get_interrupt_read_clear (mpu6050_handle_t *handle, mpu6050_bool_t *enable) |
| get the interrupt reading clear status | |
| uint8_t | mpu6050_set_fsync_interrupt_level (mpu6050_handle_t *handle, mpu6050_pin_level_t level) |
| set the fsync interrupt level | |
| uint8_t | mpu6050_get_fsync_interrupt_level (mpu6050_handle_t *handle, mpu6050_pin_level_t *level) |
| get the fsync interrupt level | |
| uint8_t | mpu6050_set_fsync_interrupt (mpu6050_handle_t *handle, mpu6050_bool_t enable) |
| enable or disable the fsync interrupt | |
| uint8_t | mpu6050_get_fsync_interrupt (mpu6050_handle_t *handle, mpu6050_bool_t *enable) |
| get the fsync interrupt status | |
| uint8_t | mpu6050_set_iic_bypass (mpu6050_handle_t *handle, mpu6050_bool_t enable) |
| enable or disable the iic bypass | |
| uint8_t | mpu6050_get_iic_bypass (mpu6050_handle_t *handle, mpu6050_bool_t *enable) |
| get the iic bypass status | |
| uint8_t | mpu6050_set_interrupt (mpu6050_handle_t *handle, mpu6050_interrupt_t type, mpu6050_bool_t enable) |
| enable or disable the interrupt | |
| uint8_t | mpu6050_get_interrupt (mpu6050_handle_t *handle, mpu6050_interrupt_t type, mpu6050_bool_t *enable) |
| get the interrupt status | |
| uint8_t | mpu6050_get_interrupt_status (mpu6050_handle_t *handle, uint8_t *status) |
| get the interrupt status | |
| uint8_t | mpu6050_set_gyroscope_x_test (mpu6050_handle_t *handle, uint8_t data) |
| set the gyroscope x test | |
| uint8_t | mpu6050_get_gyroscope_x_test (mpu6050_handle_t *handle, uint8_t *data) |
| get the gyroscope x test | |
| uint8_t | mpu6050_set_gyroscope_y_test (mpu6050_handle_t *handle, uint8_t data) |
| set the gyroscope y test | |
| uint8_t | mpu6050_get_gyroscope_y_test (mpu6050_handle_t *handle, uint8_t *data) |
| get the gyroscope y test | |
| uint8_t | mpu6050_set_gyroscope_z_test (mpu6050_handle_t *handle, uint8_t data) |
| set the gyroscope z test | |
| uint8_t | mpu6050_get_gyroscope_z_test (mpu6050_handle_t *handle, uint8_t *data) |
| get the gyroscope z test | |
| uint8_t | mpu6050_set_accelerometer_x_test (mpu6050_handle_t *handle, uint8_t data) |
| set the accelerometer x test | |
| uint8_t | mpu6050_get_accelerometer_x_test (mpu6050_handle_t *handle, uint8_t *data) |
| get the accelerometer x test | |
| uint8_t | mpu6050_set_accelerometer_y_test (mpu6050_handle_t *handle, uint8_t data) |
| set the accelerometer y test | |
| uint8_t | mpu6050_get_accelerometer_y_test (mpu6050_handle_t *handle, uint8_t *data) |
| get the accelerometer y test | |
| uint8_t | mpu6050_set_accelerometer_z_test (mpu6050_handle_t *handle, uint8_t data) |
| set the accelerometer z test | |
| uint8_t | mpu6050_get_accelerometer_z_test (mpu6050_handle_t *handle, uint8_t *data) |
| get the accelerometer z test | |
| uint8_t | mpu6050_set_motion_threshold (mpu6050_handle_t *handle, uint8_t threshold) |
| set the motion_threshold | |
| uint8_t | mpu6050_get_motion_threshold (mpu6050_handle_t *handle, uint8_t *threshold) |
| get the motion_threshold | |
| uint8_t | mpu6050_motion_threshold_convert_to_register (mpu6050_handle_t *handle, float mg, uint8_t *reg) |
| convert the motion threshold to the register raw data | |
| uint8_t | mpu6050_motion_threshold_convert_to_data (mpu6050_handle_t *handle, uint8_t reg, float *mg) |
| convert the register raw data to the motion threshold | |
| uint8_t | mpu6050_set_motion_duration (mpu6050_handle_t *handle, uint8_t duration) |
| set the motion duration | |
| uint8_t | mpu6050_get_motion_duration (mpu6050_handle_t *handle, uint8_t *duration) |
| get the motion duration | |
| uint8_t | mpu6050_motion_duration_convert_to_register (mpu6050_handle_t *handle, uint8_t ms, uint8_t *reg) |
| convert the motion duration to the register raw data | |
| uint8_t | mpu6050_motion_duration_convert_to_data (mpu6050_handle_t *handle, uint8_t reg, uint8_t *ms) |
| convert the register raw data to the motion duration | |
| uint8_t | mpu6050_set_force_accel_sample (mpu6050_handle_t *handle, mpu6050_bool_t enable) |
| enable or disable force accel sample | |
| uint8_t | mpu6050_self_test (mpu6050_handle_t *handle, int32_t gyro_offset_raw[3], int32_t accel_offset_raw[3]) |
| run the self test | |
| uint8_t | mpu6050_set_iic_clock (mpu6050_handle_t *handle, mpu6050_iic_clock_t clk) |
| set the iic clock | |
| uint8_t | mpu6050_get_iic_clock (mpu6050_handle_t *handle, mpu6050_iic_clock_t *clk) |
| get the iic clock | |
| uint8_t | mpu6050_set_iic_multi_master (mpu6050_handle_t *handle, mpu6050_bool_t enable) |
| enable or disable iic multi master | |
| uint8_t | mpu6050_get_iic_multi_master (mpu6050_handle_t *handle, mpu6050_bool_t *enable) |
| get the iic multi master status | |
| uint8_t | mpu6050_set_iic_wait_for_external_sensor (mpu6050_handle_t *handle, mpu6050_bool_t enable) |
| enable or disable iic wait for external sensor | |
| uint8_t | mpu6050_get_iic_wait_for_external_sensor (mpu6050_handle_t *handle, mpu6050_bool_t *enable) |
| get the iic wait for external sensor status | |
| uint8_t | mpu6050_set_iic_read_mode (mpu6050_handle_t *handle, mpu6050_iic_read_mode_t mode) |
| set the iic read mode | |
| uint8_t | mpu6050_get_iic_read_mode (mpu6050_handle_t *handle, mpu6050_iic_read_mode_t *mode) |
| get the iic read mode | |
| uint8_t | mpu6050_set_iic_fifo_enable (mpu6050_handle_t *handle, mpu6050_iic_slave_t slave, mpu6050_bool_t enable) |
| enable or disable the iic fifo | |
| uint8_t | mpu6050_get_iic_fifo_enable (mpu6050_handle_t *handle, mpu6050_iic_slave_t slave, mpu6050_bool_t *enable) |
| get the iic fifo status | |
| uint8_t | mpu6050_set_iic_mode (mpu6050_handle_t *handle, mpu6050_iic_slave_t slave, mpu6050_iic_mode_t mode) |
| set the iic mode | |
| uint8_t | mpu6050_get_iic_mode (mpu6050_handle_t *handle, mpu6050_iic_slave_t slave, mpu6050_iic_mode_t *mode) |
| get the iic mode | |
| uint8_t | mpu6050_set_iic_address (mpu6050_handle_t *handle, mpu6050_iic_slave_t slave, uint8_t addr_7bit) |
| set the iic address | |
| uint8_t | mpu6050_get_iic_address (mpu6050_handle_t *handle, mpu6050_iic_slave_t slave, uint8_t *addr_7bit) |
| get the iic address | |
| uint8_t | mpu6050_set_iic_register (mpu6050_handle_t *handle, mpu6050_iic_slave_t slave, uint8_t reg) |
| set the iic register | |
| uint8_t | mpu6050_get_iic_register (mpu6050_handle_t *handle, mpu6050_iic_slave_t slave, uint8_t *reg) |
| get the iic register | |
| uint8_t | mpu6050_set_iic_data_out (mpu6050_handle_t *handle, mpu6050_iic_slave_t slave, uint8_t data) |
| set the iic data out | |
| uint8_t | mpu6050_get_iic_data_out (mpu6050_handle_t *handle, mpu6050_iic_slave_t slave, uint8_t *data) |
| get the iic data out | |
| uint8_t | mpu6050_set_iic_enable (mpu6050_handle_t *handle, mpu6050_iic_slave_t slave, mpu6050_bool_t enable) |
| enable or disable the iic | |
| uint8_t | mpu6050_get_iic_enable (mpu6050_handle_t *handle, mpu6050_iic_slave_t slave, mpu6050_bool_t *enable) |
| get the iic status | |
| uint8_t | mpu6050_set_iic_byte_swap (mpu6050_handle_t *handle, mpu6050_iic_slave_t slave, mpu6050_bool_t enable) |
| enable or disable the iic byte swap | |
| uint8_t | mpu6050_get_iic_byte_swap (mpu6050_handle_t *handle, mpu6050_iic_slave_t slave, mpu6050_bool_t *enable) |
| get the iic byte swap status | |
| uint8_t | mpu6050_set_iic_transaction_mode (mpu6050_handle_t *handle, mpu6050_iic_slave_t slave, mpu6050_iic_transaction_mode_t mode) |
| set the iic transaction mode | |
| uint8_t | mpu6050_get_iic_transaction_mode (mpu6050_handle_t *handle, mpu6050_iic_slave_t slave, mpu6050_iic_transaction_mode_t *mode) |
| get the iic transaction mode | |
| uint8_t | mpu6050_set_iic_group_order (mpu6050_handle_t *handle, mpu6050_iic_slave_t slave, mpu6050_iic_group_order_t order) |
| set the iic group order | |
| uint8_t | mpu6050_get_iic_group_order (mpu6050_handle_t *handle, mpu6050_iic_slave_t slave, mpu6050_iic_group_order_t *order) |
| get the iic group order | |
| uint8_t | mpu6050_set_iic_transferred_len (mpu6050_handle_t *handle, mpu6050_iic_slave_t slave, uint8_t len) |
| set the iic transferred length | |
| uint8_t | mpu6050_get_iic_transferred_len (mpu6050_handle_t *handle, mpu6050_iic_slave_t slave, uint8_t *len) |
| get the iic transferred length | |
| uint8_t | mpu6050_get_iic_status (mpu6050_handle_t *handle, uint8_t *status) |
| get the iic status | |
| uint8_t | mpu6050_set_iic_delay_enable (mpu6050_handle_t *handle, mpu6050_iic_delay_t delay, mpu6050_bool_t enable) |
| enable or disable the iic delay | |
| uint8_t | mpu6050_get_iic_delay_enable (mpu6050_handle_t *handle, mpu6050_iic_delay_t delay, mpu6050_bool_t *enable) |
| get the iic delay status | |
| uint8_t | mpu6050_set_iic4_enable (mpu6050_handle_t *handle, mpu6050_bool_t enable) |
| enable or disable the iic4 | |
| uint8_t | mpu6050_get_iic4_enable (mpu6050_handle_t *handle, mpu6050_bool_t *enable) |
| get the iic4 status | |
| uint8_t | mpu6050_set_iic4_interrupt (mpu6050_handle_t *handle, mpu6050_bool_t enable) |
| enable or disable the iic4 interrupt | |
| uint8_t | mpu6050_get_iic4_interrupt (mpu6050_handle_t *handle, mpu6050_bool_t *enable) |
| get the iic4 interrupt status | |
| uint8_t | mpu6050_set_iic4_transaction_mode (mpu6050_handle_t *handle, mpu6050_iic4_transaction_mode_t mode) |
| set the iic4 transaction mode | |
| uint8_t | mpu6050_get_iic4_transaction_mode (mpu6050_handle_t *handle, mpu6050_iic4_transaction_mode_t *mode) |
| get the iic4 transaction mode | |
| uint8_t | mpu6050_set_iic_delay (mpu6050_handle_t *handle, uint8_t delay) |
| set the iic delay | |
| uint8_t | mpu6050_get_iic_delay (mpu6050_handle_t *handle, uint8_t *delay) |
| get the iic delay | |
| uint8_t | mpu6050_set_iic4_data_out (mpu6050_handle_t *handle, uint8_t data) |
| set the iic4 data out | |
| uint8_t | mpu6050_get_iic4_data_out (mpu6050_handle_t *handle, uint8_t *data) |
| get the iic4 data out | |
| uint8_t | mpu6050_set_iic4_data_in (mpu6050_handle_t *handle, uint8_t data) |
| set the iic4 data in | |
| uint8_t | mpu6050_get_iic4_data_in (mpu6050_handle_t *handle, uint8_t *data) |
| get the iic4 data in | |
| uint8_t | mpu6050_read_extern_sensor_data (mpu6050_handle_t *handle, uint8_t *data, uint8_t len) |
| read the extern sensor data | |
mpu6050 basic driver modules
| typedef struct mpu6050_handle_s mpu6050_handle_t |
mpu6050 handle structure definition
| typedef struct mpu6050_info_s mpu6050_info_t |
mpu6050 information structure definition
mpu6050 accelerometer range enumeration definition
| Enumerator | |
|---|---|
| MPU6050_ACCELEROMETER_RANGE_2G | ±2 g |
| MPU6050_ACCELEROMETER_RANGE_4G | ±4 g |
| MPU6050_ACCELEROMETER_RANGE_8G | ±8 g |
| MPU6050_ACCELEROMETER_RANGE_16G | ±16 g |
Definition at line 178 of file driver_mpu6050.h.
| enum mpu6050_address_t |
mpu6050 address enumeration definition
| Enumerator | |
|---|---|
| MPU6050_ADDRESS_AD0_LOW | AD0 pin set LOW |
| MPU6050_ADDRESS_AD0_HIGH | AD0 pin set HIGH |
Definition at line 62 of file driver_mpu6050.h.
| enum mpu6050_axis_t |
mpu6050 axis enumeration definition
| Enumerator | |
|---|---|
| MPU6050_AXIS_Z | z |
| MPU6050_AXIS_Y | y |
| MPU6050_AXIS_X | x |
Definition at line 157 of file driver_mpu6050.h.
| enum mpu6050_bool_t |
mpu6050 bool enumeration definition
| Enumerator | |
|---|---|
| MPU6050_BOOL_FALSE | disable function |
| MPU6050_BOOL_TRUE | enable function |
Definition at line 82 of file driver_mpu6050.h.
mpu6050 clock source enumeration definition
Definition at line 104 of file driver_mpu6050.h.
mpu6050 extern sync enumeration definition
Definition at line 128 of file driver_mpu6050.h.
| enum mpu6050_fifo_t |
mpu6050 fifo enumeration definition
| Enumerator | |
|---|---|
| MPU6050_FIFO_TEMP | temperature |
| MPU6050_FIFO_XG | gyroscope x |
| MPU6050_FIFO_YG | gyroscope y |
| MPU6050_FIFO_ZG | gyroscope z |
| MPU6050_FIFO_ACCEL | accelerometer |
Definition at line 189 of file driver_mpu6050.h.
mpu6050 gyroscope range enumeration definition
| Enumerator | |
|---|---|
| MPU6050_GYROSCOPE_RANGE_250DPS | ±250 dps |
| MPU6050_GYROSCOPE_RANGE_500DPS | ±500 dps |
| MPU6050_GYROSCOPE_RANGE_1000DPS | ±1000 dps |
| MPU6050_GYROSCOPE_RANGE_2000DPS | ±2000 dps |
Definition at line 167 of file driver_mpu6050.h.
mpu6050 iic4 transaction mode enumeration definition
| Enumerator | |
|---|---|
| MPU6050_IIC4_TRANSACTION_MODE_DATA | data only |
| MPU6050_IIC4_TRANSACTION_MODE_REG | register only |
Definition at line 293 of file driver_mpu6050.h.
| enum mpu6050_iic_clock_t |
mpu6050 iic clock enumeration definition
Definition at line 243 of file driver_mpu6050.h.
| enum mpu6050_iic_delay_t |
mpu6050 iic delay enumeration definition
Definition at line 328 of file driver_mpu6050.h.
mpu6050 iic group order enumeration definition
Definition at line 302 of file driver_mpu6050.h.
| enum mpu6050_iic_mode_t |
mpu6050 iic mode enumeration definition
| Enumerator | |
|---|---|
| MPU6050_IIC_MODE_WRITE | write |
| MPU6050_IIC_MODE_READ | read |
Definition at line 275 of file driver_mpu6050.h.
mpu6050 iic read mode enumeration definition
| Enumerator | |
|---|---|
| MPU6050_IIC_READ_MODE_RESTART | restart |
| MPU6050_IIC_READ_MODE_STOP_AND_START | stop and start |
Definition at line 266 of file driver_mpu6050.h.
| enum mpu6050_iic_slave_t |
mpu6050 iic slave enumeration definition
| Enumerator | |
|---|---|
| MPU6050_IIC_SLAVE_0 | slave0 |
| MPU6050_IIC_SLAVE_1 | slave1 |
| MPU6050_IIC_SLAVE_2 | slave2 |
| MPU6050_IIC_SLAVE_3 | slave3 |
| MPU6050_IIC_SLAVE_4 | slave4 |
Definition at line 231 of file driver_mpu6050.h.
| enum mpu6050_iic_status_t |
mpu6050 iic status enumeration definition
Definition at line 313 of file driver_mpu6050.h.
mpu6050 iic transaction mode enumeration definition
| Enumerator | |
|---|---|
| MPU6050_IIC_TRANSACTION_MODE_DATA | data only |
| MPU6050_IIC_TRANSACTION_MODE_REG_DATA | write a register address prior to reading or writing data |
Definition at line 284 of file driver_mpu6050.h.
| enum mpu6050_interrupt_t |
mpu6050 interrupt enumeration definition
| Enumerator | |
|---|---|
| MPU6050_INTERRUPT_MOTION | motion |
| MPU6050_INTERRUPT_FIFO_OVERFLOW | fifo overflow |
| MPU6050_INTERRUPT_I2C_MAST | i2c master |
| MPU6050_INTERRUPT_DMP | dmp |
| MPU6050_INTERRUPT_DATA_READY | data ready |
Definition at line 219 of file driver_mpu6050.h.
mpu6050 low pass filter enumeration definition
Definition at line 143 of file driver_mpu6050.h.
| enum mpu6050_pin_level_t |
mpu6050 pin level enumeration definition
| Enumerator | |
|---|---|
| MPU6050_PIN_LEVEL_HIGH | active low |
| MPU6050_PIN_LEVEL_LOW | active high |
Definition at line 201 of file driver_mpu6050.h.
| enum mpu6050_pin_type_t |
mpu6050 pin type enumeration definition
| Enumerator | |
|---|---|
| MPU6050_PIN_TYPE_PUSH_PULL | push pull |
| MPU6050_PIN_TYPE_OPEN_DRAIN | open drain |
Definition at line 210 of file driver_mpu6050.h.
mpu6050 signal path reset enumeration definition
Definition at line 118 of file driver_mpu6050.h.
| enum mpu6050_source_t |
mpu6050 source enumeration definition
Definition at line 91 of file driver_mpu6050.h.
mpu6050 wake up frequency enumeration definition
| Enumerator | |
|---|---|
| MPU6050_WAKE_UP_FREQUENCY_1P25_HZ | 1.25Hz |
| MPU6050_WAKE_UP_FREQUENCY_5_HZ | 5Hz |
| MPU6050_WAKE_UP_FREQUENCY_20_HZ | 20Hz |
| MPU6050_WAKE_UP_FREQUENCY_40_HZ | 40Hz |
Definition at line 71 of file driver_mpu6050.h.
| uint8_t mpu6050_deinit | ( | mpu6050_handle_t * | handle | ) |
close the chip
| [in] | *handle | pointer to an mpu6050 handle structure |
Definition at line 3837 of file driver_mpu6050.c.
| uint8_t mpu6050_device_reset | ( | mpu6050_handle_t * | handle | ) |
reset the chip
| [in] | *handle | pointer to an mpu6050 handle structure |
Definition at line 4683 of file driver_mpu6050.c.
| uint8_t mpu6050_fifo_get | ( | mpu6050_handle_t * | handle, |
| uint8_t * | buf, | ||
| uint16_t | len ) |
fifo read bytes
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *buf | pointer to a data buffer |
| [in] | len | buffer length |
Definition at line 5298 of file driver_mpu6050.c.
| uint8_t mpu6050_fifo_reset | ( | mpu6050_handle_t * | handle | ) |
reset the fifo
| [in] | *handle | pointer to an mpu6050 handle structure |
Definition at line 4440 of file driver_mpu6050.c.
| uint8_t mpu6050_fifo_set | ( | mpu6050_handle_t * | handle, |
| uint8_t * | buf, | ||
| uint16_t | len ) |
fifo write bytes
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | *buf | pointer to a data buffer |
| [in] | len | buffer length |
Definition at line 5334 of file driver_mpu6050.c.
| uint8_t mpu6050_force_fifo_reset | ( | mpu6050_handle_t * | handle | ) |
force reset the fifo
| [in] | *handle | pointer to an mpu6050 handle structure |
Definition at line 4324 of file driver_mpu6050.c.
| uint8_t mpu6050_get_accelerometer_range | ( | mpu6050_handle_t * | handle, |
| mpu6050_accelerometer_range_t * | range ) |
get the accelerometer range
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *range | pointer to an accelerometer range buffer |
Definition at line 5943 of file driver_mpu6050.c.
| uint8_t mpu6050_get_accelerometer_test | ( | mpu6050_handle_t * | handle, |
| mpu6050_axis_t | axis, | ||
| mpu6050_bool_t * | enable ) |
get the accelerometer test
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | axis | tested axis |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 5861 of file driver_mpu6050.c.
| uint8_t mpu6050_get_accelerometer_x_test | ( | mpu6050_handle_t * | handle, |
| uint8_t * | data ) |
get the accelerometer x test
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *data | pointer to a set data buffer |
Definition at line 7089 of file driver_mpu6050.c.
| uint8_t mpu6050_get_accelerometer_y_test | ( | mpu6050_handle_t * | handle, |
| uint8_t * | data ) |
get the accelerometer y test
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *data | pointer to a set data buffer |
Definition at line 7202 of file driver_mpu6050.c.
| uint8_t mpu6050_get_accelerometer_z_test | ( | mpu6050_handle_t * | handle, |
| uint8_t * | data ) |
get the accelerometer z test
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *data | pointer to a set data buffer |
Definition at line 7315 of file driver_mpu6050.c.
| uint8_t mpu6050_get_addr_pin | ( | mpu6050_handle_t * | handle, |
| mpu6050_address_t * | addr_pin ) |
get the chip address pin
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *addr_pin | pointer to a chip address pin buffer |
Definition at line 3693 of file driver_mpu6050.c.
| uint8_t mpu6050_get_clock_source | ( | mpu6050_handle_t * | handle, |
| mpu6050_clock_source_t * | clock_source ) |
get the chip clock source
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *clock_source | pointer to a clock source buffer |
Definition at line 4811 of file driver_mpu6050.c.
| uint8_t mpu6050_get_cycle_wake_up | ( | mpu6050_handle_t * | handle, |
| mpu6050_bool_t * | enable ) |
get the cycle wake up mode status
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 4975 of file driver_mpu6050.c.
| uint8_t mpu6050_get_device_reset | ( | mpu6050_handle_t * | handle, |
| mpu6050_bool_t * | enable ) |
get the device reset status
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 4729 of file driver_mpu6050.c.
| uint8_t mpu6050_get_extern_sync | ( | mpu6050_handle_t * | handle, |
| mpu6050_extern_sync_t * | sync ) |
get the extern sync type
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *sync | pointer to an extern sync type buffer |
Definition at line 5529 of file driver_mpu6050.c.
| uint8_t mpu6050_get_fifo | ( | mpu6050_handle_t * | handle, |
| mpu6050_bool_t * | enable ) |
get the fifo status
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 4288 of file driver_mpu6050.c.
| uint8_t mpu6050_get_fifo_count | ( | mpu6050_handle_t * | handle, |
| uint16_t * | count ) |
get the fifo counter value
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *count | pointer to a fifo count buffer |
Definition at line 5260 of file driver_mpu6050.c.
| uint8_t mpu6050_get_fifo_enable | ( | mpu6050_handle_t * | handle, |
| mpu6050_fifo_t | fifo, | ||
| mpu6050_bool_t * | enable ) |
get the fifo function status
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | fifo | fifo type |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 6027 of file driver_mpu6050.c.
| uint8_t mpu6050_get_fifo_reset | ( | mpu6050_handle_t * | handle, |
| mpu6050_bool_t * | enable ) |
get the fifo reset status
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 4485 of file driver_mpu6050.c.
| uint8_t mpu6050_get_fsync_interrupt | ( | mpu6050_handle_t * | handle, |
| mpu6050_bool_t * | enable ) |
get the fsync interrupt status
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 6519 of file driver_mpu6050.c.
| uint8_t mpu6050_get_fsync_interrupt_level | ( | mpu6050_handle_t * | handle, |
| mpu6050_pin_level_t * | level ) |
get the fsync interrupt level
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *level | pointer to a set level buffer |
Definition at line 6437 of file driver_mpu6050.c.
| uint8_t mpu6050_get_gyroscope_range | ( | mpu6050_handle_t * | handle, |
| mpu6050_gyroscope_range_t * | range ) |
get the gyroscope range
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *range | pointer to a gyroscope range buffer |
Definition at line 5777 of file driver_mpu6050.c.
| uint8_t mpu6050_get_gyroscope_test | ( | mpu6050_handle_t * | handle, |
| mpu6050_axis_t | axis, | ||
| mpu6050_bool_t * | enable ) |
get the gyroscope test
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | axis | tested axis |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 5695 of file driver_mpu6050.c.
| uint8_t mpu6050_get_gyroscope_x_test | ( | mpu6050_handle_t * | handle, |
| uint8_t * | data ) |
get the gyroscope x test
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *data | pointer to a set data buffer |
Definition at line 6809 of file driver_mpu6050.c.
| uint8_t mpu6050_get_gyroscope_y_test | ( | mpu6050_handle_t * | handle, |
| uint8_t * | data ) |
get the gyroscope y test
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *data | pointer to a set data buffer |
Definition at line 6897 of file driver_mpu6050.c.
| uint8_t mpu6050_get_gyroscope_z_test | ( | mpu6050_handle_t * | handle, |
| uint8_t * | data ) |
get the gyroscope z test
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *data | pointer to a set data buffer |
Definition at line 6985 of file driver_mpu6050.c.
| uint8_t mpu6050_get_iic4_data_in | ( | mpu6050_handle_t * | handle, |
| uint8_t * | data ) |
get the iic4 data in
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *data | pointer to a set data buffer |
Definition at line 10521 of file driver_mpu6050.c.
| uint8_t mpu6050_get_iic4_data_out | ( | mpu6050_handle_t * | handle, |
| uint8_t * | data ) |
get the iic4 data out
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *data | pointer to a set data buffer |
Definition at line 10451 of file driver_mpu6050.c.
| uint8_t mpu6050_get_iic4_enable | ( | mpu6050_handle_t * | handle, |
| mpu6050_bool_t * | enable ) |
get the iic4 status
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 10126 of file driver_mpu6050.c.
| uint8_t mpu6050_get_iic4_interrupt | ( | mpu6050_handle_t * | handle, |
| mpu6050_bool_t * | enable ) |
get the iic4 interrupt status
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 10208 of file driver_mpu6050.c.
| uint8_t mpu6050_get_iic4_transaction_mode | ( | mpu6050_handle_t * | handle, |
| mpu6050_iic4_transaction_mode_t * | mode ) |
get the iic4 transaction mode
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *mode | pointer to a transaction mode buffer |
Definition at line 10290 of file driver_mpu6050.c.
| uint8_t mpu6050_get_iic_address | ( | mpu6050_handle_t * | handle, |
| mpu6050_iic_slave_t | slave, | ||
| uint8_t * | addr_7bit ) |
get the iic address
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | slave | iic slave number |
| [out] | *addr_7bit | pointer to an iic address buffer |
Definition at line 8571 of file driver_mpu6050.c.
| uint8_t mpu6050_get_iic_bypass | ( | mpu6050_handle_t * | handle, |
| mpu6050_bool_t * | enable ) |
get the iic bypass status
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 6601 of file driver_mpu6050.c.
| uint8_t mpu6050_get_iic_byte_swap | ( | mpu6050_handle_t * | handle, |
| mpu6050_iic_slave_t | slave, | ||
| mpu6050_bool_t * | enable ) |
get the iic byte swap status
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | slave | iic slave number |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 9294 of file driver_mpu6050.c.
| uint8_t mpu6050_get_iic_clock | ( | mpu6050_handle_t * | handle, |
| mpu6050_iic_clock_t * | clk ) |
get the iic clock
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *clk | pointer to an iic clock buffer |
Definition at line 7790 of file driver_mpu6050.c.
| uint8_t mpu6050_get_iic_data_out | ( | mpu6050_handle_t * | handle, |
| mpu6050_iic_slave_t | slave, | ||
| uint8_t * | data ) |
get the iic data out
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | slave | iic slave number |
| [out] | *data | pointer to a set data buffer |
Definition at line 8911 of file driver_mpu6050.c.
| uint8_t mpu6050_get_iic_delay | ( | mpu6050_handle_t * | handle, |
| uint8_t * | delay ) |
get the iic delay
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *delay | pointer to an iic delay buffer |
Definition at line 10379 of file driver_mpu6050.c.
| uint8_t mpu6050_get_iic_delay_enable | ( | mpu6050_handle_t * | handle, |
| mpu6050_iic_delay_t | delay, | ||
| mpu6050_bool_t * | enable ) |
get the iic delay status
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | delay | iic delay |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 10044 of file driver_mpu6050.c.
| uint8_t mpu6050_get_iic_enable | ( | mpu6050_handle_t * | handle, |
| mpu6050_iic_slave_t | slave, | ||
| mpu6050_bool_t * | enable ) |
get the iic status
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | slave | iic slave number |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 9100 of file driver_mpu6050.c.
| uint8_t mpu6050_get_iic_fifo_enable | ( | mpu6050_handle_t * | handle, |
| mpu6050_iic_slave_t | slave, | ||
| mpu6050_bool_t * | enable ) |
get the iic fifo status
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | slave | iic slave number |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 8153 of file driver_mpu6050.c.
| uint8_t mpu6050_get_iic_group_order | ( | mpu6050_handle_t * | handle, |
| mpu6050_iic_slave_t | slave, | ||
| mpu6050_iic_group_order_t * | order ) |
get the iic group order
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | slave | iic slave number |
| [out] | *order | pointer to a group order buffer |
Definition at line 9682 of file driver_mpu6050.c.
| uint8_t mpu6050_get_iic_master | ( | mpu6050_handle_t * | handle, |
| mpu6050_bool_t * | enable ) |
get the iic master status
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 4404 of file driver_mpu6050.c.
| uint8_t mpu6050_get_iic_master_reset | ( | mpu6050_handle_t * | handle, |
| mpu6050_bool_t * | enable ) |
get the iic master reset status
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 4566 of file driver_mpu6050.c.
| uint8_t mpu6050_get_iic_mode | ( | mpu6050_handle_t * | handle, |
| mpu6050_iic_slave_t | slave, | ||
| mpu6050_iic_mode_t * | mode ) |
get the iic mode
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | slave | iic slave number |
| [out] | *mode | pointer to an iic mode buffer |
Definition at line 8347 of file driver_mpu6050.c.
| uint8_t mpu6050_get_iic_multi_master | ( | mpu6050_handle_t * | handle, |
| mpu6050_bool_t * | enable ) |
get the iic multi master status
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 7872 of file driver_mpu6050.c.
| uint8_t mpu6050_get_iic_read_mode | ( | mpu6050_handle_t * | handle, |
| mpu6050_iic_read_mode_t * | mode ) |
get the iic read mode
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *mode | pointer to a read mode buffer |
Definition at line 8036 of file driver_mpu6050.c.
| uint8_t mpu6050_get_iic_register | ( | mpu6050_handle_t * | handle, |
| mpu6050_iic_slave_t | slave, | ||
| uint8_t * | reg ) |
get the iic register
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | slave | iic slave number |
| [out] | *reg | pointer to an iic register buffer |
Definition at line 8749 of file driver_mpu6050.c.
| uint8_t mpu6050_get_iic_status | ( | mpu6050_handle_t * | handle, |
| uint8_t * | status ) |
get the iic status
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *status | pointer to a status buffer |
Definition at line 9962 of file driver_mpu6050.c.
| uint8_t mpu6050_get_iic_transaction_mode | ( | mpu6050_handle_t * | handle, |
| mpu6050_iic_slave_t | slave, | ||
| mpu6050_iic_transaction_mode_t * | mode ) |
get the iic transaction mode
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | slave | iic slave number |
| [out] | *mode | pointer to an iic transaction mode buffer |
Definition at line 9488 of file driver_mpu6050.c.
| uint8_t mpu6050_get_iic_transferred_len | ( | mpu6050_handle_t * | handle, |
| mpu6050_iic_slave_t | slave, | ||
| uint8_t * | len ) |
get the iic transferred length
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | slave | iic slave number |
| [out] | *len | pointer to an iic transferred length buffer |
Definition at line 9883 of file driver_mpu6050.c.
| uint8_t mpu6050_get_iic_wait_for_external_sensor | ( | mpu6050_handle_t * | handle, |
| mpu6050_bool_t * | enable ) |
get the iic wait for external sensor status
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 7954 of file driver_mpu6050.c.
| uint8_t mpu6050_get_interrupt | ( | mpu6050_handle_t * | handle, |
| mpu6050_interrupt_t | type, | ||
| mpu6050_bool_t * | enable ) |
get the interrupt status
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | type | set interrupt type |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 6685 of file driver_mpu6050.c.
| uint8_t mpu6050_get_interrupt_latch | ( | mpu6050_handle_t * | handle, |
| mpu6050_bool_t * | enable ) |
get the interrupt latch status
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 6273 of file driver_mpu6050.c.
| uint8_t mpu6050_get_interrupt_level | ( | mpu6050_handle_t * | handle, |
| mpu6050_pin_level_t * | level ) |
get the interrupt level
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *level | pointer to an interrupt level buffer |
Definition at line 6109 of file driver_mpu6050.c.
| uint8_t mpu6050_get_interrupt_pin_type | ( | mpu6050_handle_t * | handle, |
| mpu6050_pin_type_t * | type ) |
get the interrupt pin type
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *type | pointer to a pin type buffer |
Definition at line 6191 of file driver_mpu6050.c.
| uint8_t mpu6050_get_interrupt_read_clear | ( | mpu6050_handle_t * | handle, |
| mpu6050_bool_t * | enable ) |
get the interrupt reading clear status
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 6355 of file driver_mpu6050.c.
| uint8_t mpu6050_get_interrupt_status | ( | mpu6050_handle_t * | handle, |
| uint8_t * | status ) |
get the interrupt status
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *status | pointer to a status buffer |
Definition at line 6722 of file driver_mpu6050.c.
| uint8_t mpu6050_get_low_pass_filter | ( | mpu6050_handle_t * | handle, |
| mpu6050_low_pass_filter_t * | filter ) |
get the low pass filter
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *filter | pointer to a low pass filter buffer |
Definition at line 5611 of file driver_mpu6050.c.
| uint8_t mpu6050_get_motion_duration | ( | mpu6050_handle_t * | handle, |
| uint8_t * | duration ) |
get the motion duration
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *duration | pointer to a duration buffer |
Definition at line 7519 of file driver_mpu6050.c.
| uint8_t mpu6050_get_motion_threshold | ( | mpu6050_handle_t * | handle, |
| uint8_t * | threshold ) |
get the motion_threshold
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *threshold | pointer to a threshold buffer |
Definition at line 7395 of file driver_mpu6050.c.
| uint8_t mpu6050_get_sample_rate_divider | ( | mpu6050_handle_t * | handle, |
| uint8_t * | d ) |
get the sample rate divider
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *d | pointer to a sample rate divider buffer |
Definition at line 5449 of file driver_mpu6050.c.
| uint8_t mpu6050_get_sensor_reset | ( | mpu6050_handle_t * | handle, |
| mpu6050_bool_t * | enable ) |
get the sensor reset status
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 4647 of file driver_mpu6050.c.
| uint8_t mpu6050_get_sleep | ( | mpu6050_handle_t * | handle, |
| mpu6050_bool_t * | enable ) |
get the sleep status
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 5057 of file driver_mpu6050.c.
| uint8_t mpu6050_get_standby_mode | ( | mpu6050_handle_t * | handle, |
| mpu6050_source_t | source, | ||
| mpu6050_bool_t * | enable ) |
get the source mode
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | source | input source |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 5141 of file driver_mpu6050.c.
| uint8_t mpu6050_get_temperature_sensor | ( | mpu6050_handle_t * | handle, |
| mpu6050_bool_t * | enable ) |
get the temperature sensor status
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 4893 of file driver_mpu6050.c.
| uint8_t mpu6050_get_wake_up_frequency | ( | mpu6050_handle_t * | handle, |
| mpu6050_wake_up_frequency_t * | frequency ) |
get the wake up frequency
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *frequency | pointer to a wake up frequency buffer |
Definition at line 5223 of file driver_mpu6050.c.
| uint8_t mpu6050_iic_master_reset | ( | mpu6050_handle_t * | handle | ) |
reset the iic master controller
| [in] | *handle | pointer to an mpu6050 handle structure |
Definition at line 4521 of file driver_mpu6050.c.
| uint8_t mpu6050_info | ( | mpu6050_info_t * | info | ) |
get the chip's information
| [out] | *info | pointer to an mpu6050 info structure |
Definition at line 10650 of file driver_mpu6050.c.
| uint8_t mpu6050_init | ( | mpu6050_handle_t * | handle | ) |
initialize the chip
| [in] | *handle | pointer to an mpu6050 handle structure |
Definition at line 3717 of file driver_mpu6050.c.
| uint8_t mpu6050_irq_handler | ( | mpu6050_handle_t * | handle | ) |
irq handler
| [in] | *handle | pointer to an mpu6050 handle structure |
Definition at line 4171 of file driver_mpu6050.c.
| uint8_t mpu6050_motion_duration_convert_to_data | ( | mpu6050_handle_t * | handle, |
| uint8_t | reg, | ||
| uint8_t * | ms ) |
convert the register raw data to the motion duration
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | reg | register raw data |
| [out] | *ms | pointer to a motion duration buffer |
Definition at line 7581 of file driver_mpu6050.c.
| uint8_t mpu6050_motion_duration_convert_to_register | ( | mpu6050_handle_t * | handle, |
| uint8_t | ms, | ||
| uint8_t * | reg ) |
convert the motion duration to the register raw data
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | ms | motion duration |
| [out] | *reg | pointer to a register raw buffer |
Definition at line 7554 of file driver_mpu6050.c.
| uint8_t mpu6050_motion_threshold_convert_to_data | ( | mpu6050_handle_t * | handle, |
| uint8_t | reg, | ||
| float * | mg ) |
convert the register raw data to the motion threshold
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | reg | register raw data |
| [out] | *mg | pointer to a motion threshold buffer |
Definition at line 7457 of file driver_mpu6050.c.
| uint8_t mpu6050_motion_threshold_convert_to_register | ( | mpu6050_handle_t * | handle, |
| float | mg, | ||
| uint8_t * | reg ) |
convert the motion threshold to the register raw data
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | mg | motion threshold |
| [out] | *reg | pointer to a register raw buffer |
Definition at line 7430 of file driver_mpu6050.c.
| uint8_t mpu6050_read | ( | mpu6050_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 mpu6050 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 3891 of file driver_mpu6050.c.
| uint8_t mpu6050_read_extern_sensor_data | ( | mpu6050_handle_t * | handle, |
| uint8_t * | data, | ||
| uint8_t | len ) |
read the extern sensor data
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *data | pointer to a data buffer |
| [in] | len | data length |
Definition at line 10558 of file driver_mpu6050.c.
| uint8_t mpu6050_read_temperature | ( | mpu6050_handle_t * | handle, |
| int16_t * | raw, | ||
| float * | degrees ) |
read the temperature
| [in] | *handle | pointer to an mpu6050 handle structure |
| [out] | *raw | pointer to raw data buffer |
| [out] | *degrees | pointer to a converted degrees data buffer |
Definition at line 4134 of file driver_mpu6050.c.
| uint8_t mpu6050_self_test | ( | mpu6050_handle_t * | handle, |
| int32_t | gyro_offset_raw[3], | ||
| int32_t | accel_offset_raw[3] ) |
run the self test
| [in] | *handle | pointer to an mpu6050 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 7661 of file driver_mpu6050.c.
| uint8_t mpu6050_sensor_reset | ( | mpu6050_handle_t * | handle | ) |
reset all sensors
| [in] | *handle | pointer to an mpu6050 handle structure |
Definition at line 4602 of file driver_mpu6050.c.
| uint8_t mpu6050_set_accelerometer_range | ( | mpu6050_handle_t * | handle, |
| mpu6050_accelerometer_range_t | range ) |
set the accelerometer range
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | range | accelerometer range |
Definition at line 5898 of file driver_mpu6050.c.
| uint8_t mpu6050_set_accelerometer_test | ( | mpu6050_handle_t * | handle, |
| mpu6050_axis_t | axis, | ||
| mpu6050_bool_t | enable ) |
set the accelerometer test
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | axis | tested axis |
| [in] | enable | bool value |
Definition at line 5815 of file driver_mpu6050.c.
| uint8_t mpu6050_set_accelerometer_x_test | ( | mpu6050_handle_t * | handle, |
| uint8_t | data ) |
set the accelerometer x test
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | data | set data |
Definition at line 7022 of file driver_mpu6050.c.
| uint8_t mpu6050_set_accelerometer_y_test | ( | mpu6050_handle_t * | handle, |
| uint8_t | data ) |
set the accelerometer y test
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | data | set data |
Definition at line 7135 of file driver_mpu6050.c.
| uint8_t mpu6050_set_accelerometer_z_test | ( | mpu6050_handle_t * | handle, |
| uint8_t | data ) |
set the accelerometer z test
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | data | set data |
Definition at line 7248 of file driver_mpu6050.c.
| uint8_t mpu6050_set_addr_pin | ( | mpu6050_handle_t * | handle, |
| mpu6050_address_t | addr_pin ) |
set the chip address pin
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | addr_pin | chip address pin |
Definition at line 3672 of file driver_mpu6050.c.
| uint8_t mpu6050_set_clock_source | ( | mpu6050_handle_t * | handle, |
| mpu6050_clock_source_t | clock_source ) |
set the chip clock source
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | clock_source | chip main clock source |
Definition at line 4766 of file driver_mpu6050.c.
| uint8_t mpu6050_set_cycle_wake_up | ( | mpu6050_handle_t * | handle, |
| mpu6050_bool_t | enable ) |
enable or disable the cycle wake up mode
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | enable | bool value |
Definition at line 4930 of file driver_mpu6050.c.
| uint8_t mpu6050_set_extern_sync | ( | mpu6050_handle_t * | handle, |
| mpu6050_extern_sync_t | sync ) |
set the extern sync type
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | sync | extern sync type |
Definition at line 5484 of file driver_mpu6050.c.
| uint8_t mpu6050_set_fifo | ( | mpu6050_handle_t * | handle, |
| mpu6050_bool_t | enable ) |
enable or disable fifo
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | enable | bool value |
Definition at line 4243 of file driver_mpu6050.c.
| uint8_t mpu6050_set_fifo_enable | ( | mpu6050_handle_t * | handle, |
| mpu6050_fifo_t | fifo, | ||
| mpu6050_bool_t | enable ) |
enable or disable the fifo function
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | fifo | fifo type |
| [in] | enable | bool value |
Definition at line 5981 of file driver_mpu6050.c.
| uint8_t mpu6050_set_force_accel_sample | ( | mpu6050_handle_t * | handle, |
| mpu6050_bool_t | enable ) |
enable or disable force accel sample
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | enable | bool value |
Definition at line 7608 of file driver_mpu6050.c.
| uint8_t mpu6050_set_fsync_interrupt | ( | mpu6050_handle_t * | handle, |
| mpu6050_bool_t | enable ) |
enable or disable the fsync interrupt
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | enable | bool value |
Definition at line 6474 of file driver_mpu6050.c.
| uint8_t mpu6050_set_fsync_interrupt_level | ( | mpu6050_handle_t * | handle, |
| mpu6050_pin_level_t | level ) |
set the fsync interrupt level
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | level | set level |
Definition at line 6392 of file driver_mpu6050.c.
| uint8_t mpu6050_set_gyroscope_range | ( | mpu6050_handle_t * | handle, |
| mpu6050_gyroscope_range_t | range ) |
set the gyroscope range
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | range | gyroscope range |
Definition at line 5732 of file driver_mpu6050.c.
| uint8_t mpu6050_set_gyroscope_test | ( | mpu6050_handle_t * | handle, |
| mpu6050_axis_t | axis, | ||
| mpu6050_bool_t | enable ) |
set the gyroscope test
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | axis | tested axis |
| [in] | enable | bool value |
Definition at line 5649 of file driver_mpu6050.c.
| uint8_t mpu6050_set_gyroscope_x_test | ( | mpu6050_handle_t * | handle, |
| uint8_t | data ) |
set the gyroscope x test
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | data | set data |
Definition at line 6758 of file driver_mpu6050.c.
| uint8_t mpu6050_set_gyroscope_y_test | ( | mpu6050_handle_t * | handle, |
| uint8_t | data ) |
set the gyroscope y test
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | data | set data |
Definition at line 6846 of file driver_mpu6050.c.
| uint8_t mpu6050_set_gyroscope_z_test | ( | mpu6050_handle_t * | handle, |
| uint8_t | data ) |
set the gyroscope z test
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | data | set data |
Definition at line 6934 of file driver_mpu6050.c.
| uint8_t mpu6050_set_iic4_data_in | ( | mpu6050_handle_t * | handle, |
| uint8_t | data ) |
set the iic4 data in
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | data | set data |
Definition at line 10486 of file driver_mpu6050.c.
| uint8_t mpu6050_set_iic4_data_out | ( | mpu6050_handle_t * | handle, |
| uint8_t | data ) |
set the iic4 data out
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | data | set data |
Definition at line 10416 of file driver_mpu6050.c.
| uint8_t mpu6050_set_iic4_enable | ( | mpu6050_handle_t * | handle, |
| mpu6050_bool_t | enable ) |
enable or disable the iic4
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | enable | bool value |
Definition at line 10081 of file driver_mpu6050.c.
| uint8_t mpu6050_set_iic4_interrupt | ( | mpu6050_handle_t * | handle, |
| mpu6050_bool_t | enable ) |
enable or disable the iic4 interrupt
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | enable | bool value |
Definition at line 10163 of file driver_mpu6050.c.
| uint8_t mpu6050_set_iic4_transaction_mode | ( | mpu6050_handle_t * | handle, |
| mpu6050_iic4_transaction_mode_t | mode ) |
set the iic4 transaction mode
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | mode | transaction mode |
Definition at line 10245 of file driver_mpu6050.c.
| uint8_t mpu6050_set_iic_address | ( | mpu6050_handle_t * | handle, |
| mpu6050_iic_slave_t | slave, | ||
| uint8_t | addr_7bit ) |
set the iic address
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | slave | iic slave number |
| [in] | addr_7bit | iic address |
Definition at line 8439 of file driver_mpu6050.c.
| uint8_t mpu6050_set_iic_bypass | ( | mpu6050_handle_t * | handle, |
| mpu6050_bool_t | enable ) |
enable or disable the iic bypass
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | enable | bool value |
Definition at line 6556 of file driver_mpu6050.c.
| uint8_t mpu6050_set_iic_byte_swap | ( | mpu6050_handle_t * | handle, |
| mpu6050_iic_slave_t | slave, | ||
| mpu6050_bool_t | enable ) |
enable or disable the iic byte swap
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | slave | iic slave number |
| [in] | enable | bool value |
Definition at line 9181 of file driver_mpu6050.c.
| uint8_t mpu6050_set_iic_clock | ( | mpu6050_handle_t * | handle, |
| mpu6050_iic_clock_t | clk ) |
set the iic clock
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | clk | iic clock |
Definition at line 7745 of file driver_mpu6050.c.
| uint8_t mpu6050_set_iic_data_out | ( | mpu6050_handle_t * | handle, |
| mpu6050_iic_slave_t | slave, | ||
| uint8_t | data ) |
set the iic data out
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | slave | iic slave number |
| [in] | data | set data |
Definition at line 8835 of file driver_mpu6050.c.
| uint8_t mpu6050_set_iic_delay | ( | mpu6050_handle_t * | handle, |
| uint8_t | delay ) |
set the iic delay
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | delay | iic delay |
Definition at line 10328 of file driver_mpu6050.c.
| uint8_t mpu6050_set_iic_delay_enable | ( | mpu6050_handle_t * | handle, |
| mpu6050_iic_delay_t | delay, | ||
| mpu6050_bool_t | enable ) |
enable or disable the iic delay
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | delay | iic delay |
| [in] | enable | bool value |
Definition at line 9998 of file driver_mpu6050.c.
| uint8_t mpu6050_set_iic_enable | ( | mpu6050_handle_t * | handle, |
| mpu6050_iic_slave_t | slave, | ||
| mpu6050_bool_t | enable ) |
enable or disable the iic
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | slave | iic slave number |
| [in] | enable | bool value |
Definition at line 8987 of file driver_mpu6050.c.
| uint8_t mpu6050_set_iic_fifo_enable | ( | mpu6050_handle_t * | handle, |
| mpu6050_iic_slave_t | slave, | ||
| mpu6050_bool_t | enable ) |
enable or disable the iic fifo
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | slave | iic slave number |
| [in] | enable | bool value |
Definition at line 8075 of file driver_mpu6050.c.
| uint8_t mpu6050_set_iic_group_order | ( | mpu6050_handle_t * | handle, |
| mpu6050_iic_slave_t | slave, | ||
| mpu6050_iic_group_order_t | order ) |
set the iic group order
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | slave | iic slave number |
| [in] | order | group order |
Definition at line 9569 of file driver_mpu6050.c.
| uint8_t mpu6050_set_iic_master | ( | mpu6050_handle_t * | handle, |
| mpu6050_bool_t | enable ) |
enable or disable the iic master mode
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | enable | bool value |
Definition at line 4359 of file driver_mpu6050.c.
| uint8_t mpu6050_set_iic_mode | ( | mpu6050_handle_t * | handle, |
| mpu6050_iic_slave_t | slave, | ||
| mpu6050_iic_mode_t | mode ) |
set the iic mode
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | slave | iic slave number |
| [in] | mode | iic mode |
Definition at line 8215 of file driver_mpu6050.c.
| uint8_t mpu6050_set_iic_multi_master | ( | mpu6050_handle_t * | handle, |
| mpu6050_bool_t | enable ) |
enable or disable iic multi master
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | enable | bool value |
Definition at line 7827 of file driver_mpu6050.c.
| uint8_t mpu6050_set_iic_read_mode | ( | mpu6050_handle_t * | handle, |
| mpu6050_iic_read_mode_t | mode ) |
set the iic read mode
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | mode | read mode |
Definition at line 7991 of file driver_mpu6050.c.
| uint8_t mpu6050_set_iic_register | ( | mpu6050_handle_t * | handle, |
| mpu6050_iic_slave_t | slave, | ||
| uint8_t | reg ) |
set the iic register
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | slave | iic slave number |
| [in] | reg | iic register |
Definition at line 8663 of file driver_mpu6050.c.
| uint8_t mpu6050_set_iic_transaction_mode | ( | mpu6050_handle_t * | handle, |
| mpu6050_iic_slave_t | slave, | ||
| mpu6050_iic_transaction_mode_t | mode ) |
set the iic transaction mode
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | slave | iic slave number |
| [in] | mode | iic transaction mode |
Definition at line 9375 of file driver_mpu6050.c.
| uint8_t mpu6050_set_iic_transferred_len | ( | mpu6050_handle_t * | handle, |
| mpu6050_iic_slave_t | slave, | ||
| uint8_t | len ) |
set the iic transferred length
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | slave | iic slave number |
| [in] | len | iic transferred length |
Definition at line 9764 of file driver_mpu6050.c.
| uint8_t mpu6050_set_iic_wait_for_external_sensor | ( | mpu6050_handle_t * | handle, |
| mpu6050_bool_t | enable ) |
enable or disable iic wait for external sensor
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | enable | bool value |
Definition at line 7909 of file driver_mpu6050.c.
| uint8_t mpu6050_set_interrupt | ( | mpu6050_handle_t * | handle, |
| mpu6050_interrupt_t | type, | ||
| mpu6050_bool_t | enable ) |
enable or disable the interrupt
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | type | set interrupt type |
| [in] | enable | bool value |
Definition at line 6639 of file driver_mpu6050.c.
| uint8_t mpu6050_set_interrupt_latch | ( | mpu6050_handle_t * | handle, |
| mpu6050_bool_t | enable ) |
enable or disable the interrupt latch
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | enable | bool value |
Definition at line 6228 of file driver_mpu6050.c.
| uint8_t mpu6050_set_interrupt_level | ( | mpu6050_handle_t * | handle, |
| mpu6050_pin_level_t | level ) |
set the interrupt level
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | level | interrupt level |
Definition at line 6064 of file driver_mpu6050.c.
| uint8_t mpu6050_set_interrupt_pin_type | ( | mpu6050_handle_t * | handle, |
| mpu6050_pin_type_t | type ) |
set the interrupt pin type
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | type | interrupt pin type |
Definition at line 6146 of file driver_mpu6050.c.
| uint8_t mpu6050_set_interrupt_read_clear | ( | mpu6050_handle_t * | handle, |
| mpu6050_bool_t | enable ) |
enable or disable the interrupt reading clear
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | enable | bool value |
Definition at line 6310 of file driver_mpu6050.c.
| uint8_t mpu6050_set_low_pass_filter | ( | mpu6050_handle_t * | handle, |
| mpu6050_low_pass_filter_t | filter ) |
set the low pass filter
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | filter | low pass filter |
Definition at line 5566 of file driver_mpu6050.c.
| uint8_t mpu6050_set_motion_duration | ( | mpu6050_handle_t * | handle, |
| uint8_t | duration ) |
set the motion duration
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | duration | set duration |
Definition at line 7484 of file driver_mpu6050.c.
| uint8_t mpu6050_set_motion_threshold | ( | mpu6050_handle_t * | handle, |
| uint8_t | threshold ) |
set the motion_threshold
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | threshold | set threshold |
Definition at line 7360 of file driver_mpu6050.c.
| uint8_t mpu6050_set_sample_rate_divider | ( | mpu6050_handle_t * | handle, |
| uint8_t | d ) |
set the sample rate divider
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | d | sample rate divider |
Definition at line 5414 of file driver_mpu6050.c.
| uint8_t mpu6050_set_signal_path_reset | ( | mpu6050_handle_t * | handle, |
| mpu6050_signal_path_reset_t | path ) |
set the signal path reset
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | path | signal path |
Definition at line 5369 of file driver_mpu6050.c.
| uint8_t mpu6050_set_sleep | ( | mpu6050_handle_t * | handle, |
| mpu6050_bool_t | enable ) |
enable or disable the sleep mode
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | enable | bool value |
Definition at line 5012 of file driver_mpu6050.c.
| uint8_t mpu6050_set_standby_mode | ( | mpu6050_handle_t * | handle, |
| mpu6050_source_t | source, | ||
| mpu6050_bool_t | enable ) |
set source into standby mode
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | source | input source |
| [in] | enable | bool value |
Definition at line 5095 of file driver_mpu6050.c.
| uint8_t mpu6050_set_temperature_sensor | ( | mpu6050_handle_t * | handle, |
| mpu6050_bool_t | enable ) |
enable or disable the temperature sensor
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | enable | bool value |
Definition at line 4848 of file driver_mpu6050.c.
| uint8_t mpu6050_set_wake_up_frequency | ( | mpu6050_handle_t * | handle, |
| mpu6050_wake_up_frequency_t | frequency ) |
set the wake up frequency
| [in] | *handle | pointer to an mpu6050 handle structure |
| [in] | frequency | wake up frequency |
Definition at line 5178 of file driver_mpu6050.c.