c6dofimu9 2.0.0.0
|
This file contains API for 6DOF IMU 9 Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
#include "drv_spi_master.h"
Go to the source code of this file.
Data Structures | |
struct | c6dofimu9_s |
Click ctx object definition. More... | |
struct | c6dofimu9_cfg_t |
Click configuration structure definition. More... | |
Typedefs | |
typedef uint8_t | c6dofimu9_select_t |
Communication type. | |
typedef void(* | c6dofimu9_master_io_t) (struct c6dofimu9_s *, uint8_t, uint8_t *, uint8_t) |
Master Input/Output type. | |
typedef struct c6dofimu9_s | c6dofimu9_t |
Click ctx object definition. | |
Functions | |
void | c6dofimu9_cfg_setup (c6dofimu9_cfg_t *cfg) |
Config Object Initialization function. | |
C6DOFIMU9_RETVAL | c6dofimu9_init (c6dofimu9_t *ctx, c6dofimu9_cfg_t *cfg) |
Initialization function. | |
void | c6dofimu9_default_cfg (c6dofimu9_t *ctx) |
Click Default Configuration function. | |
void | c6dofimu9_generic_write (c6dofimu9_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | c6dofimu9_generic_read (c6dofimu9_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
uint8_t | c6dofimu9_check_interrupt (c6dofimu9_t *ctx) |
Check interrupt state function. | |
void | c6dofimu9_set_config (c6dofimu9_t *ctx, uint8_t config_data) |
Set configuration function. | |
void | c6dofimu9_set_gyro_config (c6dofimu9_t *ctx, uint8_t gyro_config_data) |
Set Gyro configuration function. | |
void | c6dofimu9_set_gyro_measurement_range (c6dofimu9_t *ctx, uint16_t gyro_full_scale_range) |
Set Gyro measurement range configuration function. | |
void | c6dofimu9_set_accel_config (c6dofimu9_t *ctx, uint16_t accel_config_data) |
Set Accel configuration function. | |
void | c6dofimu9_set_accel_measurement_range (c6dofimu9_t *ctx, uint8_t accel_full_scale_range) |
Set Accel measurement range configuration function. | |
void | c6dofimu9_set_accel_avg_filter_mode (c6dofimu9_t *ctx, uint8_t accel_avg_samples) |
Set Accel averaging filter settings for Low Power mode function. | |
void | c6dofimu9_set_gyro_config_lp_mode (c6dofimu9_t *ctx, uint8_t gyro_averages) |
Generic read function. | |
uint8_t | c6dofimu9_get_accel_wake_on_motion_trsh (c6dofimu9_t *ctx) |
Get Accel wake-on motion threshold function. | |
void | c6dofimu9_enable_fifo (c6dofimu9_t *ctx, uint8_t en_fifo_data) |
Enable FIFO configuration function. | |
void | c6dofimu9_enable_accel_interrupt (c6dofimu9_t *ctx) |
Enable Accel interrupt function. | |
void | c6dofimu9_enable_gyro_interrupt (c6dofimu9_t *ctx) |
Enable Gyro interrupt function. | |
void | c6dofimu9_enable_data_ready_interrupt (c6dofimu9_t *ctx) |
Enable data ready interrupt function. | |
uint8_t | c6dofimu9_get_interrupt_status (c6dofimu9_t *ctx) |
Get interrupt status function. | |
void | c6dofimu9_reset_accel_signal (c6dofimu9_t *ctx) |
Reset Accel signal path function. | |
void | c6dofimu9_reset_gyro_signal (c6dofimu9_t *ctx) |
Reset Gyro signal path function. | |
void | c6dofimu9_enable_accel_wake_on_motion (c6dofimu9_t *ctx) |
Enable the Wake-on-Motion detection function. | |
void | c6dofimu9_reset_default (c6dofimu9_t *ctx) |
Reset the internal registers and restores the default settings function. | |
void | c6dofimu9_set_sleep_mode (c6dofimu9_t *ctx) |
Set the device to sleep mode function. | |
void | c6dofimu9_set_standby_mode (c6dofimu9_t *ctx) |
Set the device to standby mode function. | |
uint8_t | c6dofimu9_get_device_id (c6dofimu9_t *ctx) |
Get device ID function. | |
int16_t | c6dofimu9_get_axis (c6dofimu9_t *ctx, uint8_t addr_reg_msb, uint8_t addr_reg_lsb) |
Get axis data function. | |
void | c6dofimu9_get_accel_data (c6dofimu9_t *ctx, int16_t *p_accel_x, int16_t *p_accel_y, int16_t *p_accel_z) |
Read Accel X-axis, Y-axis and Z-axis axis function. | |
void | c6dofimu9_get_gyro_data (c6dofimu9_t *ctx, int16_t *p_gyro_x, int16_t *p_gyro_y, int16_t *p_gyro_z) |
Read Gyro X-axis, Y-axis and Z-axis axis function. | |
This file contains API for 6DOF IMU 9 Click driver.