c6dofimu18 2.1.0.0
|
This file contains API for 6DOF IMU 18 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 | c6dofimu18_s |
6DOF IMU 18 Click context object. More... | |
struct | c6dofimu18_cfg_t |
6DOF IMU 18 Click configuration object. More... | |
struct | c6dofimu18_data_t |
6DOF IMU 18 data object. More... | |
Typedefs | |
typedef err_t(* | c6dofimu18_master_io_t) (struct c6dofimu18_s *, uint8_t, uint8_t *, uint8_t) |
6DOF IMU 18 Click driver interface. | |
typedef struct c6dofimu18_s | c6dofimu18_t |
6DOF IMU 18 Click context object. | |
Enumerations | |
enum | c6dofimu18_drv_t { C6DOFIMU18_DRV_SEL_SPI , C6DOFIMU18_DRV_SEL_I2C } |
6DOF IMU 18 Click driver selector. More... | |
enum | c6dofimu18_return_value_t { C6DOFIMU18_OK = 0 , C6DOFIMU18_ERROR = -1 , C6DOFIMU18_RESET_ERROR = -2 } |
6DOF IMU 18 Click return value data. More... | |
Functions | |
void | c6dofimu18_cfg_setup (c6dofimu18_cfg_t *cfg) |
6DOF IMU 18 configuration object setup function. | |
void | c6dofimu18_drv_interface_selection (c6dofimu18_cfg_t *cfg, c6dofimu18_drv_t drv_sel) |
6DOF IMU 18 driver interface setup function. | |
err_t | c6dofimu18_init (c6dofimu18_t *ctx, c6dofimu18_cfg_t *cfg) |
6DOF IMU 18 initialization function. | |
err_t | c6dofimu18_default_cfg (c6dofimu18_t *ctx) |
6DOF IMU 18 default configuration function. | |
err_t | c6dofimu18_generic_write (c6dofimu18_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
6DOF IMU 18 data writing function. | |
err_t | c6dofimu18_generic_read (c6dofimu18_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
6DOF IMU 18 data reading function. | |
err_t | c6dofimu18_set_reg_bank (c6dofimu18_t *ctx, uint8_t bank) |
6DOF IMU 18 set register bank function. | |
err_t | c6dofimu18_reg_write (c6dofimu18_t *ctx, uint8_t reg_bank, uint8_t reg, uint8_t *data_in, uint8_t len) |
6DOF IMU 18 register data writing function. | |
err_t | c6dofimu18_reg_read (c6dofimu18_t *ctx, uint8_t reg_bank, uint8_t reg, uint8_t *data_out, uint8_t len) |
6DOF IMU 18 data reading function. | |
err_t | c6dofimu18_configure_digital_interface (c6dofimu18_t *ctx, uint8_t slew_rate) |
6DOF IMU 18 configure digital interface function. | |
uint8_t | c6dofimu18_get_int1_state (c6dofimu18_t *ctx) |
6DOF IMU 18 read INT1 pin state function. | |
err_t | c6dofimu18_sw_reset (c6dofimu18_t *ctx) |
6DOF IMU 18 software reset function. | |
err_t | c6dofimu18_read_temperature (c6dofimu18_t *ctx, float *temperature_data) |
6DOF IMU 18 read temperature function. | |
err_t | c6dofimu18_read_timestamp (c6dofimu18_t *ctx, uint32_t *tmst_data) |
6DOF IMU 18 read timestamp function. | |
err_t | c6dofimu18_get_data_from_register (c6dofimu18_t *ctx, float *temperature_data, c6dofimu18_data_t *accel_data, c6dofimu18_data_t *gyro_data, uint32_t *tmst_data) |
6DOF IMU 18 read data function. | |
err_t | c6dofimu18_set_basic_tap_detection (c6dofimu18_t *ctx) |
6DOF IMU 18 basic tap detection configuration function. | |
err_t | c6dofimu18_get_tap_detection (c6dofimu18_t *ctx, uint8_t *tap_num, uint8_t *tap_axis, uint8_t *tap_dir) |
6DOF IMU 18 get tap detection data function. | |
This file contains API for 6DOF IMU 18 Click Driver.
typedef err_t(* c6dofimu18_master_io_t) (struct c6dofimu18_s *, uint8_t, uint8_t *, uint8_t) |
6DOF IMU 18 Click driver interface.
Definition of driver interface of 6DOF IMU 18 Click driver. Driver serial interface.
typedef struct c6dofimu18_s c6dofimu18_t |
6DOF IMU 18 Click context object.
Context object definition of 6DOF IMU 18 Click driver.
enum c6dofimu18_drv_t |