mpu9dof 2.0.0.0
|
This file contains API for MPU 9DOF Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | mpu9dof_t |
Click ctx object definition. More... | |
struct | mpu9dof_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | mpu9dof_cfg_setup (mpu9dof_cfg_t *cfg) |
Config Object Initialization function. | |
MPU9DOF_RETVAL | mpu9dof_init (mpu9dof_t *ctx, mpu9dof_cfg_t *cfg) |
Initialization function. | |
void | mpu9dof_default_cfg (mpu9dof_t *ctx) |
Click Default Configuration function. | |
void | mpu9dof_generic_write (mpu9dof_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | mpu9dof_generic_read (mpu9dof_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | mpu9dof_write_data_mag (mpu9dof_t *ctx, uint8_t address, uint8_t write_command) |
Generic write data function. | |
uint8_t | mpu9dof_read_data_mag (mpu9dof_t *ctx, uint8_t address) |
Generic read data function. | |
int16_t | mpu9dof_get_axis (mpu9dof_t *ctx, uint8_t adr_reg_high) |
Function get low and high register data. | |
int16_t | mpu9dof_get_axis_mag (mpu9dof_t *ctx, uint8_t adr_reg_low) |
Function get low and high register data. | |
void | mpu9dof_read_gyro (mpu9dof_t *ctx, int16_t *gyro_x, int16_t *gyro_y, int16_t *gyro_z) |
Function read axis. | |
void | mpu9dof_read_accel (mpu9dof_t *ctx, int16_t *accel_x, int16_t *accel_y, int16_t *accel_z) |
Function read axis. | |
void | mpu9dof_read_mag (mpu9dof_t *ctx, int16_t *mag_x, int16_t *mag_y, int16_t *mag_z) |
Function read axis. | |
float | mpu9dof_read_temperature (mpu9dof_t *ctx) |
Function read temperature data in degrees [ �C ]. | |
uint8_t | get_int_pin_state (mpu9dof_t *ctx) |
Get int pin state. | |
void | adapter_turn_fsy_on (mpu9dof_t *ctx) |
Turn FSY on function. | |
void | adapter_turn_fsy_off (mpu9dof_t *ctx) |
Turn FSY off function. | |
This file contains API for MPU 9DOF Click driver.