accel19 2.0.0.0
|
This file contains API for Accel 19 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 | accel19_s |
Accel 19 Click context object. More... | |
struct | accel19_cfg_t |
Accel 19 Click configuration object. More... | |
struct | accel19_axis_t |
Accel 19 axis data structure. More... | |
Typedefs | |
typedef err_t(* | accel19_master_io_t) (struct accel19_s *, uint8_t, uint8_t *, uint8_t) |
Accel 19 Click driver interface. | |
typedef struct accel19_s | accel19_t |
Accel 19 Click context object. | |
Enumerations | |
enum | accel19_drv_t { ACCEL19_DRV_SEL_SPI , ACCEL19_DRV_SEL_I2C } |
Accel 19 Click driver selector. More... | |
enum | accel19_return_value_t { ACCEL19_OK = 0 , ACCEL19_ERROR = -1 } |
Accel 19 Click return value data. More... | |
Functions | |
void | accel19_cfg_setup (accel19_cfg_t *cfg) |
Accel 19 configuration object setup function. | |
void | accel19_drv_interface_selection (accel19_cfg_t *cfg, accel19_drv_t drv_sel) |
Accel 19 driver interface setup function. | |
err_t | accel19_init (accel19_t *ctx, accel19_cfg_t *cfg) |
Accel 19 initialization function. | |
err_t | accel19_default_cfg (accel19_t *ctx) |
Accel 19 default configuration function. | |
err_t | accel19_generic_write (accel19_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Accel 19 data writing function. | |
err_t | accel19_generic_read (accel19_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Accel 19 data reading function. | |
err_t | accel19_get_temperature (accel19_t *ctx, float *temperature) |
Accel 19 get temperature function. | |
err_t | accel19_check_device_id (accel19_t *ctx) |
Accel 19 check device ID function. | |
err_t | accel19_set_control (accel19_t *ctx, uint8_t odr, uint8_t op_mode, uint8_t lp_mode) |
Accel 19 set control function. | |
err_t | accel19_soft_reset (accel19_t *ctx) |
Accel 19 soft reset function. | |
err_t | accel19_get_status (accel19_t *ctx, uint8_t *status) |
Accel 19 get status function. | |
uint8_t | accel19_data_ready (accel19_t *ctx) |
Accel 19 data ready function. | |
err_t | accel19_set_full_scale (accel19_t *ctx, uint8_t full_scale) |
Accel 19 set full scale function. | |
err_t | accel19_set_bw_filt_odr (accel19_t *ctx, uint8_t bw_filt_odr) |
Accel 19 set digital filtering cutoff function. | |
err_t | accel19_get_axis_data (accel19_t *ctx, accel19_axis_t *axis) |
Accel 19 get accelerometer axis function. | |
uint8_t | accel19_get_int_1 (accel19_t *ctx) |
Accel 19 get Interrupt 1 function. | |
uint8_t | accel19_get_int_2 (accel19_t *ctx) |
Accel 19 get Interrupt 2 function. | |
This file contains API for Accel 19 Click Driver.
typedef err_t(* accel19_master_io_t) (struct accel19_s *, uint8_t, uint8_t *, uint8_t) |
Accel 19 Click driver interface.
Definition of driver interface of Accel 19 Click driver. Driver serial interface.
Accel 19 Click context object.
Context object definition of Accel 19 Click driver.
enum accel19_drv_t |