c6dofimu20 2.1.0.0
|
This file contains API for 6 DOF IMU 20 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
#include "drv_spi_master.h"
#include "spi_specifics.h"
Go to the source code of this file.
Data Structures | |
struct | c6dofimu20_s |
6 DOF IMU 20 Click context object. More... | |
struct | c6dofimu20_cfg_t |
6 DOF IMU 20 Click configuration object. More... | |
struct | c6dofimu20_data_t |
6 DOF IMU 20 Click data object. More... | |
Typedefs | |
typedef err_t(* | c6dofimu20_master_io_t) (struct c6dofimu20_s *, uint8_t, uint8_t *, uint8_t) |
6 DOF IMU 20 Click driver interface. | |
typedef struct c6dofimu20_s | c6dofimu20_t |
6 DOF IMU 20 Click context object. | |
Enumerations | |
enum | c6dofimu20_drv_t { C6DOFIMU20_DRV_SEL_SPI , C6DOFIMU20_DRV_SEL_I2C } |
6 DOF IMU 20 Click driver selector. More... | |
enum | c6dofimu20_return_value_t { C6DOFIMU20_OK = 0 , C6DOFIMU20_ERROR = -1 } |
6 DOF IMU 20 Click return value data. More... | |
Functions | |
void | c6dofimu20_cfg_setup (c6dofimu20_cfg_t *cfg) |
6 DOF IMU 20 configuration object setup function. | |
void | c6dofimu20_drv_interface_selection (c6dofimu20_cfg_t *cfg, c6dofimu20_drv_t drv_sel) |
6 DOF IMU 20 driver interface setup function. | |
err_t | c6dofimu20_init (c6dofimu20_t *ctx, c6dofimu20_cfg_t *cfg) |
6 DOF IMU 20 initialization function. | |
err_t | c6dofimu20_default_cfg (c6dofimu20_t *ctx) |
6 DOF IMU 20 default configuration function. | |
err_t | c6dofimu20_generic_write (c6dofimu20_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
6 DOF IMU 20 data writing function. | |
err_t | c6dofimu20_generic_read (c6dofimu20_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
6 DOF IMU 20 data reading function. | |
err_t | c6dofimu20_set_reg (c6dofimu20_t *ctx, uint8_t reg, uint16_t data_in) |
6 DOF IMU 20 register data writing function. | |
err_t | c6dofimu20_get_reg (c6dofimu20_t *ctx, uint8_t reg, uint16_t *data_out) |
6 DOF IMU 20 register data reading function. | |
err_t | c6dofimu20_get_id (c6dofimu20_t *ctx, uint8_t *chip_id) |
6 DOF IMU 20 register chip id reading function. | |
uint8_t | c6dofimu20_get_int1_state (c6dofimu20_t *ctx) |
6 DOF IMU 20 IT1 state reading function. | |
uint8_t | c6dofimu20_get_int2_state (c6dofimu20_t *ctx) |
6 DOF IMU 20 IT2 state reading function. | |
err_t | c6dofimu20_get_acc_data (c6dofimu20_t *ctx, c6dofimu20_data_t *acc_data) |
6 DOF IMU 20 accel data reading function. | |
err_t | c6dofimu20_get_gyr_data (c6dofimu20_t *ctx, c6dofimu20_data_t *gyr_data) |
6 DOF IMU 20 gyro data reading function. | |
err_t | c6dofimu20_get_temperature (c6dofimu20_t *ctx, float *temp_data) |
6 DOF IMU 20 temperature reading function. | |
err_t | c6dofimu20_sw_reset (c6dofimu20_t *ctx) |
6 DOF IMU 20 software reset function. | |
This file contains API for 6 DOF IMU 20 Click Driver.
typedef err_t(* c6dofimu20_master_io_t) (struct c6dofimu20_s *, uint8_t, uint8_t *, uint8_t) |
6 DOF IMU 20 Click driver interface.
Definition of driver interface of 6 DOF IMU 20 Click driver. Driver serial interface.
typedef struct c6dofimu20_s c6dofimu20_t |
6 DOF IMU 20 Click context object.
Context object definition of 6 DOF IMU 20 Click driver.
enum c6dofimu20_drv_t |