c6dofimu11 2.0.0.0
|
This file contains API for 6DOF IMU 11 Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | c6dofimu11_t |
Click ctx object definition. More... | |
struct | c6dofimu11_cfg_t |
Click configuration structure definition. More... | |
struct | c6dofimu11_accel_t |
Accel axis structure definition. More... | |
struct | c6dofimu11_mag_t |
Mag axis structure definition. More... | |
Functions | |
void | c6dofimu11_cfg_setup (c6dofimu11_cfg_t *cfg) |
Config Object Initialization function. | |
C6DOFIMU11_RETVAL | c6dofimu11_init (c6dofimu11_t *ctx, c6dofimu11_cfg_t *cfg) |
Initialization function. | |
void | c6dofimu11_default_cfg (c6dofimu11_t *ctx) |
Click Default Configuration function. | |
void | c6dofimu11_generic_write (c6dofimu11_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | c6dofimu11_generic_read (c6dofimu11_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | c6dofimu11_write_byte (c6dofimu11_t *ctx, uint8_t reg_address, uint8_t write_data) |
This function write byte. | |
uint8_t | c6dofimu11_read_byte (c6dofimu11_t *ctx, uint8_t reg_address) |
This function read byte. | |
void | c6dofimu11_write_multiple_bytes (c6dofimu11_t *ctx, uint8_t reg_address, uint8_t *p_write_data, uint8_t n_bytes) |
This function write multiple bytes. | |
void | c6dofimu11_read_multiple_bytes (c6dofimu11_t *ctx, uint8_t reg_address, uint8_t *p_read_data, uint8_t n_bytes) |
This function read multiple bytes. | |
uint8_t | c6dofimu11_check_id (c6dofimu11_t *ctx) |
This function check id. | |
void | c6dofimu11_disable_sensor (c6dofimu11_t *ctx) |
Disable sensor. | |
void | c6dofimu11_enable_sensor (c6dofimu11_t *ctx, uint8_t en_accel, uint8_t en_mag, uint8_t en_temp) |
Enable sensor. | |
void | c6dofimu11_config_accel (c6dofimu11_t *ctx, uint8_t data_rate, uint8_t data_range, uint8_t data_resolution) |
Configuration accel. | |
void | c6dofimu11_config_mag (c6dofimu11_t *ctx, uint8_t data_rate, uint8_t data_resolution) |
Configuration map. | |
int16_t | c6dofimu11_get_axis (c6dofimu11_t *ctx, uint8_t reg_add_lsb) |
Get axis. | |
void | c6dofimu11_get_accel_data (c6dofimu11_t *ctx, int16_t *accel_x, int16_t *accel_y, int16_t *accel_z) |
Get accel data. | |
void | c6dofimu11_get_mag_data (c6dofimu11_t *ctx, int16_t *mag_x, int16_t *mag_y, int16_t *mag_z) |
Get map data. | |
void | c6dofimu11_read_accel (c6dofimu11_t *ctx, c6dofimu11_accel_t *accel_data) |
Read accel. | |
void | c6dofimu11_read_mag (c6dofimu11_t *ctx, c6dofimu11_mag_t *mag_data) |
Read mag. | |
void | c6dofimu11_enable_temperature_data (c6dofimu11_t *ctx) |
Enable temperature data. | |
float | c6dofimu11_get_temperature (c6dofimu11_t *ctx) |
Get temperature. | |
uint8_t | c6dofimu11_get_interrupt (c6dofimu11_t *ctx) |
Get interrupt. | |
This file contains API for 6DOF IMU 11 Click driver.