c6dofimu7 2.0.0.0
c6dofimu7.h File Reference

This file contains API for 6DOF IMU 7 Click driver. More...

#include "drv_digital_in.h"
#include "drv_i2c_master.h"

Go to the source code of this file.

Data Structures

struct  c6dofimu7_axis_t
 Sensor axis structure. More...
 
struct  c6dofimu7_t
 Click ctx object definition. More...
 
struct  c6dofimu7_cfg_t
 Click configuration structure definition. More...
 

Macros

#define C6DOFIMU7_MAP_MIKROBUS(cfg, mikrobus)
 
#define C6DOFIMU7_RETVAL   uint8_t
 
#define C6DOFIMU7_OK   0x00
 
#define C6DOFIMU7_INIT_ERROR   0xFF
 
#define C6DOFIMU7_SLAVE_ADDRESS   0x68
 
#define C6DOFIMU7_PWR_MGMT   0x06
 
#define C6DOFIMU7_PWM_MGMT_L   0x80
 
#define C6DOFIMU7_PWM_MGMT_H   0x01
 
#define C6DOFIMU7_TEMP_OUT_H   0x39
 
#define C6DOFIMU7_ACCEL_XOUT_H   0x2D
 
#define C6DOFIMU7_ACCEL_YOUT_H   0x2F
 
#define C6DOFIMU7_ACCEL_ZOUT_H   0x31
 
#define C6DOFIMU7_GYRO_XOUT_H   0x33
 
#define C6DOFIMU7_GYRO_YOUT_H   0x35
 
#define C6DOFIMU7_GYRO_ZOUT_H   0x37
 
#define C6DOFIMU7_TEMPERATURE_SENSITIVITY   333.87
 
#define C6DOFIMU7_TEMPERATURE_OFFSET   6.3
 
#define C6DOFIMU7_ACCEL_SENSITIVITY   8.192
 
#define C6DOFIMU7_GYRO_SENSITIVITY   65.5
 

Functions

void c6dofimu7_cfg_setup (c6dofimu7_cfg_t *cfg)
 Config Object Initialization function.
 
C6DOFIMU7_RETVAL c6dofimu7_init (c6dofimu7_t *ctx, c6dofimu7_cfg_t *cfg)
 Initialization function.
 
void c6dofimu7_default_cfg (c6dofimu7_t *ctx)
 Click Default Configuration function.
 
void c6dofimu7_generic_write (c6dofimu7_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len)
 Generic write function.
 
void c6dofimu7_generic_read (c6dofimu7_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len)
 Generic read function.
 
int16_t c6dofimu7_read_word (c6dofimu7_t *ctx, uint8_t address)
 Read word function.
 
float c6dofimu7_get_temp_data (c6dofimu7_t *ctx, float temp_sensitivity, float temp_offset)
 Get temperature data function.
 
void c6dofimu7_get_accel_data (c6dofimu7_t *ctx, c6dofimu7_axis_t *accel, float sensitivity)
 Get accelerometer data function.
 
void c6dofimu7_get_gyro_data (c6dofimu7_t *ctx, c6dofimu7_axis_t *gyro, float sensitivity)
 Get gyroscope data function.
 
uint8_t c6dofimu7_get_pwm_input (c6dofimu7_t *ctx)
 Get PWM input function.
 
uint8_t c6dofimu7_get_int_input (c6dofimu7_t *ctx)
 Get INT input function.
 

Detailed Description

This file contains API for 6DOF IMU 7 Click driver.