accel16 2.0.0.0
|
This file contains API for Accel 16 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"
#include "spi_specifics.h"
Go to the source code of this file.
Data Structures | |
struct | accel16_t |
Accel 16 Click context object. More... | |
struct | accel16_cfg_t |
Accel 16 Click configuration object. More... | |
struct | accel16_axes_t |
Accel 16 Click axes data. More... | |
Enumerations | |
enum | accel16_return_value_t { ACCEL16_OK = 0 , ACCEL16_ERROR = -1 } |
Accel 16 Click return value data. More... | |
enum | accel16_gain_t { ACCEL16_2G = 0 , ACCEL16_4G = 1 , ACCEL16_8G = 2 } |
Accel 16 Click gain. More... | |
enum | accel16_output_rate_t { ACCEL16_12p5HZ = 0 , ACCEL16_25HZ , ACCEL16_50HZ , ACCEL16_100HZ , ACCEL16_200HZ , ACCEL16_400HZ } |
Accel 16 Click output data rate. More... | |
Functions | |
void | accel16_cfg_setup (accel16_cfg_t *cfg) |
Accel 16 configuration object setup function. | |
err_t | accel16_init (accel16_t *ctx, accel16_cfg_t *cfg) |
Accel 16 initialization function. | |
err_t | accel16_default_cfg (accel16_t *ctx) |
Accel 16 default configuration function. | |
err_t | accel16_multiple_reg_write (accel16_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Write multiple registers. | |
err_t | accel16_single_reg_write (accel16_t *ctx, uint8_t reg, uint8_t data_in) |
Write single register. | |
err_t | accel16_multiple_reg_read (accel16_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Read multiple registers. | |
err_t | accel16_single_reg_read (accel16_t *ctx, uint8_t reg, uint8_t *data_out) |
Read single registers. | |
err_t | accel16_fifo_read (accel16_t *ctx, uint8_t *data_out, uint16_t len) |
Read fifo. | |
uint8_t | accel16_get_interrupt_1 (accel16_t *ctx) |
Get interrupt 1 state. | |
uint8_t | accel16_get_interrupt_2 (accel16_t *ctx) |
Get interrupt 2 state. | |
err_t | accel16_filter_configuration (accel16_t *ctx, accel16_gain_t gain, accel16_output_rate_t odr) |
Filter configuration. | |
err_t | accel16_get_axes (accel16_t *ctx, accel16_axes_t *axes) |
Get axes data. | |
err_t | accel16_get_temperature (accel16_t *ctx, float *temperature) |
Get temperature data. | |
err_t | accel16_get_adc (accel16_t *ctx, float *v_adc) |
Get adc data. | |
err_t | accel16_calibrate_temperature (accel16_t *ctx, float room_temperature) |
Accel 16 calibrate temperature function. | |
This file contains API for Accel 16 Click Driver.
enum accel16_gain_t |