accel8 2.0.0.0
|
This file contains API for Accel 8 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 | accel8_t |
Click ctx object definition. More... | |
struct | accel8_cfg_t |
Click configuration structure definition. More... | |
struct | range_retval_t |
Click range structure definition. More... | |
Functions | |
void | accel8_cfg_setup (accel8_cfg_t *cfg) |
Config Object Initialization function. | |
ACCEL8_RETVAL | accel8_init (accel8_t *ctx, accel8_cfg_t *cfg) |
Initialization function. | |
void | accel8_default_cfg (accel8_t *ctx, uint8_t accel_cfg, uint8_t gyro_cfg, range_retval_t *rng) |
Click Default Configuration function. | |
void | accel8_generic_write (accel8_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | accel8_generic_read (accel8_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
uint16_t | accel8_read_data (accel8_t *ctx, uint8_t reg) |
Generic read function. | |
float | accel8_get_temperature (accel8_t *ctx) |
Functions for read Temperature data in C. | |
void | accel8_get_accel_axis (accel8_t *ctx, int16_t *x_axis, int16_t *y_axis, int16_t *z_axis) |
Functions for read Accel axis data. | |
void | accel8_get_gyro_axis (accel8_t *ctx, int16_t *x_axis, int16_t *y_axis, int16_t *z_axis) |
Functions for read Gyro axis data. | |
uint8_t | accel8_get_interrupt (accel8_t *ctx) |
Functions for read INT pin state. | |
This file contains API for Accel 8 Click driver.