mpuimu 2.0.0.0
|
This file contains API for MPU IMU 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 | mpuimu_s |
Click ctx object definition. More... | |
struct | mpuimu_cfg_t |
Click configuration structure definition. More... | |
struct | mpuimu_accel_data_t |
struct | mpuimu_gyro_data_t |
Gyro data object definition. More... | |
Typedefs | |
typedef uint8_t | mpuimu_select_t |
Communication type. | |
typedef void(* | mpuimu_master_io_t) (struct mpuimu_s *, uint8_t, uint8_t *, uint8_t) |
Master Input/Output type. | |
typedef struct mpuimu_s | mpuimu_t |
Click ctx object definition. | |
Functions | |
void | mpuimu_cfg_setup (mpuimu_cfg_t *cfg) |
Config Object Initialization function. | |
MPUIMU_RETVAL | mpuimu_init (mpuimu_t *ctx, mpuimu_cfg_t *cfg) |
Initialization function. | |
void | mpuimu_default_cfg (mpuimu_t *ctx) |
Click Default Configuration function. | |
void | mpuimu_generic_write (mpuimu_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | mpuimu_generic_read (mpuimu_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
int16_t | mpuimu_get_axis (mpuimu_t *ctx, uint8_t adr_reg_high) |
High register data function. | |
void | mpuimu_read_accel (mpuimu_t *ctx, mpuimu_accel_data_t *accel_data) |
Read Axis function. | |
void | mpuimu_read_gyro (mpuimu_t *ctx, mpuimu_gyro_data_t *gyro_data) |
Read Axis function. | |
float | mpuimu_read_temperature (mpuimu_t *ctx) |
Temperature read function. | |
void | software_reset (mpuimu_t *ctx) |
Software reset function. | |
This file contains API for MPU IMU Click driver.