c6dofimu4 2.0.0.0
|
This file contains API for c6DOF IMU 4 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 | c6dofimu4_axis_t |
struct | c6dofimu4_s |
Click ctx object definition. More... | |
struct | c6dofimu4_cfg_t |
Click configuration structure definition. More... | |
Typedefs | |
typedef uint8_t | c6dofimu4_select_t |
Communication type. | |
typedef void(* | c6dofimu4_master_io_t) (struct c6dofimu4_s *, uint8_t, uint8_t *, uint8_t) |
Master Input/Output type. | |
typedef struct c6dofimu4_s | c6dofimu4_t |
Click ctx object definition. | |
Functions | |
void | c6dofimu4_cfg_setup (c6dofimu4_cfg_t *cfg) |
Config Object Initialization function. | |
C6DOFIMU4_RETVAL | c6dofimu4_init (c6dofimu4_t *ctx, c6dofimu4_cfg_t *cfg) |
Initialization function. | |
void | c6dofimu4_default_cfg (c6dofimu4_t *ctx) |
Click Default Configuration function. | |
void | c6dofimu4_generic_write (c6dofimu4_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | c6dofimu4_generic_read (c6dofimu4_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
uint8_t | c6dofimu4_write_byte (c6dofimu4_t *ctx, uint8_t reg_addr, uint8_t data_in) |
Generic Single Byte Write function. | |
uint8_t | c6dofimu4_read_byte (c6dofimu4_t *ctx, uint8_t reg_addr, uint8_t *data_out) |
Generic Single Byte Read function. | |
uint8_t | c6dofimu4_write_word (c6dofimu4_t *ctx, uint8_t reg_addr, uint16_t data_in) |
Generic Word Write function. | |
uint8_t | c6dofimu4_read_word (c6dofimu4_t *ctx, uint8_t reg_addr, uint16_t *data_out) |
Generic Word Read function. | |
uint8_t | c6dofimu4_write_bytes (c6dofimu4_t *ctx, uint8_t start_addr, uint8_t *data_in, uint8_t n_bytes) |
Generic Sequential Write function. | |
uint8_t | c6dofimu4_read_bytes (c6dofimu4_t *ctx, uint8_t start_addr, uint8_t *data_out, uint8_t n_bytes) |
Generic Sequential Read function. | |
void | c6dofimu4_reset (c6dofimu4_t *ctx) |
Device Reset function. | |
void | c6dofimu4_set_sync_pin (c6dofimu4_t *ctx, uint8_t state) |
Sync Pin Setting function. | |
uint8_t | c6dofimu4_get_int_pin (c6dofimu4_t *ctx) |
Int Pin Check function. | |
uint8_t | c6dofimu4_get_status (c6dofimu4_t *ctx, uint8_t bit_mask) |
Status Check function. | |
void | c6dofimu4_get_data (c6dofimu4_t *ctx, c6dofimu4_axis_t *accel_out, c6dofimu4_axis_t *gyro_out, int8_t *temp_out) |
Data Get function. | |
uint8_t | c6dofimu4_set_fsr (c6dofimu4_t *ctx, uint8_t gyro_resol, uint8_t accel_resol) |
Full Scale Setting function. | |
This file contains API for c6DOF IMU 4 Click driver.