accel25 2.1.0.0
|
This file contains API for Accel 25 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 | accel25_t |
Accel 25 Click context object. More... | |
struct | accel25_cfg_t |
Accel 25 Click configuration object. More... | |
struct | accel25_data_t |
Accel 25 Click data structure. More... | |
Enumerations | |
enum | accel25_return_value_t { ACCEL25_OK = 0 , ACCEL25_ERROR = -1 } |
Accel 25 Click return value data. More... | |
Functions | |
void | accel25_cfg_setup (accel25_cfg_t *cfg) |
Accel 25 configuration object setup function. | |
err_t | accel25_init (accel25_t *ctx, accel25_cfg_t *cfg) |
Accel 25 initialization function. | |
err_t | accel25_default_cfg (accel25_t *ctx) |
Accel 25 default configuration function. | |
err_t | accel25_generic_write (accel25_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Accel 25 I2C writing function. | |
err_t | accel25_generic_read (accel25_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Accel 25 I2C reading function. | |
err_t | accel25_write_register (accel25_t *ctx, uint8_t reg, uint8_t data_in) |
Accel 25 write register function. | |
err_t | accel25_read_register (accel25_t *ctx, uint8_t reg, uint8_t *data_out) |
Accel 25 read register function. | |
err_t | accel25_check_communication (accel25_t *ctx) |
Accel 25 check communication function. | |
uint8_t | accel25_get_int_pin (accel25_t *ctx) |
Accel 25 get int pin function. | |
err_t | accel25_soft_reset (accel25_t *ctx) |
Accel 25 soft reset function. | |
err_t | accel25_set_full_scale_range (accel25_t *ctx, uint8_t fsr) |
Accel 25 set full scale range function. | |
err_t | accel25_read_data (accel25_t *ctx, accel25_data_t *data_out) |
Accel 25 read data function. | |
This file contains API for Accel 25 Click Driver.