accel21 2.1.0.0
|
This file contains API for Accel 21 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
#include "drv_spi_master.h"
#include "spi_specifics.h"
Go to the source code of this file.
Data Structures | |
struct | accel21_s |
Accel 21 Click context object. More... | |
struct | accel21_cfg_t |
Accel 21 Click configuration object. More... | |
struct | accel21_axis_t |
Accel 21 Click Axis structure object. More... | |
struct | accel21_config_t |
Accel 21 Click configuration structure object. More... | |
Typedefs | |
typedef err_t(* | accel21_master_io_t) (struct accel21_s *, uint8_t, uint8_t *, uint8_t) |
Accel 21 Click driver interface. | |
typedef struct accel21_s | accel21_t |
Accel 21 Click context object. | |
Enumerations | |
enum | accel21_drv_t { ACCEL21_DRV_SEL_SPI , ACCEL21_DRV_SEL_I2C } |
Accel 21 Click driver selector. More... | |
enum | accel21_return_value_t { ACCEL21_OK = 0 , ACCEL21_ERROR = -1 } |
Accel 21 Click return value data. More... | |
Functions | |
void | accel21_cfg_setup (accel21_cfg_t *cfg) |
Accel 21 configuration object setup function. | |
void | accel21_drv_interface_selection (accel21_cfg_t *cfg, accel21_drv_t drv_sel) |
Accel 21 driver interface setup function. | |
err_t | accel21_init (accel21_t *ctx, accel21_cfg_t *cfg) |
Accel 21 initialization function. | |
err_t | accel21_default_cfg (accel21_t *ctx) |
Accel 21 default configuration function. | |
err_t | accel21_generic_write (accel21_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Accel 21 data writing function. | |
err_t | accel21_generic_read (accel21_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Accel 21 data reading function. | |
err_t | accel21_get_temp_status (accel21_t *ctx, uint8_t *temp_status) |
Accel 21 get temperature status function. | |
err_t | accel21_check_temp_data_ready (accel21_t *ctx, uint8_t *temp_data_ready) |
Accel 21 check temperature data ready function. | |
err_t | accel21_enable_temp_data (accel21_t *ctx) |
Accel 21 enable temperature data function. | |
err_t | accel21_check_temp_data_ovr (accel21_t *ctx, uint8_t *temp_data_ovr) |
Accel 21 check temperature overrun function. | |
err_t | accel21_get_temp_data (accel21_t *ctx, int16_t *temp_data) |
Accel 21 get temperature data function. | |
err_t | accel21_get_temperature (accel21_t *ctx, float *temperature) |
Accel 21 get temperature function. | |
err_t | accel21_set_op_mode (accel21_t *ctx, uint8_t op_mode) |
Accel 21 set operating mode function. | |
err_t | accel21_get_op_mode (accel21_t *ctx, uint8_t *op_mode) |
Accel 21 get operating mode function. | |
err_t | accel21_get_device_id (accel21_t *ctx, uint8_t *device_id) |
Accel 21 get device ID function. | |
err_t | accel21_check_id (accel21_t *ctx) |
Accel 21 check device ID function. | |
err_t | accel21_get_status (accel21_t *ctx, uint8_t *status) |
Accel 21 get status function. | |
err_t | accel21_check_data_overrun (accel21_t *ctx, uint8_t *data_overrun) |
Accel 21 check accel overrun function. | |
err_t | accel21_check_new_data (accel21_t *ctx, uint8_t *new_data_avl) |
Accel 21 check accel data ready function. | |
err_t | accel21_set_config (accel21_t *ctx, accel21_config_t config) |
Accel 21 set config function. | |
err_t | accel21_get_axis (accel21_t *ctx, accel21_axis_t *acc_axis) |
Accel 21 get accel data function. | |
uint8_t | accel21_get_in1_pin (accel21_t *ctx) |
Accel 21 get interrupt 1 function. | |
uint8_t | accel21_get_in2_pin (accel21_t *ctx) |
Accel 21 get interrupt 2 function. | |
This file contains API for Accel 21 Click Driver.
typedef err_t(* accel21_master_io_t) (struct accel21_s *, uint8_t, uint8_t *, uint8_t) |
Accel 21 Click driver interface.
Definition of driver interface of Accel 21 Click driver. Driver serial interface.
Accel 21 Click context object.
Context object definition of Accel 21 Click driver.
enum accel21_drv_t |