c6dofimu12 2.0.0.0
|
This file contains API for 6DOF IMU 12 Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
#include "drv_spi_master.h"
Go to the source code of this file.
Data Structures | |
struct | c6dofimu12_s |
Click ctx object definition. More... | |
struct | c6dofimu12_accel_t |
struct | c6dofimu12_gyro_t |
struct | c6dofimu12_cfg_t |
Click configuration structure definition. More... | |
Typedefs | |
typedef uint8_t | c6dofimu12_select_t |
Communication type. | |
typedef void(* | c6dofimu12_master_io_t) (struct c6dofimu12_s *, uint8_t, uint8_t *, uint16_t) |
Master Input/Output type. | |
typedef struct c6dofimu12_s | c6dofimu12_t |
Click ctx object definition. | |
typedef struct c6dofimu12_accel_t | c6dofimu12_accel_t |
typedef struct c6dofimu12_gyro_t | c6dofimu12_gyro_t |
Functions | |
void | c6dofimu12_cfg_setup (c6dofimu12_cfg_t *cfg) |
Config Object Initialization function. | |
C6DOFIMU12_RETVAL | c6dofimu12_init (c6dofimu12_t *ctx, c6dofimu12_cfg_t *cfg) |
Initialization function. | |
void | c6dofimu12_default_cfg (c6dofimu12_t *ctx) |
Click Default Configuration function. | |
void | c6dofimu12_generic_write (c6dofimu12_t *ctx, uint8_t reg, uint8_t *data_buf, uint16_t len) |
Generic write function. | |
void | c6dofimu12_generic_read (c6dofimu12_t *ctx, uint8_t reg, uint8_t *data_buf, uint16_t len) |
Generic read function. | |
C6DOFIMU12_RETVAL | c6dofimu12_check_id (c6dofimu12_t *ctx) |
Check ID function. | |
C6DOFIMU12_RETVAL | c6dofimu12_check_init_status (c6dofimu12_t *ctx) |
Check ID function. | |
void | c6dofimu12_get_data (c6dofimu12_t *ctx, c6dofimu12_accel_t *accel_data, c6dofimu12_gyro_t *gyro_data) |
Read Accel and Gyro data function. | |
C6DOFIMU12_RETVAL | c6dofimu12_check_int1 (c6dofimu12_t *ctx) |
Get interrupt 1 status function. | |
C6DOFIMU12_RETVAL | c6dofimu12_check_int2 (c6dofimu12_t *ctx) |
Get interrupt 2 status function. | |
This file contains API for 6DOF IMU 12 Click driver.