c6dofimu2 2.0.0.0
|
This file contains API for 6DOF IMU 2 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 | c6dofimu2_s |
Click ctx object definition. More... | |
struct | c6dofimu2_cfg_t |
Click configuration structure definition. More... | |
struct | c6dofimu2_accel_data_t |
Accel data object definition. More... | |
struct | c6dofimu2_gyro_data_t |
Gyro data object definition. More... | |
Typedefs | |
typedef uint8_t | c6dofimu2_select_t |
Communication type. | |
typedef void(* | c6dofimu2_master_io_t) (struct c6dofimu2_s *, uint8_t, uint8_t *, uint8_t) |
Master Input/Output type. | |
typedef struct c6dofimu2_s | c6dofimu2_t |
Click ctx object definition. | |
Functions | |
void | c6dofimu2_cfg_setup (c6dofimu2_cfg_t *cfg) |
Config Object Initialization function. | |
C6DOFIMU2_RETVAL | c6dofimu2_init (c6dofimu2_t *ctx, c6dofimu2_cfg_t *cfg) |
Initialization function. | |
void | c6dofimu2_default_cfg (c6dofimu2_t *ctx, c6dofimu2_cfg_t *cfg) |
Click Default Configuration function. | |
void | c6dofimu2_generic_write (c6dofimu2_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | c6dofimu2_generic_read (c6dofimu2_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
int16_t | c6dofimu2_get_axis (c6dofimu2_t *ctx, uint8_t adr_reg_low, uint8_t adr_reg_high) |
Low and high register data function. | |
void | c6dofimu2_read_accel (c6dofimu2_t *ctx, c6dofimu2_accel_data_t *accel_data) |
Read axis function. | |
void | c6dofimu2_read_gyro (c6dofimu2_t *ctx, c6dofimu2_gyro_data_t *gyro_data) |
Read axis function. | |
This file contains API for 6DOF IMU 2 Click driver.