c9dof 2.0.0.0
|
This file contains API for 9 DOF 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 | c9dof_t |
Click ctx object definition. More... | |
struct | c9dof_cfg_t |
Click configuration structure definition. More... | |
struct | c9dof_accel_data_t |
Accel data object definition. More... | |
struct | c9dof_gyro_data_t |
Gyro data object definition. More... | |
struct | c9dof_mag_data_t |
Magnetometer data object definition. More... | |
Functions | |
void | c9dof_cfg_setup (c9dof_cfg_t *cfg) |
Config Object Initialization function. | |
C9DOF_RETVAL | c9dof_init (c9dof_t *ctx, c9dof_cfg_t *cfg) |
Initialization function. | |
void | c9dof_default_cfg (c9dof_t *ctx) |
Click Default Configuration function. | |
void | c9dof_set_power_mode (c9dof_t *ctx, uint8_t pwr_mode) |
Set accel and gyro power mode function. | |
void | c9dof_generic_write_accel_gyro (c9dof_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic accel and gyro write function. | |
void | c9dof_generic_read_accel_gyro (c9dof_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic accel and gyro read function. | |
void | c9dof_generic_write_mag (c9dof_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic mag write function. | |
void | c9dof_generic_read_mag (c9dof_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic mag read function. | |
void | c9dof_read_accel (c9dof_t *ctx, c9dof_accel_data_t *accel_data) |
Get accelerometer data function. | |
void | c9dof_read_gyro (c9dof_t *ctx, c9dof_gyro_data_t *gyro_data) |
Get gyroscope data function. | |
void | c9dof_read_mag (c9dof_t *ctx, c9dof_mag_data_t *mag_data) |
Get magnetometer data function. | |
uint8_t | c9dof_get_interrupt (c9dof_t *ctx) |
Get state of the Magnetic sensor interrupt function. | |
This file contains API for 9 DOF Click driver.