accel24 2.1.0.0
|
This file contains API for Accel 24 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 | accel24_t |
Accel 24 Click context object. More... | |
struct | accel24_cfg_t |
Accel 24 Click configuration object. More... | |
struct | accel24_data_t |
Accel 24 Click data structure. More... | |
Enumerations | |
enum | accel24_return_value_t { ACCEL24_OK = 0 , ACCEL24_ERROR = -1 } |
Accel 24 Click return value data. More... | |
Functions | |
void | accel24_cfg_setup (accel24_cfg_t *cfg) |
Accel 24 configuration object setup function. | |
err_t | accel24_init (accel24_t *ctx, accel24_cfg_t *cfg) |
Accel 24 initialization function. | |
err_t | accel24_default_cfg (accel24_t *ctx) |
Accel 24 default configuration function. | |
err_t | accel24_generic_write (accel24_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Accel 24 I2C writing function. | |
err_t | accel24_generic_read (accel24_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Accel 24 I2C reading function. | |
err_t | accel24_write_register (accel24_t *ctx, uint8_t reg, uint8_t data_in) |
Accel 24 write register function. | |
err_t | accel24_read_register (accel24_t *ctx, uint8_t reg, uint8_t *data_out) |
Accel 24 read register function. | |
err_t | accel24_check_communication (accel24_t *ctx) |
Accel 24 check communication function. | |
uint8_t | accel24_get_int_pin (accel24_t *ctx) |
Accel 24 get int pin function. | |
err_t | accel24_soft_reset (accel24_t *ctx) |
Accel 24 soft reset function. | |
err_t | accel24_set_full_scale_range (accel24_t *ctx, uint8_t fsr) |
Accel 24 set full scale range function. | |
err_t | accel24_read_data (accel24_t *ctx, accel24_data_t *data_out) |
Accel 24 read data function. | |
This file contains API for Accel 24 Click Driver.